Page 1 of 1

Problem with setAnimator time range

Posted: Sun Apr 06, 2014 9:23 pm
by grimm
I'm having troubles with setAnimator and the time range in Octane 1.52. If I set the time range to something longer than a second it errors out. So if I have this:

Code: Select all

floatNode:setAnimator(octane.A_VALUE, {0, 1.5}, {0.001, 1}, 1)
I get this error:

Code: Select all

[string "-- Animator Builder..."]:137: [string "-- Animator Builder..."]:111: time difference exceeding the period
I'm probably not understanding this correctly, the time table/array has a start and end time in it correct? Or for spans longer than a second you need to add more ranges?

Re: Problem with setAnimator time range

Posted: Mon Apr 07, 2014 1:29 am
by stratified
Hi Jason,

The difference in the time values must be less than the period. You're trying to repeat a pattern over 1.5 seconds on 1 second. If you want the animation to end at 1.5s you can make the time values aperiodic: floatNode:setAnimator(octane.A_VALUE, { 0, 1.5 }, { 0.001, 1 }, 0).

cheers,
Thomas

Re: Problem with setAnimator time range

Posted: Mon Apr 07, 2014 3:14 am
by grimm
Heh, thanks Thomas, me being dumb again. :D That fixed it up, although when I did have it set to 1 sec it didn't repeat the time sequence.

Jason