Jump to content

how can I write complex expressions


calin_casian

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...