On 26/09/2016 at 08:41, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
I am writing an application in Qt that communicates with .c4d files using Melange.
One of the things that I'm wanting to do is recreate the OM tree that is in the .c4d file in my app. But I don't see any functions for doing this in the sdk.
Since I'm new with the Melange sdk. I might be missing them?
I was wondering if there was anything in it that would help me reconstruct the OM tree?
I do know how to iterate the .c4d file and grab the objects. But I don't see anything in the sdk that allows me to determine where that object is within the OM tree.
Example: A root node, a parent node, a child node, etc...
I did some looking around about making trees. And the info I'm finding is mostly about how to use existing trees controls. Or making them from scratch using link lists. But don't think this is what I need.
I just need a way to determine if a c4d object is a root, parent, or child node. And then get it's parent if it is a child node.
With that information I think I would be able to recreate the tree in Qt.
Any ideas?
-ScottA