Jump to content
siachrek

Copy and paste parameter problem

Recommended Posts

Hi, I'm trying to control the uniform scale of a sphere by deriving that value from the rotate slider of another piece of geo by using a simple copy and paste parameter. The problem here is as the source geo rotates, the target sphere scales up way beyond expected. e.g roate value goes up to 1.6, sphere value also goes up to 1.6. I want the sphere value to go up by 0.06 or 0.6 etc and not strictly following values from its parent param.Is there something I can use to achieve this? I tried ch("../blah") /4 etc but nothing works.

File attached.

copyParam4Odforce.hipnc

Share this post


Link to post
Share on other sites

...I tried ch("../blah") /4 etc but nothing works...

just try again

ch("../Flower_Open_with_rotate/rot")/100

in xform1/scale does what you want

Share this post


Link to post
Share on other sites

just try again

ch("../Flower_Open_with_rotate/rot")/100

in xform1/scale does what you want

Thanks,it worked but i needed finer control over the operation so i added a /100*2. Now the sphere scales from 0 to the correct value.

Because the parent rot starts at 0 the sphere also starts at 0.If I wanted to make the sphere start at a different default value i added /100+0.2 to it and it now works perfect.

Share this post


Link to post
Share on other sites

Thanks,it worked but i needed finer control over the operation so i added a /100*2. Now the sphere scales from 0 to the correct value.

Because the parent rot starts at 0 the sphere also starts at 0.If I wanted to make the sphere start at a different default value i added /100+0.2 to it and it now works perfect.

Also check the fit() expression:

http://www.sidefx.com/docs/houdini11.0/expressions/fit

Dragos

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

×