Terrain Animation, possible?
#1
Hi,



Testing the terrain, I love it. Is it possible to animate the parameters? Or is it something planed in the future?



I add keys to colors, warp, noise, phases etc... but it doesn't animate, eventhough they are visible in the curve editor.

It only changes when scrolling the values with the mouse.



I've also tried animating with callbacks, but so far no luck:

Code:
fn updateTF = (
    at time currenttime (
        for t in getClassinstances Tyflow do (
            print ("Changing noise phase for " + t as string)
            print ("frame " + currentTime as string)
            t.Peak.Terrain_Warp.noisePhase = currenttime.frame * 0.1 / 2
            t.Peak.Terrain_Color.layerMaskNoiseFXFlowRoughness = currenttime.frame * 0.01
        )
    )
)
callbacks.removeScripts id:#TY1
callbacks.addScript #beginRenderingActualFrame "updateTF()" id:#TY1


It doesn't work with #postRenderFrame callback either


 

[edit]
sorry, my bad, it's possible to animate with Callbacks. The issue was that I had 2 terrain groups with the same name.
Renaming to Peak1 and Peak2 works:

Code:
fn updateTF = (
    at time currenttime (
        for t in getClassinstances Tyflow do (
            print ("Changing noise phase for " + t as string)
            print ("frame " + currentTime as string)
            t.Peak1.Terrain_Warp.noisePhase = currenttime.frame * 0.1 / 2
            t.Peak2.Terrain_Warp.noisePhase = currenttime.frame * 0.1 / 2
            t.Peak1.Terrain_Color.layerMaskNoiseFXFlowRoughness = currenttime.frame * 0.01
        )
    )
)
callbacks.removeScripts id:#TY1
callbacks.addScript #preRenderEval "updateTF()" id:#TY1

Also set the callback in #preRenderEval mode
  Reply


Messages In This Thread
Terrain Animation, possible? - by Jmon - 02-09-2023, 07:17 AM
RE: Terrain Animation, possible? - by tyFlow - 02-09-2023, 05:02 PM
RE: Terrain Animation, possible? - by tyFlow - 02-09-2023, 05:05 PM
RE: Terrain Animation, possible? - by Jmon - 02-10-2023, 01:24 AM

Forum Jump: