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:
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:
Also set the callback in #preRenderEval mode
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