Problem with setAnimator time range

Forum for OctaneRender Lua scripting examples, discussion and support.
Post Reply
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

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?
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

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
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

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
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
Post Reply

Return to “Lua Scripting”