Re: how can I get the camera's name when rendering?
by x_kelvin <x_kelvin@[EMAIL PROTECTED]
>
Apr 4, 2008 at 08:53 AM
thanks, aen
I have solved the rendering problem.
I get the example maya file of pencilshading.ma from Toon>get toon
example... menu. In the maya file, the perspShape.message is connected
to projection1.linkedCamera, if I have several my cameras to rendering
at once, I must make the connection between all my cameras and
project1. I find that the render command has a "-preRender"
parameter, and get my aim by using this parameter.
The content of My batch file is as follows:
render -cam camera1 -s 1 -e 50 test.mb
render -cam camera2 -s 51 -e 100 -preRender "connectAttr -f
cameraShape2.message projection2.linkedCamera;" test.mb
render -cam camera3 -s 101 -e 124 -preRender "connectAttr -f
cameraShape3.message projection2.linkedCamera;" test.mb
........