scotmcp
scotmcp
The reason for adding this note is a LOT of time was wasted trying to find a way to do this, and it cannot be done. This should be noted...
You cannot set the bone_map property from an import script, it's as simple as that.
@tool # Needed so it runs in editor. extends EditorScenePostImport func _post_import(scene): var bone_map = load("res://explosive_bone_map.tres") skeleton = scene.get_node("Armature/Skeleton3D") skeleton.bone_map = bone_map
Just try it @tool # Needed so it runs in editor. extends EditorScenePostImport func _post_import(scene): var bone_map = load("res://explosive_bone_map.tres") skeleton = scene.get_node("Armature/Skeleton3D") skeleton.bone_map = bone_map
How about you tell me this instead of making me go through days of chats... How do you set a bone map from script?
Ok that all fair as well, then why NOT document it here that these things are not accessible for setting the bonemap / skeletonprofile? Wouldn't that be advantageous and prevent...
I do not mean this to be submitting this as an issue bug, I am submitting a suggested documentation improvement. Regarding Issues, that process has seemed to be constrained to...
> This is just one of the problems with the EditorScenePostImportPlugin apis. There are issues filed about other problems: I want to spend some time in the 4.4 cycle reworking...
> Another option would be to edit the .import file using the ConfigMap class. do you mean ConfigFile? I can't find ConfigMap, and I just want to be sure I...
Thank you Lyuma. yeah, ok....doing it outside of the import process kind of defeats the point. I was trying to automate all necessary configurations and modifications to an animation library...