Jump to content

Adjust the scale of a transform (9flt) attribute


kube

Recommended Posts

Hey,

I have a basic curve KineFx Rig and I´m copying spheres onto the curve.

The problem is that I can´t randomize the uniform scale of each sphere because the transform of the rig curve controls the scale of the spheres, so simply adjusting the pscale doesn´t work.

So how do i uniformly randomize the scale of the 3x3 tansform attribute? I tried something with a pointvop but the spehers are not being scaled uniformly.

HIP file is attached.

image.thumb.png.140e258e1cd1987deeb438dff9d40c41.png

 

TRANSFORM_ADJUST_SCALE.hipnc

Edited by kube
Link to comment
Share on other sites

Hey Kube, 

you can make your attribute and then scale the sphere by it. That way, Houdini's naming system won't get in the way. Here are the changes I made to your hip file:

 

1. Attribrandomize2 SOP - I changed the name to myTransform and changed the dimensions to 1, since you said you wanted to scale the sphere uniformly. You can keep it a vector if you want the spheres to be squished.

2. get_attribute Null - This is where the next node will point to

3. transform SOP - put the pivot in the center of the object with the centroid function. Use the "myTransform" attribute to scale the object with this point("../get_attribute", 0, "myTransform", 0)

 

I hope this helps because I don't know how to randomize the scale of the 3x3 transform attribute

TRANSFORM_ADJUST_SCALE_fix.hipnc

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

14 hours ago, RobiDoes3d said:

Hey Kube, 

you can make your attribute and then scale the sphere by it. That way, Houdini's naming system won't get in the way. Here are the changes I made to your hip file:

 

1. Attribrandomize2 SOP - I changed the name to myTransform and changed the dimensions to 1, since you said you wanted to scale the sphere uniformly. You can keep it a vector if you want the spheres to be squished.

2. get_attribute Null - This is where the next node will point to

3. transform SOP - put the pivot in the center of the object with the centroid function. Use the "myTransform" attribute to scale the object with this point("../get_attribute", 0, "myTransform", 0)

 

I hope this helps because I don't know how to randomize the scale of the 3x3 transform attribute

TRANSFORM_ADJUST_SCALE_fix.hipnc 787.27 kB · 0 downloads

Hey Robi, 

that really does the trick, thanks man!!

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...