return position of ramp in wrangle

   2847   2   1
User Avatar
Member
13 posts
Joined: May 2017
Offline
Hello.

I'd like to read position of each point (ramp) in wrangle.

I found some function about ramp( chramp(), chrampt(), and chrampf()) but these are not what i want.

I tried to find another way. I made VEX Ramp Variables when I created Ramp but I don't know how to use these.

Thank you for reading.
Have a great day!!

Attachments:
ramp.png (264.8 KB)

User Avatar
Member
8595 posts
Joined: July 2007
Offline
create ramp parm named “ramp” on the wrangle
string rampname = "ramp";
int npt = chi(rampname);
float ramppositions[];
for (int pt=1; pt<=npt;pt++) {
    float ramppos = chf(rampname + itoa(pt) + "pos" );
    append(ramppositions, ramppos);
}
f[]@ramppositions = ramppositions;
Edited by tamte - July 4, 2017 00:04:56
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
13 posts
Joined: May 2017
Offline
Thank you so much!!!! tamte

I completely forgot “itoa”.

it really helpful.

Have a nice day tamte.
  • Quick Links