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

Haha, thanks.

Hello, I'm still waiting for a solution to the pro[…]

Well.....they must have been proven wrong, as it's[…]

Hello dear customers, We have just released a new[…]