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: 

Import FBX : Hirachy Extraction

2 REPLIES 2
Reply
Message 1 of 3
particlepeter
213 Views, 2 Replies

Import FBX : Hirachy Extraction

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
2 REPLIES 2
Message 2 of 3
jiayang.xu
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:).

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.
Message 3 of 3

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.

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

Post to forums  

Autodesk Design & Make Report