Hi there,
I am creating a shot with several assets imported as reference. In some of those assets, there are Vray lights already setuped.
I want the lights of a referenced asset to only have impact on the meshs of it's own reference.
♦ The default behavior for the light is to illuminate everything.
I'd like to prepare the lights directly in their assets so that they have a fixed list of meshs to light, so that when I import the asset in the shot scene the lights are already linked to the meshs of the asset it belongs to.
I could not find a way to set a meshs "include list" on the lights, is it possible in vray?
♦ Second solution, which I don't really like: using light linking once in the shot scene.
I tried light link through a script, but it completly break the scene because there are way too much objects: apparently maya creates a connection for every shape when breaking a light link. As I have thousands of objects in the scene, simply trying to break the conneciton from one light takes more than 10 minutes, then the maya scene is way too slow to work with... And I have more than ten lights to setup.
Apparently it is possible to create an object set to light link a light to a set and not to thousands of different objects (as stated in cmds.lightlink help page), but it does not seem to work with vray (it does not change anything to the render).
I know that in renderman, we have to add a prman attribute to the object set so that it is understood by the render engine: is it necessary in Vray too? If so, Ho can I achieve that?
Is there any solution for this?
Thanks,
Ben
I am creating a shot with several assets imported as reference. In some of those assets, there are Vray lights already setuped.
I want the lights of a referenced asset to only have impact on the meshs of it's own reference.
♦ The default behavior for the light is to illuminate everything.
I'd like to prepare the lights directly in their assets so that they have a fixed list of meshs to light, so that when I import the asset in the shot scene the lights are already linked to the meshs of the asset it belongs to.
I could not find a way to set a meshs "include list" on the lights, is it possible in vray?
♦ Second solution, which I don't really like: using light linking once in the shot scene.
I tried light link through a script, but it completly break the scene because there are way too much objects: apparently maya creates a connection for every shape when breaking a light link. As I have thousands of objects in the scene, simply trying to break the conneciton from one light takes more than 10 minutes, then the maya scene is way too slow to work with... And I have more than ten lights to setup.
Apparently it is possible to create an object set to light link a light to a set and not to thousands of different objects (as stated in cmds.lightlink help page), but it does not seem to work with vray (it does not change anything to the render).
I know that in renderman, we have to add a prman attribute to the object set so that it is understood by the render engine: is it necessary in Vray too? If so, Ho can I achieve that?
Is there any solution for this?
Thanks,
Ben
Comment