crowds and cryptomatte

   4850   6   2
User Avatar
Member
33 posts
Joined: Oct. 2014
Offline
Hey

I am not sure if it is possible, but wondering how do I get the cryptomatte to recognize each crowd person as its own data. tried using user data and setting the name attributes but use mattes the whole object. anyone have an idea how to get cryptomatte to recognize each crowd instance as its own matte?



thanks
User Avatar
Staff
470 posts
Joined: Sept. 2016
Offline
Hi. As you may have already seen on the other thread [www.sidefx.com], you'll have to use material style sheet to transfer agent id to user property. Please see documentation (https://www.sidefx.com/docs/houdini/render/cryptomatte.html#instancing-and-unique-ids) for more detail.
User Avatar
Member
33 posts
Joined: Oct. 2014
Offline
Hi dlee,

thanks for the responce, i did see those threads, but in the documentation, it states that if the object already has a string attrib

Note that, in this example, Inline Script was only necessary to convert integer attribute to string property. If you're using a string attribute then you could simply use Attribute Binding and skip the script and data binding altogether.

I guess my confusion is if the material style sheets are still needed but not sure how do to go about it.
User Avatar
Staff
470 posts
Joined: Sept. 2016
Offline
Yes, you still need material style sheet. You just don't need the inline script (in the override type dropdown menu, choose attribute binding instead, and specify the attribute name in the value field).
User Avatar
Member
33 posts
Joined: Oct. 2014
Offline
i am still having a hard time getting it to work. these are the steps I am taking

-turn on crypto in the mantra rop
-in the property, i create a property called “my_crowd”
-turn on the different file tic to create crypto exr
-select my object in the scene level, edit parameter interface and add the user properties
-add a property called “my_crowds”, make it a sting and in for the string value type in name (in the cords they have a name attrib
that is a sting)

-head over to the data tree and get to the material style sheets, add a style
-taget -> primitve
-and under the target Data Bind -> name -> automatic -> my_crowd.

i am sure i am doing something wrong, I am a total noob at style sheets.

and thank you for having patience.
User Avatar
Staff
470 posts
Joined: Sept. 2016
Offline
Hi. You don't have to create Data Binding unless you're using inline script and need to pass in arguments. Instead, you should be using Override Script and set the override type to “Attribute Binding”.

Please see attached example hip file. It's not using crowd but I hope you find it useful. Also, please be aware that MSS override script will only work on procedurals/packed primitives (if you look at the example file, you'll notice that the instanced geometry is packed).

Attachments:
crypto_mss_stringattr.hip (498.8 KB)

User Avatar
Member
33 posts
Joined: Oct. 2014
Offline
DUUUUDDDEEEEE !!!

thank you so much.

leaving the user attribute string empty and had the override name and override value backward. and using the wrong data override.

thanks again.
  • Quick Links