February 20, 2010

Open Script

Quick little script for opening files in the current folder, good little trick if you work like I do, and if you hate getting distracted everytime you have to go hunting for the file you want to open.


string $file = "_ANIM.mb";
file -save;
string $scenename = `file -q -sceneName`;
$filename_arr= stringToStringArray($scenename, "/");
stringArrayRemoveAtIndex((size($filename_arr)-1), $filename_arr);
$filename_arr[size($filename_arr)] = $file;
string $filename = stringArrayToString($filename_arr, "/");
file -o -f $filename;


Of course replacing the $file with as many different files as you want. In each shot I'll have an _ANIM, _CAM, _ENV, _LIGHTING, & _RENDER at least, so I can quickly zap between them using duplicates of this script.

February 19, 2010

Shot Workflow

Well, I've been racking up alot of shots with test animation, just to make sure it looks right, and in the process I found myself in the deep and mosquito ridden jungles of disorganisation. As such I've been getting some housework in order - after things came to be in a bit of a tangle, i began untangling with my unoffical favorite part of doing projects: automation.

The first thing is having a file referencing plan in the shot folder. When I had about 10 shots I realised that I was running around between files chasing settings like light attributes and render passes - it had the potential to get very confusing very quickly. So I made things a little more strict by having the animation, effect and environment elements all funnel into the lighting file. I made a rule that this lighting file is the only place where light linking happens, and where the beauty is developed. This lighting file is then referenced into the render file, which by another rule is the only place where render layers/passes and other render options live. After I did this, life became a little simpler, and I realised I could reuse environment, lighting and render files between shots - so all I really had to do was work on the animation.

After I did this I was able to work on new shots more freely, but that led to another problem - reorganising shots. Each shot is stored in a numbered folder, and inserting shots means renumbering others, which is a pain the next time you go to open your comping file. Since I knew I'd want to be constantly reorganising things, I automated my comping workflow as well, so it is the least intrusive to my work.

Of course, to minimise the amount of re-wiring in comping files the solution is in the use of relative paths, and having a different Blender comp file for each shot. The awesome part is I can reuse my comp files if my maya render layers follow a naming convention. Blender stays quiet if a image sequence input doesn't actually find any files, so the same comp file can be used for a variety of comping situations. When I've finished animating a new shot and rendered it, I just throw in a Blender comp file, open it, adjust the duration and hit render. All of the layering is done for me as per my render layer names, and the image sequence nodes can be set to 999 frames long - they just become blank when they run out of frames (most of my shots are only sub 200 frames).

All this means less time stuffing around, and more time animating :D

February 8, 2010

Connect Mesh script

This is just a little melscript to connect the geometry of two selected objects. Its better off as a button for me as I use it quite frequently.


// Make mesh connection between first to second object in selection
string $select[] = `ls -sl -dag -lf`;
$str1 = $select[0] + ".outMesh";
$str2 = $select[1] + ".inMesh";
connectAttr -f $str1 $str2;

February 3, 2010

Useful things in Windows 7

Just wanted to point out some less obvious things I like about Windows 7... not that it's new anymore.


  • Copying Files. Oh yeah, the best thing about Windows 7. Copying a file using Ctrl+C also copies the full filepath to the text clipboard. This is very handy for quickly opening files rather than navigating using a program's open dialogue.

  • Libraries. Right click a folder and add to library. They are basically expandable shortcuts. They are great for when you're working with specific parts of a big project (in my case, my work drive and render drive), and don't enjoy the repetitive action of navigating to and fro every morning. There was a hacky trick where you could do this in XP using folders created in the start menu.

  • Virtual Hard drives. Yeah, hardly groundbreaking. But its good that they actually support them, even if they use their own hdd format. I think this is most useful for me simply because I run bat files to attach them when I want to do some work. This is the bat script incase my computer blows up and I realise I haven't backed up my precious, precious files.



@echo off
echo > c:\script.scr select vdisk file=c:\W-drive.vhd
echo >> c:\script.scr attach vdisk
echo >> c:\script.scr create partition primary
echo >> c:\script.scr assign letter=w
echo >> c:\script.scr exit
diskpart /s c:\script.scr


:D

February 1, 2010

Woman in Shock!



This was a fun image I had in mind while designing the header for my website, during which I wanted to make an image of a damsel in distress, as if taken straight out of an old black and white episode of Doctor Who.

View in Gallery