I was inspecting the VEX code inside the Crowd Trigger HDA. There is a Pop Wrangle inside the HDA to handle triggering via proximity. Inside the VEX code a handle is fetched to a point cloud from input 0 (which is not connected to anything).
int handle = pcopen (0, “P”, @P, ch(“../particleproximitysearchradius”), 1000);
However, if I move up one level and try the same thing in a CrowdTrigger running in VEX mode the code always returns zero.
int handle = pcopen (0, “P”, @P, agent_search_radius, 1000);
I assume this is some kind of context error with input 0.(which Crowd Triggers does not have). The help claims you can override this with a direct path to a SOP.
The file name may use the op: syntax to reference SOP geometry in the OP contexts.What would that path be for a default crowd simulation?
Can I actually gain access to the point cloud that is the agents?
I tried the following but it does not work.
int handle = pcopen (“opobj/crowd_sim”, “P”, @P, agent_search_radius, 1000);