



Yes Roeland, you de man...Rikk The Gaijin wrote:I LOVE YOU ROELAND![]()
![]()
![]()
I can still love you too, Beppe... Now I know you can write Lua scripts, so I might need you in the near future...bepeg4d wrote:wow, i'm safe, thanks roeland
ciao beppe
stratified wrote:I think it's allowed for 2 dudes to get married but 3 seems a bit over the top
Code: Select all
-- Time span to animate:
totaltime = 2
-- Get the selected float texture node
local tex = octane.project.getSelection()[1]
assert(tex:getProperties().type == octane.NT_TEX_FLOAT, "float texture node expected")
-- hook up the animator for going from 0 to 1
tex:setAnimator(octane.A_VALUE, { 0 }, { 0, 1 }, totaltime)
octane.changemanager.update()
setAnimator
are, in order: time stamp list, value list, and the period to repeat the pattern. We can put the start and end time in the list of time stamps, and set the period to some larger number.Code: Select all
-- Get the selected float texture node
local tex = octane.project.getSelection()[1]
assert(tex:getProperties().type == octane.NT_TEX_FLOAT, "float texture node expected")
-- hook up an animator
tex:setAnimator(octane.A_VALUE, { 1, 2 }, { 0, 1 }, 10)
octane.changemanager.update()