Message 1 of 5
Not applicable
01-05-2018
12:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to instance a polymesh, so I am creating it using an AtNode and instance it x times applying different matrices.
The instances are well displayed, but the initial reference mesh too. However I don't want the initial reference mesh to be displayed. How can I prevent this ?
AtNode *mesh= AiNode("polymesh");
... adding geometry to it ...
for (int u=0;u<10;u++)
{
currentInstance = AiNode("ginstance");
AiNodeSetPtr(currentInstance, "node", mesh);
... define transformation matrix mat...
AiNodeSetMatrix( currentInstance, "matrix", mat);
}
--> 10 instances are properly displayed at the proper location, however the initial "mesh" node is displayed too, so I have 11 elements displayed.
Solved! Go to Solution.