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..