Monthly Archives: April 2011

Maya 2012: Tool Settings Editor

Apparently under certain circumstances the Tool Settings Editor disappears.

A simple way to get the Tool Editor Back is going to Window > Settings & Preferences > Tool Settings.

You must click on on it twice so that the Tool Settings Editor gets removed from its docked Position and then you can re dock the Editor to its usual Place.

Games: Aperture Science Investment Opportunities

Auf wöchentlicher Basis bis zu dem Release von Portal 2 werden Werbungen veröffentlicht warum man in Aperture Science investieren sollte.

Update: Alle Investment Opportunities sind jetzt online

Aperture Investment Opportunity #4: “Boots”

Aperture Investment Opportunity #3: “Turrets”

Aperture Investment Opportunity #2: “Bot Trust”

Aperture Investment Opportunity #1: “Panels”

Mel/Python: Set Mental Ray as default Render

Hier ein einfaches Script was überprüft, dass Mental Ray in Maya geladen ist, und dann Mental Ray als default Render Engine setzt.

Update (23.4.11): Added Autoload of Mental Ray

Update (8.7.12): Added Python version


//Loads mentalRay if not yet active

if(!`pluginInfo -query -loaded -name "Mayatomr"`) {

loadPlugin Mayatomr;

pluginInfo -edit -autoload true Mayatomr;

}

//sets Renderer to MentalRay

setAttr 'defaultRenderGlobals.currentRenderer' -type 'string' 'mentalRay';

Python:

import maya.cmds as cmds
def loadMentalRayPlugin():
 name = 'Mayatomr'
 if not cmds.pluginInfo(name, q=True, loaded=True):
  cmds.loadPlugin(name)
  cmds.pluginInfo(name, edit=True, autoload=True)
 cmds.setAttr('defaultRenderGlobals.currentRenderer', 'mentalRay', type='string')
 print ('loadMentalRayPlugin()')
 print ('# Result: mental ray Plugin loaded #')
loadMentalRayPlugin()