Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   running a script before the batch render of a frame (https://simplymaya.com/forum/showthread.php?t=7135)

Alan 27-07-2003 03:32 PM

it's very misleading the way they've worded it... bloody AW ;)

arghhh there must be a way of doing this

Alan

BabyDuck 27-07-2003 03:38 PM

i thought the original problem was solved - only the pragma missing that predefines funtions? the error "cannot find procedure" is really good - as it wanted to do it, but could not find it :D

Alan 27-07-2003 03:40 PM

yeah that's true :) I've now made the expression source the script before it tries to run it which again in the viewport is fine but it doesnt like it in the batch render.

Alan 27-07-2003 03:44 PM

ok i finally got it. But it's such a crap way of having to do it! I made it so that the doLod function was not a function anymore but just a piece of script. Then I made maya source it before each frame and now it works...... oh well.

Babyduck you've been a massive help thank you, thank you!

Alan

BabyDuck 27-07-2003 03:47 PM

a really bad hack around it would be to instead trying to source it, "source" it manually. so instead of calling the procedure, copy and paste the whole thing into the expression (that assumes it does not recursively call itself, which would be a slight problem ... ) :)

and dont forget to use the cmd render ;)

BabyDuck 27-07-2003 03:48 PM

or, maybe put the source command in the pre render mel script ???


All times are GMT. The time now is 11:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018