VEX SOP shared variable

   2039   0   1
User Avatar
Member
86 posts
Joined: 9月 2008
Offline
hi all..

This may be a FAQ.. not sure. I'm iterating through a point cloud in a VEX SOP and would like to keep a counter variable for each point which contains the number of times that point has been modified.

I've tried doing this by creating a point attribute upstream in the SOP chain via AttribCreate then using a pcimport() to read it followed by an increment and a pcexport() but it states that a “read-only channel has been passed to pcexport()” and the attribute isn't updated (Attached).

I've got several alternatives, but if anyone knows a good approach it would be appreciated.

thanks!

Attachments:
vexatious.zip (18.1 KB)

I installed a skylight in my apartment… the people who live above me are furious!
- Steven Wright
  • Quick Links