I’m currently working on a litte script and I have the following problem. When I’m generating strokes just before render time using the pre-render MEL function, Maya generates the strokes, but doesn’t render them.
Here is a little procedure that does something like that. Enter the name of the procedure in the pre-render MEL field in the global render menu and press render. Maya now creates, but doesn’t render the stroke.
global proc maNus_test_preRen()
// create curve
string $curve =
curve -d 1 -p 2 0 2 -p -5 0 -5 -k 0 -k 1;
// adjust the brush presets to red
bPset “color1R” 1;
// attach stroke to the selected curve
select -r $curve;
When you rerender the scene, Maya will render the previously created stroke and will, of course create a new stroke. Does anybody knows why Maya doesn’t render the strokes? And how I can solve this problem. Thanks in advance.