dayelov Posted June 23, 2015 Share Posted June 23, 2015 My approach is to force scale parameter when a bend control will be above 0.03and 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 0but 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 scaleI try to implement it by my experience in scripting is pretty badif(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 endifThanks Quote Link to comment Share on other sites More sharing options...
pbarua Posted June 24, 2015 Share Posted June 24, 2015 It should be written as: if(ch("../bend/ctrl_bend")<=0, 2, 2+ch("../bend/ctrl_bend")) Quote Link to comment Share on other sites More sharing options...
acey195 Posted June 24, 2015 Share Posted June 24, 2015 or you can just write it as: 2+((ch("../bend/ctrl_bend")>0)*ch("../bend/ctrl_bend")) Booleans are 0 or 1 integers so you can just multiply if you want Quote Link to comment Share on other sites More sharing options...
dayelov Posted June 24, 2015 Author Share Posted June 24, 2015 thanks for your help guys 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.