Jump to content
Jimbo55

Offset random primitives in the x axis

Recommended Posts

Hello,

  I'm trying to offset random primitives along the x axis of a object.  I have a setup of how to do it in a For each loop, but whats not as clear is how to do it in vops.  Is there a way to separate the P attribute in VOPS to only effect one axis?

 

 

post-8450-0-39818800-1459948813_thumb.pn

post-8450-0-91893600-1459948820_thumb.pn

Offset_Random_x.hip

Share this post


Link to post
Share on other sites

Simplest way to access a specific axis of a vector is to break it out using a vector to float piped into a float to vector, then using an add on the first connection between them, you'll only affect X.

 

If you want to change it randomly, just add a random and pipe the primnum into it, then into a fit range to control the min/max and onto the above mentioned add. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×