Grouping connected primitives

   672   2   1
User Avatar
Member
18 posts
Joined: Sept. 2019
Offline
Hi!

I'd like to randomly move the UV's on a bunch of grass planes. I'm using this:
v@uv.x += rand(@primnum);

However, each “geo element” is made of multiple primitives so this just messes them up. How do I move the “elements” or attached primitives together?

Attachments:
primsByElement.JPG (76.7 KB)

User Avatar
Member
7737 posts
Joined: Sept. 2011
Offline
The connectivity sop can create a class attribute by surface or uv conectivity. Then use ‘i@class’ in place of @primnum in your wrangle.
User Avatar
Member
18 posts
Joined: Sept. 2019
Offline
jsmack
The connectivity sop can create a class attribute by surface or uv conectivity. Then use ‘i@class’ in place of @primnum in your wrangle.

So good! That's it. Thanks so much.
  • Quick Links