How to edit FurryBall output PATHS?
Page 1 of 1

Author:  Jakub_Strauss [ Tue Nov 30, 2010 4:07 pm ]
Post subject:  How to edit FurryBall output PATHS?

I would like to introduce you one little trick with FB env. output variables and I hope it can make your work with FurryBall a little bit easier.

Every time you write a word starting with $ to output path in outputSettings node, FB try to parse this word like a envVar defined in scripts/furryBallEnvVar.py.
So if you want to define your own envVars it's very simple. I will show you how on two simple examples:

a) I use D:/Data/Maya/Projects/Work/, every time, so, how to convert it to something more simple, like $WORK?

1)First, ideally make some backup of scripts/furryBallEnvVar.py and after open it in any text editor(like Maya script editor).

2)Add your keyword to variables section:
class furryBallEnvVar:
   def __init__(self, initValues):
      self.variables = [

3)Add new method with the same name to furryBallEnvVar class(Only attach this code to the bottom of the script):
   def WORK(self):
      return "D:/Data/Maya/Projects/Work/"

4)Save script, restart Maya and set your output path to something like $WORK/Test, enjoy ;) .

b)How to write the exact time with decimal point to the picture name?

Second example is little bit more complicated, and is better to have some experiences with python scripting in Maya.. It will allow you to substitute four digit time padding(####) with float representation of time :)

First, choose the keyword, for example TIME and do the same like in previous example.
The only different is in point three:
   def TIME(self):
      result = str(cmd.currentTime(q=1))
      return result

How you can see with these environment variables you are able to dynamically set name of your out file to everything what you can imagine :D


Author:  Jakub_Strauss [ Tue Nov 30, 2010 5:17 pm ]
Post subject:  Re: How to edit FurryBall output PATHS?

A little advice for people who are beginners with python:
"      "(tabulator) 

is not the same like:
"      "(few spaces)

Especially in Maya Script Editor this is really big trouble. So better is to check all your edits in some Python editor (Wing IDE, Eclipse), general text editor (Notepad++, PSPad) or simply in some editor which can show you white space characters differently (OpenOffice). Otherwise you may end up with Maya/Python complaining about identation and FurryBall crashing.


Author:  sersia [ Wed Dec 08, 2010 8:58 am ]
Post subject:  Re: How to edit FurryBall output PATHS?

It is really great information. Thanks~

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group