Notifications
Clear all

[Closed] FreezeTransform without dialog?

select $Object
macros.run “Animation Tools” “FreezeTransform”

These lines still have dialog

Is there anyway can skip this?

2 Replies

hi,

recreate yourself position_list and rotation list


fn freeze_xform _node = 
(
	p_lst = position_list()
	_node.position.controller = p_lst
	p_lst.available.controller = Position_XYZ ()
	p_lst.setName 1 "Frozen Position"
	p_lst.setName 2 "Zero Pos XYZ"
	p_lst.setActive 2
	
	r_lst = rotation_list()
	_node.rotation.controller = r_lst
	r_lst.available.controller = Euler_XYZ ()
	r_lst.setName 1 "Frozen Rotation"
	r_lst.setName 2 "Zero Euler XYZ"
	r_lst.setActive 2

)

this function don’t do the same, the original controller is intact bellow the XYZ controller
but you can modify for same result

Kermit

Thanks,that’s useful