Jump to content

Multiple Expressions on blast node?


schiho

Recommended Posts

Hi,

 

i would like to add a second condition to my blast node, how this is done in Houdini?

 

if(pscale > 0.5 && $F > 30)

 

thats what i want to achieve. @pscale > 0.4 but what about the second condition? how is the syntax?

 

thanks

Link to comment
Share on other sites

Hi,

 

i would like to add a second condition to my blast node, how this is done in Houdini?

 

if(pscale > 0.5 && $F > 30)

 

thats what i want to achieve. @pscale > 0.4 but what about the second condition? how is the syntax?

 

thanks

This looks like a legal expression to me, you only forgot to put the output to the conditions, like:

if($PSCALE > 0.5 && $F > 30, 1, 0)

The trick is that I don't think you can't do this in a blast node, but a delete node which has the parameter field for expression.

 

Cheers

Link to comment
Share on other sites

The Delete node is quite slow compared to the the Blast node. If you're dealing with a lot of points you might want to use an AttribVOP or AttribWrangle instead.

 

The VEXpression version is::

 

if(@pscale>0.5 && @Frame>30)
    removepoint(0,@ptnum);

  • Like 1
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...