User avatar
By Mihnea Balta
#360796
In Maya you can right click the parameter in the render settings window and set a key, just like with any other attribute. In Max there's no equivalent functionality, but it can be simulated with a pre-render script. For example, this code animates the water value linearly between 2 and 5 from frame 10 to 20 (with clamping before and after the interval):
Code: Select all
fn UpdateWater = (
	startFrame = 10
	endFrame = 20
	startValue = 2
	endValue = 5
	t = currentTime
	if t < startFrame then t = startFrame
	if t > endFrame then t = endFrame
	t = (t - startFrame) / (endFrame - startFrame)
	renderers.current.skyPhysicalWater = t * (endValue - startValue) + startValue
)

callbacks.addScript #preRenderEval "UpdateWater()" id:#UpdateSkyWater

Hello everybody, We have just released a new vers[…]

Help with swimming pool water

Nothing beats observing the real world or, if that[…]

Sketchup 2026 Released

Considering how long a version for Sketchup 2025 t[…]

Greetings, One of my users with Sketchup 2025 (25[…]