Hazoc Posted June 19, 2010 Share Posted June 19, 2010 I'm trying to get points from VOPSOP's second input. I clearly feed in only 8 points but when I ask importatrrib1 something about the points, it prints out 9 point values. You can also try to feed 50 points to the second input. It still gives only 9 values or what ever is being fed in to the first input. importattrib_bug.hip Quote Link to comment Share on other sites More sharing options...
anim Posted June 19, 2010 Share Posted June 19, 2010 it's not a bug it's how it works VOP SOP is evaluated for every point the of first input so what import attribute is doing is for every point of the first input import any attribute of given input and given ptnum (default is current ptnum of the first input) so no matter how many inputs you have on other inputs it'll be evaluated only 9 times since first input has 9 points Quote Link to comment Share on other sites More sharing options...
Hazoc Posted June 20, 2010 Author Share Posted June 20, 2010 it's not a bug it's how it works Ok sounds like I'll have to code a custom SOP. What I'm basicly after for is comparing two different point sets. For each point in set #1 I want to find shortest distance to a point in set #2. Thanks Quote Link to comment Share on other sites More sharing options...
vi_rus Posted June 20, 2010 Share Posted June 20, 2010 To do this you need FOR or WHILE cycle in VOP. Or easier do this with Point Cloud also in VOP. Quote Link to comment Share on other sites More sharing options...
anim Posted June 20, 2010 Share Posted June 20, 2010 yes, pointclouds are made for this they are definitely faster than for loop just do a little search on pointclouds Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.