Current Showreel

Thursday 8 December 2016

Mayabatch and Python - Introduction & Part 1

Introduction 

I wasn't able to find much information about running scripts within mayabatch when I first started looking into how to do this myself. There's loads of info out there about running renders via mayabatch but not much about how to do other things with it (ie run scripts on a file rather than just rendering a file).

I hope to lay out some basic tutorials over the next few month on how to do this, as much for myself as anything else. For anyone else reading this please note the following:

This will only be relevant to Windows and possibly with specific reference to Windows 10. Sorry to Mac and Linux users out there but I've not got experience of using those systems so I have nothing to offer about how to do this on those OS.

These tutorials will also assume at least a basic understanding of Python. If you're not familiar with Python, then I would recommend checking out Jeremy Ernst's Vimeo channel, specifically his Building Maya Interfaces with Python series which starts with this video: https://vimeo.com/42848594

First I should start with how to actually run mayabatch.exe via the command line in windows, a very basic step but one that seems to be overlooked by others when teaching about this kind of thing.

Part 1 - Running mayabatch for the first time

There are two basic ways to get mayabatch up and running.
  1. Run cmd directly in the Maya bin
  2. Define where the mayabatch.exe actually is on the system before you try and run it.

Option #1 - Run cmd in the Maya bin

  • Navigate to your maya bin folder. This is the program files of your windows machine. Most likely it will look like this:
C:\Program Files\Autodesk\Maya2015\bin 
(obviously change the maya version to the one you're using eg 'Maya2016')
  • Type cmd into the address bar of the explorer once you're here:

This is where you want to type 'cmd'

  • This will open a cmd terminal looking like this:

This means that the cmd terminal will understand what and where mayabatch is. Note that this is different from running cmd from anywhere else in Windows. (ie from the start menu, the Run command, or the same process but in another folder)
  • type in mayabatch.exe and hit enter, this will open a version of maya without a UI. 

It'll take a second or two to start but and once it's loaded it it'll close itself down again given that it's got nothing to do. You'll basically see something like this:




I'm not really sure what the error about Bifrost is about, something for me to look into another time perhaps.

Option #2 - Define where mayabatch is on the system


  • Open a normal command prompt terminal. Type 'cmd' into the start menu and hit enter.

  • This will bring up a command terminal much like the other but notice that the folder path is different. It should default to the current user's path.

  • This time we need to specify where the mayabatch.exe actually is for it to run. Type in the file path for mayabatch (or copy and paste it). This will most likely be: 
C:\Program Files\Autodesk\Maya2015\bin\mayabatch.exe
(again change the version number to the version of maya you have installed)

Here's the error you get when you try to run mayabatch with a space in program files

  •  The thing is this will cause errors in the command prompt because it can't resolve the space in 'Program Files' part of the path. The way around this is to change the path we're using slightly. Changing 'Program Files' to 'Progra~1' allows command prompt to read the path properly.
C:\Progra~1\Autodesk\Maya2015\bin\mayabatch.exe

Here we see mayabatch running. Note that where you put the '~1' is important as if it's in the wrong place you'll get an error.


That's the end of this part of the tutorial, next time I'll go into more details about how to open files in maya batch followed by how to run scripts on opend files.







Monday 12 September 2016

Lighting Challenges: Fruit Project

I picked up this scene from the 3d Lighting Challenges website http://www.3drender.com/challenges/ to have a go at.

Some of the models aren't great so I did have to do a little bit of supplementary modelling/sculpting to get a more natural look.

I started out really trying to push for interesting angles and lighting using just a grey base shader. Here's contact sheet of all of them.


After I'd played with lighting I dialled in to one look that I really like and started working more on textures and materials. I did actually end up tweaking the lighting slightly but the overall look is similar.

Software used:
Maya
VRay
Nuke
Photoshop


Thursday 18 August 2016

Volkswagen Tiguan R-line

This is a personal project to learn more about Vray in Maya.

Lighting and Materials by me. The model is one I used from work that was generated from CAD data supplied by Volkswagen.

Back plate and HDR were from the Underground Carpark set from hdr-sets.com

Software Used:
Maya
Vray
Nuke
Photoshop

 Realistic Version


Stylised Version

Thursday 28 July 2016

"Thalassophobia" - A Vray and Maya Project


I actually started this project years ago with mental ray. But I never got around to finishing it off. I'd consider this a work in progress as it's far from perfect, but for now this is where I'm at.

All modelling, textures, lighting, materials and final comp by me.

Background image available here. https://i.imgur.com/guMCFeF.jpg

Software:
Maya
Vray
Nuke
Photoshop

Tuesday 19 January 2016

Fantasy Table Still Life



Another modelling, rendering and lighting piece that I did to learn more about Vray. The context behind the image is unapologetically nerdy and needs a little explanation! The short version is simply that in the D&D game that I play in our party is called "The Firestarters". This badge is supposed to be our crest representing the four characters in the party. We have a Barbarian (the sword), a Bard (the lute), a Ranger (the bow and arrow), and an Avenger (the olive wreath), and the flame in the middle represents our group as a whole.

Software Used:
Maya
Vray
Photoshop
Nuke


Below is the mock up of the crest that I did in preparation for this project.


Saturday 9 January 2016

Christmas in Scotland '15

Waves at Johnshaven

Road over to the Lect

Miniature Donkey

Tamara at Loch Morlich

Scottish Hills

Tamara

It's windy!

Very windy!!


Rob

Simon

Mum

Family