Area :: Header
New tools, templates and workflows
Announcing Extension 2 for 3ds Max 2015 and 3ds Max Design 2015
Discussion Groups


13 Posts
0 Kudos
Registered: ‎05-13-2006

Import FBX : Hirachy Extraction

17 Views, 2 Replies
03-08-2012 08:15 AM

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
Distinguished Contributor
504 Posts
2 Kudos
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.
13 Posts
0 Kudos
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.