Object ID

How do I render out an object ID pass so Objects in the scene is colored differently for compositing ? There is no object ID renderpass only Material ID and Render ID

One way to do it would be to use the MultiMatte render element.

Best regards,
Vlado

Not sure if this is fixed, but if you have object ID’s attached to Groups or Objects then add a VrayObject Property, the Vray Object Property will override the Object ID’s and you won’t get anything rendering. You will want to turn that off on the Vray Object Property node if it’s being used.

this is fixed since at least 2 months…you can disable the “override object ID” in the VOP.

Why disable it? Why would adding a VOP turn Override object to 0 and set it on? Was that a request from someone?

i think noone requested it, but the developers simply thought it would be a good default behaviour :wink: which it isn’t…

maybe we hereby request the option “Override Object ID” to be OFF by default in VOPs…

cheers
Oli

+1 for me!

Thanks

Dominik

Changing the default value will brake the old scenes… Maya don’t persist an attribute if it was not changed. So all scenes which were relying on the VOP override will no work any more.

Who here uses VOP object ID over-rides?

I think Vray 2.0 release should have that change in it to be honest. Can we have an Official forum vote? :slight_smile:

I use it! Often it helps to keep things organized. But there’s no need for a default. But on the other hand backward compatibillity is really important to me, so it should stay the way it is.

We have used them a very few times only and we also manage Vray builds on a per project base…so if a new build has that attribute OFF by default it would be no problem for us. We would still render older projects with their specific vray build.

+1 from me for changing the default of the VOP

That’s smart. How do you do that?

Programmers that know magic.

Humh…Object ID…Isnt it better to use Wire color? I use it all teh time…

Like this one?

I think we can use optionVar support in Maya. For example if “vrayVOPObjectIDOverride” is set to 1, when VOP is created, it will turn off ObjectID Override. This is what maya docs says for optionVar:

“This command allows you to set and query variables which are persistent between different invocations of Maya. These variables are stored as part of the preferences.”

When a VOP is added, it should never change an attribute unless told to. Period. Having the Object ID override by default when added is bad.

We need subservient VOP’s in Maya. :slight_smile:

Okay Metzger, good point. Totally agree with that.

Initially, it was requested that an Object ID option is added to the V-Ray object properties that always overrides the V-Ray specific attributes added to the shape/transform itself. Then, some time later, it was requested that there is a toggle whether to override the object ID or not. To keep compatibility with older scenes, this toggle had to be enabled by default. If I knew both options were coming, I would have made the toggle disabled by default, but as it is, I didn’t have a choice.

maybe we hereby request the option “Override Object ID” to be OFF by default in VOPs…As Ivaylo pointed out, there are issues with backward compatibility. There might be a way around this, so we’ll see…

Best regards,
Vlado

Well if we keep that logic, why don’t we rename it from Vray Object properties to “Vray Object ID OFF with other options”

It doesn’t make sense to have that option on by default. Whoever requested that being on needs to smoke more from the bong.