Aearon
11-13-2005, 02:26 PM
AearonSetup (+ SoulPix Scripts Package)
Hey guys, after seeing a maya masterclass dvd about organizing a character pipeline using scripted tools (including automatically updating the tools on each workstation and putting them in a menu) i decided to give this a try in max.
This is a first beta of AearonSetup
AearonSetup_0.1.zip (http://aearon.de/files/public/AearonSetup_0.1.zip)
There's still a lot of error checking missing, it's just developed to a point where it worked for us in the situations we use it in ;) plus there is no documentation for the individual scripts yet.
1. Description
System for spreading and organizing scripts in a network environment using 3dsmax.
2. Features
- Updates scripts from a network folder
- No writing macroscript headers, they are automatically generated based on the folder structure and put into the local “UI\macroscripts” folder
- macros are automatically put into a menu within the main menu, they are sorted into submenu’s according to their category, so you have one clean menu with a list of all you macros
- Startup Scripts (Usually containing structs, scripted plugins and the like) are copied to the local startupfolder and are executed.
- Because everything is copied to the local installation, stuff still works if the network is down
3. Installation
The script consists of two files, one is a startup script that needs to be installed locally, it contains a reference to the location of the second file, which does the actual work and should be in a location accessible to all workstations. There is very little going on in the local file, so maintenance is minimal, everything you need to change is in one place.
These are the steps to install the script:
Copy the contents of the “AearonSetup” directory to a location that is accessible to all workstations
Copy “AearonSetup_Startup.ms” to the 3dsmax scripts startup directory (e.g. ‘C:\3dsmax7\scripts\startup) of all workstations
In the startup file, Change the line “Global AearonSetup_Path = "\\\\Server\\Raid\AeraonSetup\\"” to reflect whatever location you chose in step 1
(optional) In “AearonSetup_Main.ms” Change the variable “Prefix” from “SoulPix” to whatever you like
4. Using Scripts with AearonSetup
Now on to the actual scripts to be used with this system, some of those we use at SoulPix are included in the package, so you can take a look at them to see how they are organized as well, here are the basic rules:
Within the network folder, there’s a macros directory. This contains all the macroscripts sorted into subfolders.
These don’t need a macroscript header, it’s generated automatically. All you need instead is this (let’s say we have a script named “Point_Cache_Manager.ms” in the subfolder animation):
toolTip="Point Cache Manager"
buttonText="Point Cache Manager"
--start macro
do script stuff
The macroscript for this file will be generated like this:
- The macro’s internal name will be the same as the filename minus the extension (Point_Cache_Manager)
- The macro’s category will be the same as the subfolder it’s in, plus the prefix you set (so with prefix set to “SoulPix”, the category will be “SoulPix – Animation”)
- The ToolTip and ButtonText will be read from the script file
- The macro’s content will be anything after the “—start macro” line
Also, the macro will automatically be put into “Animation” submenu within the AearonSetup menu
Any “regular” macros you want updated over the network you can put into Macros_3rdParty\ (they will be copied to the local macroscripts folder and executed from there)
any scripts you want executed at startup, you can put into startup\ (they will be put into a local startup subfolder and executed from there)
CAUTION: before copying the macroscripts, all macros starting with “SoulPix_” (or whatever prefix you set) in the local UI\macroscripts folder will be deleted, this is to make sure there is no junk left over should any scripts be removed on the server. All menus containing the prefix will be removed as well so they can be rebuilt using the script found on the server. Bottomline: If you change the prefix, don’t change it to anything that is bound to delete any existing scripts or menus. For example all standard max macros start with “Macro_”, so chosing macro as your prefix is probably not a good idea.
DISCLAIMER: Everything (c) Kai Stavginski 2005. Feel free to use this as you wish, but please drop me a line if you decide to use it, or parts of it, in a production environment
http://aearon.de/files/public/AearonSetup_Graph.gif
Hey guys, after seeing a maya masterclass dvd about organizing a character pipeline using scripted tools (including automatically updating the tools on each workstation and putting them in a menu) i decided to give this a try in max.
This is a first beta of AearonSetup
AearonSetup_0.1.zip (http://aearon.de/files/public/AearonSetup_0.1.zip)
There's still a lot of error checking missing, it's just developed to a point where it worked for us in the situations we use it in ;) plus there is no documentation for the individual scripts yet.
1. Description
System for spreading and organizing scripts in a network environment using 3dsmax.
2. Features
- Updates scripts from a network folder
- No writing macroscript headers, they are automatically generated based on the folder structure and put into the local “UI\macroscripts” folder
- macros are automatically put into a menu within the main menu, they are sorted into submenu’s according to their category, so you have one clean menu with a list of all you macros
- Startup Scripts (Usually containing structs, scripted plugins and the like) are copied to the local startupfolder and are executed.
- Because everything is copied to the local installation, stuff still works if the network is down
3. Installation
The script consists of two files, one is a startup script that needs to be installed locally, it contains a reference to the location of the second file, which does the actual work and should be in a location accessible to all workstations. There is very little going on in the local file, so maintenance is minimal, everything you need to change is in one place.
These are the steps to install the script:
Copy the contents of the “AearonSetup” directory to a location that is accessible to all workstations
Copy “AearonSetup_Startup.ms” to the 3dsmax scripts startup directory (e.g. ‘C:\3dsmax7\scripts\startup) of all workstations
In the startup file, Change the line “Global AearonSetup_Path = "\\\\Server\\Raid\AeraonSetup\\"” to reflect whatever location you chose in step 1
(optional) In “AearonSetup_Main.ms” Change the variable “Prefix” from “SoulPix” to whatever you like
4. Using Scripts with AearonSetup
Now on to the actual scripts to be used with this system, some of those we use at SoulPix are included in the package, so you can take a look at them to see how they are organized as well, here are the basic rules:
Within the network folder, there’s a macros directory. This contains all the macroscripts sorted into subfolders.
These don’t need a macroscript header, it’s generated automatically. All you need instead is this (let’s say we have a script named “Point_Cache_Manager.ms” in the subfolder animation):
toolTip="Point Cache Manager"
buttonText="Point Cache Manager"
--start macro
do script stuff
The macroscript for this file will be generated like this:
- The macro’s internal name will be the same as the filename minus the extension (Point_Cache_Manager)
- The macro’s category will be the same as the subfolder it’s in, plus the prefix you set (so with prefix set to “SoulPix”, the category will be “SoulPix – Animation”)
- The ToolTip and ButtonText will be read from the script file
- The macro’s content will be anything after the “—start macro” line
Also, the macro will automatically be put into “Animation” submenu within the AearonSetup menu
Any “regular” macros you want updated over the network you can put into Macros_3rdParty\ (they will be copied to the local macroscripts folder and executed from there)
any scripts you want executed at startup, you can put into startup\ (they will be put into a local startup subfolder and executed from there)
CAUTION: before copying the macroscripts, all macros starting with “SoulPix_” (or whatever prefix you set) in the local UI\macroscripts folder will be deleted, this is to make sure there is no junk left over should any scripts be removed on the server. All menus containing the prefix will be removed as well so they can be rebuilt using the script found on the server. Bottomline: If you change the prefix, don’t change it to anything that is bound to delete any existing scripts or menus. For example all standard max macros start with “Macro_”, so chosing macro as your prefix is probably not a good idea.
DISCLAIMER: Everything (c) Kai Stavginski 2005. Feel free to use this as you wish, but please drop me a line if you decide to use it, or parts of it, in a production environment
http://aearon.de/files/public/AearonSetup_Graph.gif
