Hello everyone
I am trying to write a custom shader to do an effect. I need to be able to reference the coordinate system of an object in the scene so that I can do some shading in relation to that position.
How do I tell Maya to insert an object into the scene as a coordinate system to which I can transform my shading points using OSL's transform("myCoordSys", P)?
Thanks so much
I don't think Arnold supports anything other than the coordinate spaces listed in the OSL language specification. There's a version of transform() that takes an actual matrix. You could store the transformation matrix as user data on a shape, and get that user data with getattribute().