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.