Add leaves to curves ends

   1261   3   1
User Avatar
Member
1004 posts
Joined: April 2017
Offline
Hi!

I followed an entagma tutorial on growing vines. I would like to know how to use VEX to:

a: find all the biggest ptnum of each curve
b: group them so I can use the copy sop on that group (I never learned how to group an integer list)

Thanks!

-Olivier

Attachments:
bush_how_to_add_leaves.JPG (111.8 KB)

User Avatar
Member
8523 posts
Joined: July 2007
Online
Pointwrangle SOP:
i@group_ends = vertexprimindex(0, @vtxnum) == primvertexcount(0, @primnum)-1;

or Group Expression SOP over Points
vertexprimindex(0, @vtxnum) == primvertexcount(0, @primnum)-1;

and of course you'll have to have proper instancing attributes like orient on your points to get stable transform on leaves
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
1004 posts
Joined: April 2017
Offline
Works nicely!

Now, I'll try to fully comprehend this. I guess the one thing I really don't get is the “==”.

Thanks for your help!!

-Olivier
User Avatar
Member
2036 posts
Joined: Sept. 2015
Offline
==
means equal to, whereas just one

=
is an assignment.
  • Quick Links