Jump to content

pscale : is there any way to filtering the negative values?


Recommended Posts

Hi all,

I have an expression

.5 - (($LIFE)* 0.6)  * 4

in pointsop:particle scale value

to reduce particle's size to be smaller by its$LIFE.

when it gets to negative values, particle starts grow up again later..

Is there any way to filter the negative values and remove them or make it dead when the particle scale gets value of 0.0 in pop or sop..?

Here is the hip file. ver9.1

copySopQuestion_houdini9.1.004.hipnc

Thanks,

Link to comment
Share on other sites

Hi all,

I have an expression

.5 - (($LIFE)* 0.6)  * 4

in pointsop:particle scale value

to reduce particle's size to be smaller by its$LIFE.

when it gets to negative values, particle starts grow up again later..

Is there any way to filter the negative values and remove them or make it dead when the particle scale gets value of 0.0 in pop or sop..?

Here is the hip file. ver9.1

Thanks,

Just to add what Edward said, you could possibly reorganize your expression to keep under control:

Even

0.5 * (1-$LIFE)

should work unless you don't expect more from that.

Secondly, one great thing for particles in general are CHOPS. Here you can *see all attributes changing in time and tweak it as you like. Very powerful. You can import point attributes to CHOPs and post-process them like you would do with pictures in compositing.

See attachment for not terrible interesting example.

Cheers,

sy.

chops_pops.hipnc

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