Adding an SimXMLDocument as SimGroup/Set to GuiTreeViewCtrl

Scripting questions, discussions, etc
1 post Page 1 of 1
xetra11
Posts: 12
Joined: Mon Jul 11, 2016 8:39 pm
by xetra11 » Fri Jul 15, 2016 12:09 pm
Hey guys!

The doc of GuiTreeViewCtrl tells me that there is a way to insert a SimGroup / SimSet as the tree for the whole.
Where its been written down -> http://torque-3d.readthedocs.io/en/late ... wCtrl.html

There is a function "open" which is described as
Set the root of the tree view to the specified object, or to the root set.


So what I now did is created a SimXmlDocument and parsed in a XML File. This works fine. But when I want to open this file with this function:
void GuiTreeViewCtrl::open(SimSet obj, bool okToEdit)


Things go wrong?

Thats because it awaits a SimSet as first param - but the SimXmlDocument is a SimObject...so what to do now? Is there a factory function to create a SimGroup/Set out of that?


Charlie
1 post Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest