Jump to content

Convert vops to wrangle (different result)


FR3D

Recommended Posts

i am trying to reproduce a ramp sliding effect from vop to wrangle.

I used the vop version for very long without issue,i add a parameter before the ramp to move its position(usually used to slide the ramp across UVs)

For some reason it seems i am not reproducing the wrangle the right way.

you can see the vop in the pic and my attempt at reproducing it in wrangle.

i posted the file.

 

script:

float ptnum = (float)@ptnum;
float numpt = (float)@numpt;

float anim = chf("page_animation"); //slider from -1 to 1
float div = ptnum/numpt;
float bend_anim = div+anim;

float ramp_bend = chramp("ramp_bend",bend_anim);

@bend = fit(ramp_bend,0,1,chf("bend_left"),chf("bend_right"));//slider from -90 to 90

voptowrangle.jpg

book_odforce.hip

Edited by FR3D
  • Thanks 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...