Message 1 of 2
How to add a new shapre frame with code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a model with a lot of 3D details, and I am trying to add a second shape frame for all the objects. I want to use that frame as a "work view" and later switch back to the original frame. I attempted to add a subnode to the visuals > IndexShape node and a "frame" node to the object visuals, but it doesn't seem to be working.
Object obj = Model.find("Processor4");
treenode newnode = Model.find("Processor4").find(">visual/shapeindex").subnodes.add();
newnode.value=1;
treenode x = Model.find("Processor4").find(">visual").subnodes.assert("frame",0);
return x;
Is it possible to add that new frame just with code or the only way is to do it from the properties?