# Object ID in a group?

**URL:** <https://forums.chaos.com/t/object-id-in-a-group/50865>\
**Category:** General\
**Created:** [August 27, 2014, 8:43pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865 "2014-08-27T20:43:55Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![igordesign](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/igordesign/32/2986_2.png) [@igordesign](https://forums.chaos.com/u/igordesign)\
**Post date:** [August 27, 2014, 8:43pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/1 "2014-08-27T20:43:55Z")

</div>

Hi friends, i’m having problens to set my multimatte using object id.  
I can add an object id to a maya group?  
For exemple, i have 3 spheres in 1 group called BALLS

sphere1 have object id 1  
sphere2 have object id 2  
sphere3 have object id 3  
and i create a multimatte in a render element and set R=1, G=2 and B=3. OK it works fine  
But i can set a object id for my BALLS group?  
i created an object id 4 for this group and add a new multimatte and set R=4, but it don’t work for me  
I’m doing something wrong? or is there another way to do this?  
i need to create a new render layer and use a leyer overide to set new ids to all spheres?  
Could anyone help me?

---

<div class="post-metadata">

**Author:** ![bigbossfr](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/bigbossfr/32/50480_2.png) [@bigbossfr](https://forums.chaos.com/u/bigbossfr)\
**Post date:** [August 27, 2014, 10:59pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/2 "2014-08-27T22:59:02Z")

</div>

Yes it is normal.  
You have to use users attribute + extra text render element to do whats you want.

---

<div class="post-metadata">

**Author:** ![xoy](https://avatars.discourse-cdn.com/v4/letter/x/a87d85/32.png) [@xoy](https://forums.chaos.com/u/xoy)\
**Post date:** [August 27, 2014, 11:49pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/3 "2014-08-27T23:49:33Z")

</div>

I wonder about that too. Could you please provide simple how-to if it’s not too complicated? Thanks.

> [@Brian\_Bradley](#):
>
> Yes it is normal.  
> You have to use users attribute + extra text render element to do whats you want.

---

<div class="post-metadata">

**Author:** ![Morbid\_Angel](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morbid_angel/32/21272_2.png) [@Morbid\_Angel](https://forums.chaos.com/u/Morbid_Angel)\
**Post date:** [August 28, 2014, 5:02am UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/4 "2014-08-28T05:02:06Z")

</div>

This kind of thing is not allowed/supported. Though it would be nice.

You can do it few other ways, for example assign a different id at shader level. Or read my tutorial about user scalar and pass the id to vray extra texture that way as bigbossfr mentioned.

---

<div class="post-metadata">

**Author:** ![FSGFX](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@FSGFX](https://forums.chaos.com/u/FSGFX)\
**Post date:** [August 28, 2014, 7:15am UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/5 "2014-08-28T07:15:39Z")

</div>

thats more or less the same problem im talking about in the other thread…  
[http://forums.chaosgroup.com/showthread.php?79458-add-attributes-to-selection-sets-selection-set-manager](http://forums.chaosgroup.com/showthread.php?79458-add-attributes-to-selection-sets-selection-set-manager)

vray needs to work with maya selection sets…  
move some objects into a “maya selection set” and add whatever attribute you need to the set… like arnold…  
or an asignment editor like 3delight…

---

<div class="post-metadata">

**Author:** ![t.petrov](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@t.petrov](https://forums.chaos.com/u/t.petrov)\
**Post date:** [August 28, 2014, 11:24am UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/6 "2014-08-28T11:24:02Z")

</div>

> [@Insurance Building](https://forums.chaos.com/t/insurance-building/45534/6):
>
> i created an object id 4 for this group and add a new multimatte and set R=4, but it don’t work for me

What do you want to see in this second multimate? All objects (sphere1, sphere2, sphere3) having objectid=4 ?

---

<div class="post-metadata">

**Author:** ![igordesign](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/igordesign/32/2986_2.png) [@igordesign](https://forums.chaos.com/u/igordesign)\
**Post date:** [August 28, 2014, 2:08pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/7 "2014-08-28T14:08:47Z")

</div>

> [@Brian\_Bradley](#):
>
> Yes it is normal.  
> You have to use users attribute + extra text render element to do whats you want.

Thanks, but I did not find much information on how it works, you can help?

> [@New York Office Space](https://forums.chaos.com/t/new-york-office-space/45383/39):
>
> This kind of thing is not allowed/supported. Though it would be nice.
> 
> You can do it few other ways, for example assign a different id at shader level. Or read my tutorial about user scalar and pass the id to vray extra texture that way as bigbossfr mentioned.

Thanks friend, where are yours tutorial, i don’t find it on your youtube channel.

> [@Texture maps adjustments](https://forums.chaos.com/t/texture-maps-adjustments/45548/2):
>
> thats more or less the same problem im talking about in the other thread…  
> [http://forums.chaosgroup.com/showthread.php?79458-add-attributes-to-selection-sets-selection-set-manager](http://forums.chaosgroup.com/showthread.php?79458-add-attributes-to-selection-sets-selection-set-manager)
> 
> vray needs to work with maya selection sets…  
> move some objects into a “maya selection set” and add whatever attribute you need to the set… like arnold…  
> or an asignment editor like 3delight…

Thanks! i’ll try it!

> [@On another topic](https://forums.chaos.com/t/45315/28):
>
> What do you want to see in this second multimate? All objects (sphere1, sphere2, sphere3) having objectid=4 ?

Yes, the spheres is only an exemple to simplify and explain my problem. But that is i need to do

---

<div class="post-metadata">

**Author:** ![t.petrov](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@t.petrov](https://forums.chaos.com/u/t.petrov)\
**Post date:** [August 28, 2014, 2:16pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/8 "2014-08-28T14:16:05Z")

</div>

Then you cannot use the object ids to fulfill this, because the object id is exported as a single number to the V-Ray core.  
You have to use one of the methods mentioned above.

---

<div class="post-metadata">

**Author:** ![igordesign](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/igordesign/32/2986_2.png) [@igordesign](https://forums.chaos.com/u/igordesign)\
**Post date:** [August 28, 2014, 3:27pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/9 "2014-08-28T15:27:03Z")

</div>

I can’t set IDs using material IDs in shader levels ☹  
here is my scene.  
[http://www.igorvfx.com/forum/vray/color.jpg](http://www.igorvfx.com/forum/vray/color.jpg)

i have same materials for all characters, and my compositor wants to separate this.  
here is my mmt using object IDs → [http://www.igorvfx.com/forum/vray/rgb.jpg](http://www.igorvfx.com/forum/vray/rgb.jpg)  
And i need another mmt like this → [http://www.igorvfx.com/forum/vray/masks.jpg](http://www.igorvfx.com/forum/vray/masks.jpg)  
I could only make this last mmt using a new renderlayer and creating layeroveride in object IDs, but this method is very very hard to set in many scenes

---

<div class="post-metadata">

**Author:** ![Morbid\_Angel](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morbid_angel/32/21272_2.png) [@Morbid\_Angel](https://forums.chaos.com/u/Morbid_Angel)\
**Post date:** [August 28, 2014, 4:02pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/10 "2014-08-28T16:02:43Z")

</div>

here

[http://forums.chaosgroup.com/showthread.php?69079-Vray-User-Scalar-tutorial](http://forums.chaosgroup.com/showthread.php?69079-Vray-User-Scalar-tutorial)

---

<div class="post-metadata">

**Author:** ![igordesign](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/igordesign/32/2986_2.png) [@igordesign](https://forums.chaos.com/u/igordesign)\
**Post date:** [August 28, 2014, 4:13pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/11 "2014-08-28T16:13:29Z")

</div>

Thanks!! i 'll try it!

> [@Select by face size?](https://forums.chaos.com/t/select-by-face-size/45562/5):
>
> here
> 
> [http://forums.chaosgroup.com/showthread.php?69079-Vray-User-Scalar-tutorial](http://forums.chaosgroup.com/showthread.php?69079-Vray-User-Scalar-tutorial)

---

<div class="post-metadata">

**Author:** ![t.petrov](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@t.petrov](https://forums.chaos.com/u/t.petrov)\
**Post date:** [August 28, 2014, 4:43pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/12 "2014-08-28T16:43:04Z")

</div>

See an example with ExtraTex and VRayUserScalar.  
[extra\_tex\_multimatter.zip](https://forums.chaos.com/uploads/short-url/105f4kHCbyRzyzNUDu6Wfoqjy4F.zip) (10.4 KB)

---

<div class="post-metadata">

**Author:** ![igordesign](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/igordesign/32/2986_2.png) [@igordesign](https://forums.chaos.com/u/igordesign)\
**Post date:** [August 28, 2014, 6:02pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/13 "2014-08-28T18:02:49Z")

</div>

> [@Vray Imap DR-Bucket compression](https://forums.chaos.com/t/vray-imap-dr-bucket-compression/45371/18):
>
> See an example with ExtraTex and VRayUserScalar.

Thanks t.petrov, but if i have another object?  
create a new ball and don’t set any atributte, this object appears white on render element extratex..  
[http://www.igorvfx.com/forum/vray/mask\_color1.jpg](http://www.igorvfx.com/forum/vray/mask%5C_color1.jpg)  
[http://www.igorvfx.com/forum/vray/mask\_color2.jpg](http://www.igorvfx.com/forum/vray/mask%5C_color2.jpg)

and in my test scene i have a same problem, the other objects is white, and domelight too appears  
[http://www.igorvfx.com/forum/vray/mask\_test.jpg](http://www.igorvfx.com/forum/vray/mask%5C_test.jpg)

---

<div class="post-metadata">

**Author:** ![t.petrov](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@t.petrov](https://forums.chaos.com/u/t.petrov)\
**Post date:** [August 28, 2014, 6:16pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/14 "2014-08-28T18:16:46Z")

</div>

There is a default colour in the VRayUserScalar node that is used when there is no matching attribute for that object.  
Probably you need to set it to black, because the default is 0.5 gray. 🙂

---

<div class="post-metadata">

**Author:** ![igordesign](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/igordesign/32/2986_2.png) [@igordesign](https://forums.chaos.com/u/igordesign)\
**Post date:** [August 28, 2014, 6:24pm UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/15 "2014-08-28T18:24:15Z")

</div>

woww.. thanks!! you are right!

> [@Aniostropy error](https://forums.chaos.com/t/aniostropy-error/45508/7):
>
> There is a default colour in the VRayUserScalar node that is used when there is no matching attribute for that object.  
> Probably you need to set it to black, because the default is 0.5 gray. 🙂

Thanks friends!!!

---

<div class="post-metadata">

**Author:** ![FSGFX](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@FSGFX](https://forums.chaos.com/u/FSGFX)\
**Post date:** [August 29, 2014, 7:02am UTC](https://forums.chaos.com/t/object-id-in-a-group/50865/16 "2014-08-29T07:02:51Z")

</div>

it would be easier to have object iDs for sets and the ability to override the IDs only for specified renderelements.  
maya set \<--\> object iD \<--\> multimatte
