SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / running a script before the batch render of a frame
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 27-07-2003, 03:32 PM   #16
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

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

arghhh there must be a way of doing this

Alan
__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 27-07-2003, 03:38 PM   #17
BabyDuck
Subscriber
 
BabyDuck's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 1,170
Thanks: 3
Thanked 12 Times in 12 Posts
Default

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
BabyDuck is offline   Reply With Quote
Old 27-07-2003, 03:40 PM   #18
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

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.
__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 27-07-2003, 03:44 PM   #19
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

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
__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 27-07-2003, 03:47 PM   #20
BabyDuck
Subscriber
 
BabyDuck's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 1,170
Thanks: 3
Thanked 12 Times in 12 Posts
Default

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 is offline   Reply With Quote
Old 27-07-2003, 03:48 PM   #21
BabyDuck
Subscriber
 
BabyDuck's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 1,170
Thanks: 3
Thanked 12 Times in 12 Posts
Default

or, maybe put the source command in the pre render mel script ???
BabyDuck is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch Rending Render Layers Ozgalis Lighting & Rendering 7 07-01-2011 06:04 PM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.