I was fooling around and trying to get a FLIP fluid to emit every other frame, under the Creation Tab. The default value is 1, so the fluid emits from frame 1 and then stops. I also used $F, to have it emit every frame.
I'm just curious if there is an expression to tell it to emit every OTHER frame?
Expression for "every other frame"?
29643 11 3- Dave.Ladner
- Member
- 12 posts
- Joined: June 2012
- Offline
- dulo
- Member
- 383 posts
- Joined: June 2010
- Offline
- Dave.Ladner
- Member
- 12 posts
- Joined: June 2012
- Offline
Well, I suppose you could look at it that way yes, since every other frame will be either always odd or always even.
I tried using a ($F%2), but technically that would just give me a value or 1 or 0, and in the Creation Frame, that means it would read as emitting on frame 0 or 1, and once it's past that, it basically acts as if it was only emitting on frame 1. Make sense?
So I'm wondering if there's a way to get it to actually look at the frame, or every other frame, using a $F kind of expression?
I tried using a ($F%2), but technically that would just give me a value or 1 or 0, and in the Creation Frame, that means it would read as emitting on frame 0 or 1, and once it's past that, it basically acts as if it was only emitting on frame 1. Make sense?
So I'm wondering if there's a way to get it to actually look at the frame, or every other frame, using a $F kind of expression?
In the process of learning Houdini. 3DS Max Artist currently.
- dulo
- Member
- 383 posts
- Joined: June 2010
- Offline
- Dave.Ladner
- Member
- 12 posts
- Joined: June 2012
- Offline
- dulo
- Member
- 383 posts
- Joined: June 2010
- Offline
- Dave.Ladner
- Member
- 12 posts
- Joined: June 2012
- Offline
- ahmed_mash3al
- Member
- 1 posts
- Joined: Dec. 2013
- Offline
- Guennoun Djamel
- Member
- 1 posts
- Joined: May 2014
- Offline
- neil_math_comp
- Member
- 1743 posts
- Joined: March 2012
- Offline
Guennoun Djamel
Am workin with the seed for the scatter node. I want that the value stays as it is and adds every N frame.
floor($F/13)
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
- amphiptere
- Member
- 1 posts
- Joined: Jan. 2019
- Offline
- Len
- Member
- 133 posts
- Joined: July 2007
- Offline
You can write an expression (in Hscript or python) to control or limit creation.
For example, in the default hscript, using the if() function:
Or in python (after you switch the language for the field and/or operator):
And don't forget you can right-click on the field name (not entry area) and select Edit Expression or ctrl/cmd + E in field to get a pop-up text editor.
For example, in the default hscript, using the if() function:
if($F<20, $F%5, 0)
Or in python (after you switch the language for the field and/or operator):
if frame()<20: return frame()%5*frame()
And don't forget you can right-click on the field name (not entry area) and select Edit Expression or ctrl/cmd + E in field to get a pop-up text editor.
-
- Quick Links