Jump to content

Instancing multiple geometry


Recommended Posts

You can create a point attribute called 'instance' who's value is the path to the object inside Houdini, or 'instancefile' with a path to the geometry on disk. If you put the below code in to an attrib vop you should get 20% of your points pointing to instance2 object and 80% pointing to instance1.

 

if(rand(@ptnum)>0.2)
    {
        s@instance = "/obj/instance1";
    }

else
    {
        s@instance = "/obj/instance2";
    }

 

 

This video from Sidefx covers everything you need to know about instancing.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...