I want to create an editor plugin that would add commands to edit imported meshes, it would automatically apply settings from the advanced import settings window, but I have no idea how to do it in a script.
Like I want to the script access all the materials of the mesh and edit them, set override to true and set path.
How do I do this?
#Editing imported meshes with a plugin
28 messages · Page 1 of 1 (latest)
Do you needa tutorial??
Of simple plugins??
I just need something to know how to do this
Nothing about it in documentation, I don't know even how to reference imported mesh stuff in a script, cause it's not just PackedScene, there's some extra dedicated stuff on top of it
The only solution I can think of is directly modifying the .import file but it feels really hacky
So, what formatting do .import files use? Is there simple way to read/modify its property blocks?
On right side of screen. Under inspector there is a scale property you can use it to adjust size of the object
Try dig around this plugin
This plugin allows you to edit basic mesh like a cube, to change size, extrude, loop cut and the likes
Its almost like basic blender editing
How do I move a microwave to a pan? @cloud stump
@umbral dagger How do I buy a fish?
Godot Engine documentation
Inherits: Reference< Object Post-processes scenes after import. Description: Imported scenes can be automatically modified right after import by setting their Custom Script Import property to a too...
Sorry I was assuming you want to edit the mesh, so I pointed you to ply plugin
If you just want to automate some small work like applying material to mesh on import, that EditorScenePostImport script I link above is the way to do it
Of course to use it you need firm understanding of programming since it uses recursive
So good luck
Both people's answers I got looked like coming from bot, they are so random
Anyways, if you're not a bot - this doesn't address my question. I'm making an editor plugin, NOT mesh import script
So I need to access mesh import settings from an outside editor script
Closest thing i know someone else trying to do that is when they tries to import multiple textures to do texture painting in terrain plugin
And that requires almost wizardy level of code
I forgot if they access the import setting or just make their own though
Unfortunately its not aligned with your need so I can't recommend you dig the source code
You can try to catch fish from the sea.
Bot?