Jump to content

ForEach Sop Applied to Points


bird

Recommended Posts

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

post-7226-0-83521400-1348682676_thumb.jp

post-7226-0-48917400-1348682677_thumb.jp

post-7226-0-87126600-1348682677_thumb.jp

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...