Jump to content
Sign in to follow this  
madebygeoff

KineFX translating VOPs to wrangles

Recommended Posts

So I've been trying to convert a few Rig VOPs I've built to VEX. Partly to see if they run faster and partly just to understand what is happening under the hood. But I'm noticing that if you expose the VEX of a certain VOP, there are a bunch of commands that don't show up in a wrangle. For example: blendtransforms(). There's a blend transforms VOP and if you look at the VEX it uses a blendtransforms() command in VEX, but if you add a wrangle there's not such command. Is there some library I need to add or am I missing something?

 


 

Share this post


Link to post
Share on other sites

R.click on the blendtransforms node in vops, vex/vop options -> view vex code.

Scan through until you see an include line, there's this:

#include <kinefx.h>

Drop that into your wrangle, you should have blendtransforms() available. 

If you go find that file on disk (it'll be buried in $HFS somewhere), you can see all the functions defined in that include.

 

 

Share this post


Link to post
Share on other sites

Thank you, Matt! I knew I was missing something stupid like that. So many useful functions buried in there!

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
Sign in to follow this  

×