papsphilip Posted February 8, 2022 Share Posted February 8, 2022 float value = chramp("ramp",fit11(sin(@Time),0,1))*chf("amp"); this is what i would do in vex but i need to use it as a value for a node parameter. Is this possible in hscript? i tried creating a string multiline vex parameter in the parameter interface and write this { float value = chramp("ramp",fit11(sin(@Time),0,1))*chf("amp"); return value; } then reference the result inside the parameter like chf("vex") or chs("vex") ? none of those would work ofcourse but i dont know what else to try Any tips? Quote Link to comment Share on other sites More sharing options...
bunker Posted February 8, 2022 Share Posted February 8, 2022 chramp("ramp",fit01(sin(@Time),0,1),0)*ch("amp") You'll just need to create a "ramp" and "amp" parms (attached example) Notice the extra 0 at the end of the chramp function, that's the first component since you can do vector ramps too how do you find help about hscript? Open a textport and search for ramp: exhelp -k ramp Then get the docs about chramp exhelp chramp ramp_hscript.hipnc Quote Link to comment Share on other sites More sharing options...
papsphilip Posted February 8, 2022 Author Share Posted February 8, 2022 awesome! thank you 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.