Notifications
Clear all

[Closed] Track Editor

Does anyone know what this is called in max script?

In the Track Editor, Controller properties…if you go to advanced…u can check and uncheck the lock, so the tangents are free or connected. Is there a way to call that in maxscript?

or is there another place this is located? I find it annoying to continualy have to load up each property rollout when i’m editing a curve. I’m working in Max 7 right now, also.
Thanks.

4 Replies

The property you’re referring to is found on Bezier Controllers and can be set by changing the the key’s axis lock property to false. For example, if you had a box named “Box01” in your scene with a position_xyz controller and you wanted to unlock the first “x” position key you would do it like this:

$Box01.pos.controller.x_position.keys[1].x_locked = false

For more info, look up “Bezier Controller Keys” in the maxscript help

Ok, so is there a way to get the information of the current Key i have selected then?

I see the getKey function…but then i need to know the controller i have selected and the current time i am at…is there a way to go about doing this?

This would also help me in another script i’m working on that deletes the static track channels.

This script will unlock any selected keys with a Bezier Float controller:


bezierArray = #()
join bezierArray (getClassInstances bezier_float)

for i in bezierArray do
(
	for t = 1 to i.keys.count do
	(
		if (isKeySelected i t) == true then
		(
			i.keys[t].x_locked = false
			i.keys[t].y_locked = false
			i.keys[t].z_locked = false
		)
	)
)

Hope it helps –Jon

Awesome, thank you