Notifications
Clear all

[Closed] Question – how to transfer scale animation to visibility animation?

Hi there.

I have a bunch of objects (100 more or less) and I have those objects with scale animation, I would like to transfer the scale animation to their visibility channels, each object scale animation to it’s visibility.

Can someone help me achieve this?

I know how to do this manually but I’m not sure on how to do it via maxscript so I can apply this to lots of objects.

Cheers and thanks in advance!

1 Reply

Solved, use this piece of code at will



objetos = selection as array

for o= 1 to objetos.count do 
(
	targ = objetos[o]

	for i=1 to targ.scale.keys.count do
	(
		targ.visibility = bezier_float()
		addNewKey  targ.visibility.keys targ.scale.keys[i].time
		targ.visibility.keys[i].value = targ.scale.keys[i].value.x
		targ.scale.keys[i].value.x = 1.0
		targ.scale.keys[i].value.y = 1.0
		targ.scale.keys[i].value.z = 1.0
	)

)


Cheers!