Writing to attributes in a Snippet VOP Node

   177   1   0
User Avatar
Member
19 posts
Joined: 8月 2019
オフライン
I'm trying to debug a POP Steer Avoid node in a Crowd SIM dopnet. I've gone into the node and added the following in the Snippet VOP Node:

v@avoid_force = avoidforce;

I've added avoid_force to Bindings to Export. It does create the attribute but it's always 0, 0, 0. I've tried:

v@avoid_force = {1, 0, 0};

But it's still 0, 0, 0 in the geometry spreadsheet.
Edited by HypoSection - 2026年4月6日 10:51:43

Attachments:
screenshot.png (87.2 KB)

User Avatar
Member
9572 posts
Joined: 7月 2007
オフライン
your setup looks good
HypoSection
... I've tried:
v@avoid_force = {1, 0, 0};
But it's still 0, 0, 0 in the geometry spreadsheet.
this would be {0,0,0} only for particles with 0 velocity as there is an early return for those , otherwise you should see {1, 0, 0}

as for
v@avoid_force = avoidforce;

apart from 0 velocity this also depends on f@pscale and whether the particles are actually close enough to impart the avoidforce
Edited by tamte - 2026年4月6日 12:51:15
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links