bird Posted September 26, 2012 Share Posted September 26, 2012 Hi guys, When I check "apply to points" parm on in the ForEach Sop with "Each Attribute Value" chosen, I see some points swap their point numbers to each other. Of course this doesn't happen if I write point attribute value as "$PT" in the AttributeCreate Sop. But even when I change the attribute value to "rand($PT*324)", the order of point numbers don't seem to follow the attribute values. Just wonder why the swapping occurs when I use the "apply to points" parameter. Thanks in advance, hope see some threads Sewang Quote Link to comment Share on other sites More sharing options...
wick3dParticle Posted September 27, 2012 Share Posted September 27, 2012 Hey Sewang, I believe the reason your point numbers are swapping is due to the tolerance value in your for each node. The random value you generate returns an attribute value that varies between 0-1. If some of those values don't satisfy the threshold, then they aren't considered unique values. Try lowering the threshold to '0'. Best, ~Ilan 1 Quote Link to comment Share on other sites More sharing options...
bird Posted September 29, 2012 Author Share Posted September 29, 2012 Thanks so much Ilan, I tried that out and the swapping didn't happen anymore. Still, I see the swapping with a specific attribute value, for example "rand($PT*23.5)". But thanks again. Your suggestion can be the perfect solution. 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.