Agent VEX Functions Always Return Zero?

   1024   0   0
User Avatar
Member
2556 posts
Joined: June 2008
Offline
Hi All,

I am trying to use some of the agentclip VEX functions but they always return zero. This is mentioned in the help that if parameters passed are not valid the result is a zero.

So here is my code:

float cl = agentcliplength(“opobj/rock_golem_dying_35_fbx/Monster”,@id,“dying”);


And the help.
geometry
The name of the geometry file to reference. Inside Houdini, this may be op:full_path_to_sop to reference a SOP.

opinput
The number of the input to reference. The first input is number 0, the second is 1, etc.

prim
The primitive number.

Is @id the primitive number if I am making this call inside a CrowdTrigger in VEX code mode?

Does the path to my geometry look correct? “Monster” is a geometry node inside a subnet.

Does anyone have an example of a working call to one of these functions?
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links