Community
FBX Forum
Welcome to Autodesk’s FBX Forums. Share your knowledge, ask questions, and explore popular FBX topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

creating a property with FbxStringDT

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
adimond
657 Views, 2 Replies

creating a property with FbxStringDT

I'm creating property strings using the SDK but the structure of them does not match what is exported by maya and they are not getting read by Unity.

 

Below is what is exported by maya

P: "my_property", "KString", "", "U", "this is not a problem"

 

This is what I'm getting out of the SDK

P: "my_property", "KString", "", "", "this is a problem"

 

This is the code I'm using..

 

FbxProperty.Create(node,FbxStringDT,"my_property")

 

myProperty=node.FindProperty("my_property")

 

myProperty.Set(FbxString("this is a problem"))

 

 

2 REPLIES 2
Message 2 of 3
viviane.rochon
in reply to: adimond

Hi Adimond,

 

The "U" is for user-defined properties.

 

Have you tried this:

myProperty.ModifyFlag(FbxPropertyFlags::eUserDefined, true);

 

See sample UserProperties.

 

I hope that helps!



Viviane Rochon Montplaisir
Message 3 of 3
adimond
in reply to: viviane.rochon

Perfect! Thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums