Hello,
I'm working on scenes with large amounts of assets to which I'd like to add lights as a post translate process. I have a simple setup that works with translation offsets, but once asset rotation comes into play I don't know how to make the distributed lights stick. I've attached a test scene which illustrates the problem.
Here's a simplified version of the script:
Any help with setting the rotation to make the lights stick to the end of the cylinders, would be greatly appreciated.
Cheers!
/Dan
I'm working on scenes with large amounts of assets to which I'd like to add lights as a post translate process. I have a simple setup that works with translation offsets, but once asset rotation comes into play I don't know how to make the distributed lights stick. I've attached a test scene which illustrates the problem.
Here's a simplified version of the script:
Code:
import vray.utils as vr lightGeos = vr.findByType('Node') for i, lightGeo in enumerate(lightGeos): light = vr.create('LightSphere', 'light'+lightGeo.name()+str(i)) transform = lightGeo.get('transform') transform.offs+=vr.Vector([-6, 0, 0]) light.set('transform', transform) light.set('intensity', 100)
Cheers!
/Dan
Comment