Dashboard_avatar
Dec 11, 2009
Post id: 300806 Report Item

I was wondering if there were any resources out there that cover slim
with python? I am basically trying to convert over some scripts to try
and learn python a bit better. Anyone know of any sites? I can kind of
poke around and get some to convert over properly for the most part I
get lost in the syntax. Here is an example. This is mtor by the way.





mel:

string $mattePalette = `slimcmd slim CreatePalette -new -edit`;

slimcmd $mattePalette SetLabel "Matte";

string $Holdout = `slimcmd $mattePalette CreateInstance -template "dir,Shader"`;

string $ShaderID = `slimcmd $Holdout GetID`;

mtor control attach surface $ShaderID;



Something like this?

python:??????

mattePalette = mc.slimcmd ("slim> CreatePalette -new -edit")

mc.slimcmd ('mattePalette', SetLabel "matteShaderPalette")

matteShader = mc.slimcmd (mattePalette CreateInstance -template "dir,Shader")

ShaderID = mc.slimcmd (matteShader GetID)

mtor control attach surface ShaderID;



Any help would be greatly appreciated.

Dashboard_avatar
Dec 11, 2009
Post id: 300807 Report Item

Not sure why all that stuff is red. Can you tell I am a creative crash newbie?

Dashboard_avatar
Dec 11, 2009
Post id: 300826 Report Item

theres no real equivalence for this in mtor. Too old product. So i dint think you will succeed. Upgrade to renderman studio