Blog

Create Asset Directory Tree

As I’ve got some free time on my hands, and I’ve been meaning to get a lot more proficient at coding and not just scripting the odd time I need it, I figured now is as good a time as any to do that. So with a list of small projects in hand, and working my way through a book, this is the first little project I gave myself to do after reading through the first few chapters of Python Crash Course A Hands On Project Based Introduction to Programming.

As you may have noticed from a couple of the other posts I do a little 3D on the side for fun, and I like to do photogrammetry with the old iPhone when I’m out and about. The pipeline for taking a scan through to completion tends to use a few different applications, at least for my workflow, so I wanted something where I could create my project and DCC directories quick and easy instead of making them on the fly as I work. That is what this script does.

The long and short of it is, I run it from my base project directory, and from there I can move up and down my project tree, and create my project where I want. It will then create a Texture, Reference, and ZBrush tree with, Exports and WIP directories within. Maya I just use the Project tools within as there are just way to many nested directories for that, and why reinvent the wheel! The project can be found here if interested.

It error checks if a name already exists, and if you have entered a valid selection. One thing I still have to fix is one digit up from whatever the Exit option is will still exit. But going outside of that range, you’ll get the error message to make a valid selection. I also want to make a couple small asthetic changes with some new lines at some point. The script should be very straight forward as well to just edit and make additions or subtractions to for the directories it creates.

First run of the script in my projects location
First run of the script in my projects location
Moving into a sub directory to create the project
Moving into a sub directory to create the project
Creating the Project
Creating the Project
Created Project Tree
Created Project Tree
Sub Directories
Sub Directories
Basic Error Checking
Basic Error Checking
Tags: , , ,

No Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Zabbix Infrastructure MonitoringFrames to Video Automation