Problem with setAnimator time range

Forums: Problem with setAnimator time range
Forum for OctaneRender Lua scripting examples, discussion and support.

Problem with setAnimator time range

Postby grimm » Sun Apr 06, 2014 9:23 pm

grimm Sun Apr 06, 2014 9:23 pm
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 20 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 460.56
User avatar
grimm
Licensed Customer
Licensed Customer
 
Posts: 1321
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Re: Problem with setAnimator time range

Postby stratified » Mon Apr 07, 2014 1:29 am

stratified Mon Apr 07, 2014 1:29 am
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
stratified
OctaneRender Team
OctaneRender Team
 
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Re: Problem with setAnimator time range

Postby grimm » Mon Apr 07, 2014 3:14 am

grimm Mon Apr 07, 2014 3:14 am
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 20 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 460.56
User avatar
grimm
Licensed Customer
Licensed Customer
 
Posts: 1321
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 15 guests

Fri Apr 19, 2024 10:01 pm [ UTC ]