magneto Posted January 17, 2012 Share Posted January 17, 2012 I searched the vex reference but I couldn't find a sign function. But I found a sign VOP: http://www.sidefx.com/docs/houdini11.0/nodes/vop/sign Surely vex has a sign function too, right? I was watching a vid where the guy said vops map 95% of vex, so it should be vops that should be lacking, not vex. Any ideas? Thanks Quote Link to comment Share on other sites More sharing options...
michaelw Posted January 17, 2012 Share Posted January 17, 2012 you could find all vex functions available here And you could always check your vex code by right-clicking your VOP SOP and select "View VEX Code..." Quote Link to comment Share on other sites More sharing options...
Macha Posted January 17, 2012 Share Posted January 17, 2012 (edited) Hohohohoho if ($val == 0) $sign = 0; else if ($val > 0) $sign = 1; else $sign = -1; from inside the sign vop Edited January 17, 2012 by Macha 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted January 17, 2012 Author Share Posted January 17, 2012 Thanks guys, I thought there would be one built-in because even hscript has one Quote Link to comment Share on other sites More sharing options...
Mzigaib Posted January 17, 2012 Share Posted January 17, 2012 (edited) I am pretty sure that there is a sign function inside vex because I am using on a vop sop. Edited January 17, 2012 by Mzigaib Quote Link to comment Share on other sites More sharing options...
magneto Posted January 17, 2012 Author Share Posted January 17, 2012 Do you mean you are using the sign vop? Because I know that exists but there is no built-in sign function inside the vex language. I wrote one similar to Macha's but thought it was weird that there is none, especially since it exists in vop. Quote Link to comment Share on other sites More sharing options...
Mzigaib Posted January 18, 2012 Share Posted January 18, 2012 Sorry I though you were talking about VEX VOP not the language. 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.