Changing a Single Scatter Transform From a Script
Posted: Mon Jul 06, 2015 10:55 pm
I am evaluating Octane currently for a new project.
I need to create a script to change the shear coefficients in a Scatter node in a very precise way.
I will be producing a large number of frames for the production of light field holograms.
My script will need to change the shear elements for each rendered frame.
I can manually change the X and Y shear elements "1 0 X 0 0 1 Y 0 0 0 1 0" in a scatter node and the shear works the way it should.
Each scene (created in Maya) can have a single scatter node named "myTransform" or some such name just before the render target node.
I would expect that I would copy the scenegraph, as in the turntable demo, before modifying the scatter matrix.
Can I reference this uniquely named node from a Lua script?
Can I then change the scatter matrix elements? There will only be a single matrix transform in the node.
I can see that I will likely need to use items NT_GEO_SCATTER and A_TRANSFORMS to access the node.
I would seem that I should be able to do that, but with only the api browser and a few Lua script examples I have been struggling to get this to work. Of course I am new to Lua, so I am on the steep part of the learning curve.
Thanks for any help!
Craig
http://www.zebraimaging.com
I need to create a script to change the shear coefficients in a Scatter node in a very precise way.
I will be producing a large number of frames for the production of light field holograms.
My script will need to change the shear elements for each rendered frame.
I can manually change the X and Y shear elements "1 0 X 0 0 1 Y 0 0 0 1 0" in a scatter node and the shear works the way it should.
Each scene (created in Maya) can have a single scatter node named "myTransform" or some such name just before the render target node.
I would expect that I would copy the scenegraph, as in the turntable demo, before modifying the scatter matrix.
Can I reference this uniquely named node from a Lua script?
Can I then change the scatter matrix elements? There will only be a single matrix transform in the node.
I can see that I will likely need to use items NT_GEO_SCATTER and A_TRANSFORMS to access the node.
I would seem that I should be able to do that, but with only the api browser and a few Lua script examples I have been struggling to get this to work. Of course I am new to Lua, so I am on the steep part of the learning curve.
Thanks for any help!
Craig
http://www.zebraimaging.com