calin_casian Posted October 30, 2003 Share Posted October 30, 2003 I need to write a more complex expression for controling for example the tx of an object in this maner: if ($FF==15) than tx=bla, bla; else tx=2xbla; endif but I don't know where to put it. maybe there is a CHOPS op that let you write code inside. another one will be: can I use a parameter/attribute which I declared, like $BLA, with parameter/attribute in the above statement? thx calin Quote Link to comment Share on other sites More sharing options...
anakin78z Posted October 31, 2003 Share Posted October 31, 2003 no, it's much simpler than that. If you type exhelp if you'll get an explanation as well as an example. So if at frame 15 you'd like to set tx to 1, you'd use: if($FF==15,1,0) As far as using attributes, yes, you can. I'm not sure if you're talking about global variables or attributes created using an attribute sop, but either one would work. Cheers, Jens Quote Link to comment Share on other sites More sharing options...
Jason Posted October 31, 2003 Share Posted October 31, 2003 of course, for such an expression it can be reduced down even further to: $F==15 ..which evaluates to 1 if true anyway. Quote Link to comment Share on other sites More sharing options...
calin_casian Posted October 31, 2003 Author Share Posted October 31, 2003 well, I was thinging a bit further to write "do case" stuff and "while", cascade if's and put inside some motion ecuations. I'm interesting where I must put that kind of complex expressions line tx to point to some script file or so?! thx calin Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.