cant use $F < $NPT.

   3279   5   1
User Avatar
Member
18 posts
Joined:
Offline
Hello all,

I'm trying to use an expression like

$F < $NPT

on the Impulse Activation field of a Source node inside a POP network. But I get an error everytime. -> Cant evaluate expression. In the Impulse Activation field, I get a dropdown and am allowed to pick $NPT from the list. So I'm confused. Should work, shouldnt it? Please help thanks.

I want to generate a particle every frame until I run out of points from the input geometry. My Impulse Birth rate is 1.

Thanks.
din is noise: http://dinisnoise.org/ [dinisnoise.org]
User Avatar
Member
30 posts
Joined: 10月 2009
Offline
activation field should take just 0 or 1, ON or OFF.
http://vimeo.com/user7871222 [vimeo.com]
User Avatar
Member
8647 posts
Joined: 7月 2007
Online
weird but not surprising, since that node can accept $NPT, but probably not in activation parameter

just use that expression in Impulse Birth Rate, result will be the same
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
18 posts
Joined:
Offline
Thanks Tamte, yes it works on the Impulse Birth Rate.

I thought NPT shouldnt work at all as it is a local variable for a Point SOP?

I'm also having trouble in bringing in a Point attribute created with AttributeCreate SOP into a POP network.
How do I do this?

Thanks again.
din is noise: http://dinisnoise.org/ [dinisnoise.org]
User Avatar
Member
8647 posts
Joined: 7月 2007
Online
$NPT is local variable for many sops and pops, just look at the lelp for Source POP and you will find it there as well

all point attributes are inherited by particles from source geometry by default in Source POP
it's in Attributes tab Inherit Attributes parameter
so you can use it directly in vop pops for example

what you probably want is to access them through the variable like $PARMNAME
in that case check Attributes/Create Local Variables checkbox on Source POP
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
7044 posts
Joined: 7月 2005
Offline
$F < `npoints(“../pathToIncomingGeometry”)`

or something like that
Cheers,

Peter Bowmar
____________
Houdini 20.5.262 Win 10 Py 3.11
  • Quick Links