referencing other points

   3653   3   1
User Avatar
Member
36 posts
Joined: 8月 2006
Offline
How would you go about getting a point to reference an attribute of another point? I am starting off with a 30x30 grid, with color on only one point. I am trying to have the points that surround it have a chance of receiving the same color value. The following frame the points surrounding those points will have the same probability of receiving the color. The best way that I thought to achieve this was to do a test in the point SOP that added the color, and have each point test the points adjacent to it for color.
Thanks yall
Karl
User Avatar
Member
2199 posts
Joined: 7月 2005
Online
Sounds like a job for the foreach sop. You won't be able to do that all in one point sop as its a recursive operation.

One other way would be to use a point cloud and write a vex sop to do it.

Or probably now you can do this in a python sop.
The trick is finding just the right hammer for every screw
User Avatar
Member
36 posts
Joined: 8月 2006
Offline
i have been tryin to get the For Each SOP to work for me, but I think that I am trying to implement it wrong. I cant find a good example file on the For Each SOP.
User Avatar
Member
398 posts
Joined: 7月 2005
Offline
I can be wrong but
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=10663 [sidefx.com]
So using of point clouds sounds as a reasonable way.
f = conserve . diffuse . advect . add

fx td @ the mill
  • Quick Links