Having access to Ben Deda's Alienbrain python interface was a massive help in this! I suggest anyone trying to drive AlienBrain with python to have a good look through it.
The script is now pretty self sufficient.
- It allows a user to export all their maps from a Photoshop document to specified folders
- It names the exported textures appropriately, based on the document and layer names
- It is smart enough to know when to export a texture with an Alpha channel
- It can check file permissions and attempt to check out files if required
- If the files are checked out by another user, AlienBrain shows a dialogue of who has it checked out
- If it can't obtain file write permissions it closes down and informs the user.
- Currently every time the script runs, it attempts a new connection with Alienbrain. ping Alienbrain somehow so that it doesn't need to keep connecting every time the script is run, and will only attempt to connect if a connection is not present.
- hide the cmd window when the script is executing for as little distraction as possible.
No comments:
Post a Comment
Comments?