View Full Version : Expression_help
JFFORTIN 03-13-2004, 10:20 PM l would like to know the expression to ""when l select a object do that""
thx
|
|
zachgrachan
03-13-2004, 10:33 PM
its called a scriptJob. do a search here for it, comes up pretty regularly.
JFFORTIN
03-13-2004, 11:18 PM
thx man :) for the tip
JFFORTIN
03-14-2004, 12:37 AM
ok another question the thing is with the scriptJob l would like to get bot conditiontrue and false together to get the thing l want like this exemple......
global proc test()
{
string $sel[] = `ls -sl`;
if(`size( $sel )` == 1)
{
setAttr ("Ball.visibility") 1;
}
else
{
if(`size( $sel )` == 0)
{
setAttr ("Ball.visibility") 0;
}
}
};
scriptJob -cf "SomethingSelected" "test";
l would like to know how to get both condition working
alesmav
03-14-2004, 06:09 PM
Hey!
Why would you want to make an expression for that? If you want to execute something on the selected object, MEL script is usually the way to go....
ALES
JFFORTIN
03-14-2004, 06:48 PM
tht its just a test to figure how it works thats it....... l will use it for another purpose than hiding a ball....................
JFFORTIN
03-14-2004, 07:38 PM
ok thx guy problem resolve :)
CGTalk Moderation
01-17-2006, 04:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.