Jump to content

$F >1 & $F <10


Recommended Posts

Instead of keyframing something, I sometimes use $F >1 & $F <10 if I would want something to be active between frames 1-10. In my opinion it's just faster and easier than putting down a keyframe for certain things, like activating a fluid emitter, it's also easier to change it later if I would want to.

However, and this is where I have no clue. Say I would want the emitter to be active between frame 1-10, and then also 20-30. How do I do that? Is there a sign for OR, or something?

Like this: $F >1 & $F <10 OR $F >20 & $F <30

I've tried lots of variations with brackets and the &-sign in the middle (since that is the only thing I know of), but it obviously doesn't work since it all evaluates to 1-10 AND 20-30; and a frame can't be between both at the same time, making it impossible.

Does anyone know? :)

Link to comment
Share on other sites

An exmplenation about why it 'may' have worked before:

The singular AND (&) is a bitwise operator rather than an logical operator. The bitwise AND operation will compare the two and return every bit that are set in both variables, so for example:



if:

a = 0011001
b = 1010001
c = a & b
1011001 = c
[/CODE]

The logical AND (&&) operator chains two comparrisons together.

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