Message 1 of 7
No texture returned for the user defined attributes/properties

Not applicable
03-22-2018
10:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
FBX doesn't return any textures attached to user defined property/attribute. I have created a user defined type called "MyColor" which is a vector of three floats. I can retrieve values that are keyed in "MyColor" but FBX doesn't return a file texture if it's attached to "MyColor." (Please refer to the screenshot)
In the following code, n on line 4 is always zero.
1. FbxProperty p = material->FindProperty( "MyColor" );
2. if ( p.IsValid() ) {
3. // GetSrcObjectCount always return 0
4. int n = p.GetSrcObjectCount<FbxFileTexture>();
5. }