boazsunim
05-05-2011, 05:25 PM
Hey guys,
Basically what I am after is a way of running the following expression on multiple objects ...
if( polySurface2.rotateZ < 179 )
polySurface2.visibility = 1 ; else polySurface2.visibility = 0
so here is the mel command that give me Syntax error :
for($n in `ls -sl`)
{
expression -s ($n + ".visibility = if( " + $n + ".rotate < 179 ) { "
+ $n + ".visibility = 1 ) else " + $n + ".visibility = 0 };")
-o $n -ae 1 -uc all ;
};
Many thanks in advance.....
boz.
Basically what I am after is a way of running the following expression on multiple objects ...
if( polySurface2.rotateZ < 179 )
polySurface2.visibility = 1 ; else polySurface2.visibility = 0
so here is the mel command that give me Syntax error :
for($n in `ls -sl`)
{
expression -s ($n + ".visibility = if( " + $n + ".rotate < 179 ) { "
+ $n + ".visibility = 1 ) else " + $n + ".visibility = 0 };")
-o $n -ae 1 -uc all ;
};
Many thanks in advance.....
boz.
