Vex: how to use UVs to affect anything?

   2355   2   1
User Avatar
Member
1004 posts
Joined: April 2017
Offline
Hi!

I'm exploring possibilities and I would like to know if there's a ways to get the UV values to change @P or @Cd, etc.

Thanks!

-Olivier
User Avatar
Member
1736 posts
Joined: May 2006
Offline
Try it:

@Cd = @uv;

Note that if you have your @uv's stored as vertex attributes, you either want to do your colour tests in a vertex wrangle (so @Cd is stored at the vertex level), or move your @uvs to point attributes, so that way you can also modify @P.

More info here:

http://www.tokeru.com/cgwiki/index.php?title=Points_and_Verts_and_Prims [www.tokeru.com]
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
1004 posts
Joined: April 2017
Offline
ok!

That was a very interesting read. (the bottom part gave me nausea…)

So an attribute promote to get the uv info from vertex onto points does the trick!

Thanks for the enlightenment!

-Olivier
  • Quick Links