random UV transform for all primitives.

   2944   3   1
User Avatar
Member
18 posts
Joined: 9月 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
13 posts
Joined: 5月 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
8518 posts
Joined: 7月 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
18 posts
Joined: 9月 2019
Offline
Thank you everyone! Two great ideas that are getting the results I wanted.
  • Quick Links