Area :: Header
Join us at EUE2014, June 5-6, Utrecht-NL
Register Now
Discussion Groups

FBX SDK

Reply
Contributor
Posts: 13
Registered: ‎05-13-2006

Import FBX : Hirachy Extraction

5 Views, 2 Replies
03-08-2012 08:15 AM
Hi,

here are a view questions regarding hirarchy data extraction ( with Python SDK ), which I cannot find in the documentation. How do I get:
1.) all object of a certain type in an fbx scene ( e.g. all meshes ) ?
2.) full hirarchical path from rootNode to any node in the hirarchy ( List/Array of Nodes ), or/and
3.) full path-name ( e.g. Maya: |group1|group|pSphere3 )

Thanks in advance
Please use plain text.
Distinguished Contributor
Posts: 504
Registered: ‎04-21-2008

Re: Import FBX : Hirachy Extraction

03-09-2012 02:22 AM in reply to: particlepeter
I am run of time so this is just a quick reply and I will come back later to see is there better solutions:smileyhappy:.

1. Please try to use pScene->GetSrcObject and take a look at sample ImportScene which deal with different types of object in the scene.
2. I think the DisplayHierarchy of sample ImportScene can do that.
3. I don't remember there is a function to do this, but you can write a recursive function to get it easily.
Please use plain text.
Contributor
Posts: 13
Registered: ‎05-13-2006

Re: Import FBX : Hirachy Extraction

03-15-2012 02:36 AM in reply to: particlepeter
Hi Jiayang Xu,

thanks for your reply. I am writing an FBX exporter, which is based on the ImportScene sample, but I couldn't find any snipets that would answer the questions above. In any case, now I am traversing the contents of an FBX file and collect all the data required, so my problems are solved.
Please use plain text.