Jump to content

Use groups with Cryptomatte via Stylesheets?


Recommended Posts

Hi,

I've made this post before: 

 

But I am still confused and this has become a new question altogether, and the thread seems dead too, so here is a new post.

How do I use groups in stylesheets to use in Cryptomatte? I would like a somewhat detailed explanation, as I don't really understand what's up with User Properties, how this connects to groups, how I should read anim's comment Posted Tuesday at 01:15 AM, and how I can use the stylesheets for group mattes without overriding the original materials.

Would really appreciate your help. Thanks. :)

Edited by that Abstract guy
  • Like 1
Link to comment
Share on other sites

again, not for groups, but if you create primitive string attribute on your geo you can use stylesheets to override cryptomatte property

 

1. create primitive string attribute that holds your "id" value or unique name (or just convert your groups to name attrib) (in this case I created unique s@name attrib per box)

2. create property on your object (in this case I called it: masks)

3. create stylesheets override for Primitives with Override Script that uses name attribute binding to override your cryptomatte property

example file:

ts_cryptomatte_from_attribute.hip

ts_cryptomatte_from_attribute.jpg

  • Like 4
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...