[Solved] Why can't get the value of Blender CustomAttribute

Hello everyone!
i set a customAttribute in Blender to a cube, when loaded the cube,i can’t find the set value. i found the all userdata, still found the set value.

thx!

Which Blender exporter are you using? Is it also possible to make the Blender screenshot in English^^? Right now, it’s not obvious what menu item you are using in Blender.

QQ%E5%9B%BE%E7%89%8720190321170513 Collade exporter ,thx!

Can you please verify if the property is actually present in the exported DAE?

I want to know how to find the custom properties in the exportd DAE. or in Blender the cusom properties is not available to exported DAE

It looks like want you want to do is not possible right now, see: https://developer.blender.org/T29357

1 Like

wow, Thank you very much!

If you export to glTF (using Blender 2.8+) custom properties will be available as object.userData in the threejs object.

3 Likes

Thank you for your guidance.I’m using Blender 2.79.

Do I have to set some option before loading using the GLTFLoader? I’m exporting using Blender 2.82 and I don’t get my custom properties in object.userData

Blender1
Blender2

It’s in the right side of the GLTF exporter window. If you don’t see that panel, you can open the drawer by clicking the little < icon or the settings :gear: icon:

open-drawer

Once the drawer is open, you’ll find it under Include > Custom Properties

custom-props

8 Likes

Thank you so much!

Thank u @marquizzo !