random UV transform for all primitives.

   124   3   1
User Avatar
Member
2 posts
Joined: Sept. 2019
Offline
Hey all,

New to Houdini. I just need to offset UV's randomly for each of my primitives. Alternatively I'd like to be able to control the translation axis and only move on the U.

The closest I've gotten is using a UV Transform and placing a rand($F) into the x translate. However, this moves all incoming primitives with the same random float.

Is there a simple solution for this?
Thank you.
User Avatar
Member
8 posts
Joined: May 2015
Offline
Use your uv transform inside a for each loop and offset the transform using the iteration metadata from the for loop.
User Avatar
Member
4183 posts
Joined: July 2007
Online
assuming your uv is vertex attrib you can use Vertex Wrangle SOP with:
v@uv.x += rand(@primnum);
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
2 posts
Joined: Sept. 2019
Offline
Thank you everyone! Two great ideas that are getting the results I wanted.
  • Quick Links