Skip to content

Trying to trigger AFRAME.GLTFModelPlus.registerComponent from a custom glb file #4769

Discussion options

You must be logged in to vote

Answer. Blender converts object literal in the Custom Properties edit screen with Ok button into a string.
You need to assign the object in the python console
bpy.context.selected_objects[0]["components"] = {'duck': {'a': 1}}
then when checking it with bpy.context.selected_objects[0]["components"]["duck"]
You'll get an object. But if you check that with it being a string you get an error

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nnnnnhal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant