Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

workspace cmd changed? not doing what I think it should..

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
188 Views, 0 Replies

workspace cmd changed? not doing what I think it should..

the workspace cmd has changed in 2009 from 2008,
I use in 2008
workspace -rt "images" ($imagePath);
to get images from render to go exactly where I want..
but after trying in 2009 and reading the workspace cmd change
workspace -fr "images" ($imagePath);
I'm not getting images writing to $imagePath

anyone have any good ideas? or notice something I missed?

here is an example of my cludgy logic in my script..

print "***\n";
print $imagePath3;print "\n";
print "***\n";

if (getApplicationVersionAsFloat() == 2008) {
print "***workspace cmd for maya 2008\n";
workspace -rt "images" ($imagePath);
}
else if (getApplicationVersionAsFloat() == 2009) {
print "***workspace cmd for maya 2009\n";
workspace -fr "images" ($imagePath);
}
else {
error "unknown maya version for setting workspace cmd";
}

the above all works fine, except 2009 does not put the image in $imagePath
where 2008 will put the rendered image in $imagePath


ahah!
as I write this I guessed maybe 2009 is not making the dir $imagePath
so I mkdir -p $imagePath
then retry my render script
and viola it works..

so I guess 2009 does not make the dir automatically
where as 2008 does..
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report