# VRayMesh Object ID

**URL:** <https://forums.chaos.com/t/vraymesh-object-id/60130>\
**Category:** Public\
**Created:** [September 15, 2016, 7:42am UTC](https://forums.chaos.com/t/vraymesh-object-id/60130 "2016-09-15T07:42:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruchit](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@Ruchit](https://forums.chaos.com/u/Ruchit)\
**Post date:** [September 15, 2016, 7:42am UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/1 "2016-09-15T07:42:12Z")

</div>

Hi,  
can i get more info on how vrayRE\_Object\_ID(vrayClassType=nodeIDChannel) pass works with VrayMesh(Proxy) ?

---

<div class="post-metadata">

**Author:** ![yolov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/yolov/32/11920_2.png) [@yolov](https://forums.chaos.com/u/yolov)\
**Post date:** [September 15, 2016, 10:36am UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/2 "2016-09-15T10:36:07Z")

</div>

It works just like with normal objects - you can add objectID attributes to the shape of the proxy, once it’s imported into the scene, and it will appear with its ID in the ObjectID render element.  
In addition, if there was already and objectID attribute assigned to the geometry **before** it was converted to proxy, it will be kept within the proxy and it will be ready and used for rendering with that proxy, without the need to assign additional attributes. You can also override the objectID of such a proxy, by simply assigning a new objectID attribute to its shape once imported to the scene.

---

<div class="post-metadata">

**Author:** ![Ruchit](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@Ruchit](https://forums.chaos.com/u/Ruchit)\
**Post date:** [September 15, 2016, 2:04pm UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/3 "2016-09-15T14:04:08Z")

</div>

How can i randomize objectID of duplicate of VRProxy ?

\*Export Maya Anim to alembic  
\*create VRProxy of alembic  
\*Import VRProxy multiple times or duplicate.  
\*render objectID..In Result..every mesh under VRProxy should get random ID/Color.

---

<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:** [September 15, 2016, 3:15pm UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/4 "2016-09-15T15:15:20Z")

</div>

Do you want to store multiple objects with different object ids in a single vrmesh or abc file?

---

<div class="post-metadata">

**Author:** ![Ruchit](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@Ruchit](https://forums.chaos.com/u/Ruchit)\
**Post date:** [September 16, 2016, 3:40pm UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/5 "2016-09-16T15:40:22Z")

</div>

![](https://europe1.discourse-cdn.com/chaosprd/original/4X/c/9/3/c93c8519e72503dcdf08a9829070c20a9415c3c7.jpeg)

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [September 16, 2016, 3:48pm UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/6 "2016-09-16T15:48:25Z")

</div>

We don’t currently have a way to do this; in other use cases, people would prefer if the object IDs are not random. We could add an option to the object ID element to randomize with respect to the render ID as well - would this work for you?

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![Ruchit](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@Ruchit](https://forums.chaos.com/u/Ruchit)\
**Post date:** [September 16, 2016, 4:55pm UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/7 "2016-09-16T16:55:30Z")

</div>

Ok cool, For now is there any alternative hack using OSL shader or anything else?

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [September 16, 2016, 9:03pm UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/8 "2016-09-16T21:03:07Z")

</div>

You could output both the Object ID and the Render ID, and do some kind of mix in Nuke, I guess.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![jeremyp](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jeremyp](https://forums.chaos.com/u/jeremyp)\
**Post date:** [October 26, 2016, 5:18am UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/9 "2016-10-26T05:18:09Z")

</div>

Is there a way to set the object id of proxy objects similar to how shaders can be applied with the vraymeshtml?

---

<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:** [October 26, 2016, 7:54am UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/10 "2016-10-26T07:54:09Z")

</div>

What do you mean by this? You want to override the object id of a particular object inside the proxy?  
As far as I know this is not possible.  
It is only possible to set an object id that is applied to all objects in the proxy.

---

<div class="post-metadata">

**Author:** ![jeremyp](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jeremyp](https://forums.chaos.com/u/jeremyp)\
**Post date:** [October 26, 2016, 10:47pm UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/11 "2016-10-26T22:47:59Z")

</div>

> [@Qixel suite / substance painter/ mari ???](https://forums.chaos.com/t/qixel-suite-substance-painter-mari/52640/13):
>
> What do you mean by this? You want to override the object id of a particular object inside the proxy?

Yes. This feature would allow us to further contain objects within proxy objects.

Currently we have one proxy object per object in the scene in our pipe which is becoming restrictive for some of the larger environments we will soon see.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [October 27, 2016, 4:27pm UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/12 "2016-10-27T16:27:43Z")

</div>

We are working on ways to override various attributes of the objects inside a proxy with a separate geometry overrides file, so hopefully it will be possible at some point. How urgently do you need this? I’m currently working on the material assignments part still.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![jeremyp](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jeremyp](https://forums.chaos.com/u/jeremyp)\
**Post date:** [October 27, 2016, 11:11pm UTC](https://forums.chaos.com/t/vraymesh-object-id/60130/13 "2016-10-27T23:11:17Z")

</div>

Great! That would definitely benefit the workflow on these next projects which start in Jan. So if we get it by December that would work well for us..
