liquidsolid

liquidsolid

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

grouping particles by $LIFE April 14, 2011, 3:02 p.m.

I can't believe I am asking this but I am incredibly frustrated….. it should just be a simple expression in the group node $LIFE < .1 but it's not working……….. I want to group the particles that are just being born, any help would be greatly appreciated

Hscript inline function March 15, 2011, 2:44 p.m.

nice! thank you! it never occurred to me to use the false statement as a way to trigger another conditional……. I like the inline as it feels easier to read…..

Thanks man you are the best!

Hscript inline function March 15, 2011, 1:59 p.m.

right but I don't want a simple expression…… I have 5 if statements that I want to evaluate and return different values.

so something like this:
if ($F == 1, 1, 0)

will give me 1 if it's true and 0 if it's false

if i do this:
if($F == 1, 1, 0) || if($F == 5, 10, 0)

it will only return a 1 or a 0 not 1 or 10….. I want to do an inline function but I can't figure out the sytanx in hscript. I know how to create a python function to do this but not hscript