Jump to content

HScript question


Recommended Posts

My approach is to force scale parameter when a bend control will be above 0.03
and it work if I wrote something like this:
 
if(ch("../bend/ctrl_bend")>0.03,   ch("../bend/ctrl_bend"),0)*4
 
but when my bend param is 0 then my scale param is also 0
but I want to keep my initial scale value someting like 2 and when the bend param kicks in it must just add his values to scale

I try to implement it by my experience in scripting is pretty bad

if(ch("../bend/ctrl_bend")<0 then
  return 2
else if(ch("../bend/ctrl_bend")>0.03 then
  ch("../bend/ctrl_bend"),0)*4
else
  return 2
endif


Thanks
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...