Writing to attributes in a Snippet VOP Node
245
1
0
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 - April 6, 2026 10:51:43
Attachments:
screenshot.png (87.2 KB)
-
- tamte
- Member

- 9583 posts
- Joined: July 2007
- Offline
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 - April 6, 2026 12:51:15
Tomas Slancik
CG Supervisor
Framestore, NY