| Item | Quantity | Price |
|---|
| Your cart is empty. Check out our collection of 3d models! |
Prices in:
Clear Cart
Home » Forums » 3D Forums » RenderMan renderers and plug-ins » Slim Scripting -- Converting Mel to Python Topic 22 of 1645
| Item | Quantity | Price |
|---|
| Total | $0.00 (USD) | ||
| Your cart is empty. Check out our collection of 3d models! | |||
Prices in:
Clear Cart
| Name | Downloads |
|---|---|
TrueGlass |
846,091 |
detachSeparate.mel |
837,168 |
The Andy Rig |
618,074 |
Sergio |
467,285 |
LWOImpR4-R5_043 |
431,551 |
Tiny |
339,612 |
Smedge .6 |
208,192 |
Ocean Shader |
183,764 |
silver shader |
179,890 |
At The Sea |
163,209 |
| Name | Contributions | Posts |
|---|---|---|
| humster3d | 2220 | 2 |
| squir | 1329 | 0 |
| Pupuhol | 967 | 0 |
| KanhtArt | 857 | 0 |
| GuamWork | 854 | 0 |
| admin | 778 | 21232 |
| rose studio | 655 | 0 |
| stefano tartarotti | 616 | 0 |
| VKModels | 455 | 1 |
| fileadmin | 424 | 0 |
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.
Not sure why all that stuff is red. Can you tell I am a creative crash newbie?