Jump to content

Use Sop attributes with instancefile


Recommended Posts

Hi everyone,

I apologize if this has already been asked but i couldn't find an answer for this precise case.

I have points with a bunch of attributes and I'm using an Instance Node to render them. Each instances is set by an instancefile attribute. I want to use the id attributes to export aovs from the shader but I can't find a way to have the instances inheriting the points attributes. You can see in the example file what I wish to do with the instance display node unpacked.

I saw post about the function instancepoint() applied to the object to instance but I guess that in my case I cannot use this with instancefile since files are written ahead. Maybe should I find an other way to instance my geometries which are currently in files debris.0001-0050.bgeo.sc using the attributes pieceNbToInstance to somehow filter the piece to import but ideally I'd like to use the easiest way if possible so I don't write unneeded stuff in the IFds.

Any ideas ?

Thanks !
Chris

instancefileWithAovsUsingAttributes.v1.hipnc

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...