Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / Animation / AutoKey on at start up
  RSS 2.0 ATOM  

AutoKey on at start up
Rate this thread
 
57555
 
Permlink of this thread  
avatar
  • joeman70
  • Posted: 01 July 2011 02:25 AM
  • Total Posts: 6
  • Joined: 23 July 2007 07:12 PM

Hey All,

Does anyone know of a way to have Auto Key be on automagically when starting up Max or having it associated with a file? Basically if you have it on in a file, save the file and close, then go back to it, its already switched on?

Thanks in advance!



Replies: 0
avatar
  • amarhys
  • Posted: 04 July 2011 08:08 PM

You can use MaxScript for that.

1) To have autoKey to be on when max is starting :

In Max script startup directory (usually something like C:\Program Files\Autodesk\3ds Max xxxx\Scripts\Startup depending on your installation parameters) create a script (call it animOn.ms for example) with the following code inside :

animButtonState true

Now when Max is starting the autoKey button is on.

2) To have autoKey to be on when loading a specific file :

Load the file a first time, execute the following command (in Maxscript listener or in the MaxScript command field in the top bottom of the interface) :

callbacks.addScript #filePostOpen "animButtonState = true" id:#autoKeyButtonOn persistent:true

and save the file again. Now, each time you are opening the file the autoKey button will be on.

If you don’t want any more the autoKey button to be on for this file, type the following command :

callbacks.removeScripts #filePostOpen id:#autoKeyButtonOn

and save the file again.

Hope it will help.
-amarhys



Max 2011, Win7-Pro 64.
NVidia GeForce GTX 460
Core i7 950 3.06Ghz, 24Gb Ram.

Replies: 0
avatar
  • joeman70
  • Posted: 06 July 2011 01:31 AM

Thanks so much! That worked perfectly!!



Replies: 0