Showing posts with label Tcl. Show all posts
Showing posts with label Tcl. Show all posts

Thursday, January 20, 2011

Custom slim.ini

With every new version of Slim, Pixar changes the method of organization their standard templates. And adding custom templates to default hierarchy each time became a bit tricky. With RMS 1.0 I was forced to be rejected of my previous methods and started to learn, how to use very smart palette conception.

Tuesday, January 18, 2011

Custom TOR.ini

Instead of editing original TOR.ini (located in $RATTREE/etc), its better to keep custom version of this file in location, defined in RAT_SCRIPT_PATHS environment variable. Here you can override MTOR default values and add your own options and extensions.

Tuesday, August 10, 2010

FlatShader.tcl


FlatShader.tcl








This script flattens Slim shading network to subfolder inside current project but preserves the original shader name. You can modify parameters and nodes in original shading network and perform FlatShader again. Original Slim "Flatten" command fails to override existing shader with changed parameters list.
About how to setup user commands in Slim, see previous post Slim user commands

Slim user commands















For adding a custom user commands to Slim menu, you need to modify your custom slim.ini and TOR.ini. Also you have to write custom Slim template with your cmdui definition.

Tip:
To customize RAT environment, it is a good practice to keep your custom slim.ini and TOR.ini files in the directory defined in system environment variable RAT_SCRIPT_PATHS. You can define space-separated list of directories in this variable for connecting templates and settings from different location inside studio. 
E.g.: SET RAT_SCRIPT_PATHS=d:/slim //server/studio/slim