View Full Version : Exclude/Include Reflections of objects ... How?
01-06-2010, 01:33 AM
Hello. We have an issue regarding the reflections of objects reflected into others.
Is it possible to exclude/include reflections between objects like it works between object and lights using the "light linking" tool (but in this case controlling the reflections)?
i.e. I want to keep the reflection of the white plane over the blue cube, though at the same time I would like to get rid of the reflection of the plane in the ground... inside Maya, is it possible???(specially in more complex scenes).
Using Maya 2009. Thanks in advance.
01-06-2010, 02:16 AM
Good questions, seems it's not that easy, see this link (http://forums.cgsociety.org/showthread.php?t=664668)
01-06-2010, 12:00 PM
Thanks Morlankey ... it seems there is no easy way to do it.
01-06-2010, 12:14 PM
Custom flags The Maya transform node does not expose all extended instance flags for mental ray, but they can be controlled via dynamic attributes:
The value is an index into predefined flags (bit sets):
0 - cast off, receive off
1 - cast on, receive on
2 - no bit set, inherit
3 - cast on, receive off
4 - cast off, receive on
Create the attributes above by following these examples:
addAttr -ln "miReflection" -at "enum" -enumName "Cast Off Receive Off:Cast On Receive On:Inherit:Cast On Receive Off:Cast Off Receive On" myTransformNodeaddAttr -ln "miRefraction" -at "enum" -enumName "Cast Off Receive Off:Cast On Receive On:Inherit:Cast On Receive Off:Cast Off Receive On" myTransformNodeaddAttr -ln "miTransparency" -at "enum" -enumName "Cast Off Receive Off:Cast On Receive On:Inherit:Cast On Receive Off:Cast Off Receive On" myTransformNode
If any of the reflection and refraction attributes is present, then the standard trace flag is not respected any more.
This attribute follows the scheme of the existing caustic and globillum standard flags, and supports the following values:
0 - hide on
1 - cast off, receive off
2 - cast on, receive off
3 - cast off, receive on
4 - cast on, receive on
5 - not bit set, inherit
Create this attribute as follows:
addAttr -ln "miFinalGather" -at "enum" -enumName "Hide On:Cast Off Receive Off:Cast On Receive Off:Cast Off Receive On:Cast On Receive On:Inherit" myTransformNode
Run on script editor and change the myTransformnode with the real transform node of your objects.
01-06-2010, 12:14 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.