-- Texture colour blending animation. This will hook up colour blending -- on the selected texture node. -- -- @description Hooks up a texture with a colour blend animation. -- @author Thomas Loockx -- @version 0.1 -- hooks up an animator with the texture local function setTexAnimator(tex, startColour, endColour, nbFrames) -- animator will interpolate between these colours tex:setAnimator(octane.A_VALUE, { 0 }, { startColour, endColour}, 1) end -- Get the selected RGB texture node local tex = octane.project.getSelection()[1] assert(tex:getProperties().type == octane.NT_TEX_RGB, "RGB texture node expected") -- hook up the animator for colour blending WHITE -> BLACK setTexAnimator(tex, { 1, 1, 1 }, { 0, 0, 0}, 25)