Jump to content
OdForest

VOPs - output to @P.y.

Recommended Posts

Hi!

I am trying to recreate some VEX code in VOPs, just for understanding.
But how do I output to, for example, @P.y in VOPs?

Thanks. :) 

 

5cc81c14305b0_Screenshot2019-04-30at11_57_01.thumb.png.e88dee4a851b71641728d28c04b81b02.png

Share this post


Link to post
Share on other sites

You could use Set Vector Component VOP to pick a specific component of a vector and set its "fval" to be the output of your ramp. The geometry vop outputs however expect P to be a vector and you will need to give it a vector. I dont think you can export just a specific component directly.

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

what about something like this? Use get vector component and use component 2 which is Y. You can make as many changes to Y as you want then merge it back. Any changes here would only affect the Y position.

gvc.png

Edited by ejr32123
  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

jnZoaBC.gif


You could do a little asset :) Just connect P to Ramp and to the Y component.

Only thing I don't see how to do is to have this setup support signatures for other data types, like vector2, matrix, etc.

PRB_ReplaceComponent.hip

Edited by probiner
  • Like 1

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

×