Jimbo55 Posted April 6, 2016 Share Posted April 6, 2016 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? Offset_Random_x.hip Quote Link to comment Share on other sites More sharing options...
djiki Posted April 6, 2016 Share Posted April 6, 2016 Using PrimitiveNode or using AttributeVOP http://wikisend.com/download/429528/Offset_Random_x_modified.hip Quote Link to comment Share on other sites More sharing options...
lukeiamyourfather Posted April 6, 2016 Share Posted April 6, 2016 Have you seen the Displace Along Normal VOP node? http://www.sidefx.com/docs/houdini15.0/nodes/vop/displacenml Quote Link to comment Share on other sites More sharing options...
Farmfield Posted April 6, 2016 Share Posted April 6, 2016 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. Quote Link to comment Share on other sites More sharing options...
Jimbo55 Posted April 7, 2016 Author Share Posted April 7, 2016 Thanks guys. This is extremely helpful. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.