question

Laurent Crivello avatar image
Laurent Crivello asked ·

Instance geometry without displaying base object

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.

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

Set visibility 0 on the master object, and visibility 255 on the ginstances

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Craig Zuckerman avatar image
Craig Zuckerman answered ·

Hi , in reference to the person who asked about visibility of instances, and not the base mesh, is this solution for C4d as well? I can not seem to find the AiNode, that was referenced above , can someone please help with this,? thx PS where is the "visibility" switch/slider , thx

1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

@Craig Zuckerman This is more of a code-level question. Plugins like C4DtoA would do all that for you; often a plugin will use the base mesh as one of the instances, so it depends on what exactly you are rendering. Can you ask a new question on the C4DtoA space?

0 Likes 0 · ·
Laurent Crivello avatar image
Laurent Crivello answered ·

Works perfectly, thanks !!

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.