Backward setting on Elastic?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
strider2000
Posts: 506
Joined: Sat Mar 07, 2015 5:14 pm
Contact:

Backward setting on Elastic?

Post by strider2000 »

Can anyone tell me how to set the backward setting on elastic interMode in a script?
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Backward setting on Elastic?

Post by synthsin75 »

Didn't know, so I did a quick test. Turns out you just have to add 10000 to your bounce count value (interp.val1). Seems 1000 is as high as you can set it, so that would be 11000 if you're setting it backwards.
User avatar
strider2000
Posts: 506
Joined: Sat Mar 07, 2015 5:14 pm
Contact:

Re: Backward setting on Elastic?

Post by strider2000 »

Wow thanks. I had seen the 1000x and so I added "1000" and it didn't work :oops: Doh that was dumb on my part. I thought I was doing something wrong. I should have thought a little more. + 10000 not + 1000 :oops: How embarrassing. As my mom used to say, "If it was a snake it would have bitten me." Thanks for the help. synthsin75. It's much appreciated. :D
User avatar
synthsin75
Posts: 9934
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Backward setting on Elastic?

Post by synthsin75 »

I probably would have made the same mistake if I hadn't tried the max value.

Glad I could help.
Post Reply