FORUMS: list search recent posts

MEL command for toonline

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
John Swanson
MEL command for toonline
on Aug 14, 2009 at 3:55:43 pm

I'm working on a project using the toon shader and toon lines. Its a pretty big project with about 50 scenes, and multiple shots per scene, but almost every scene will be using the same model. I know that you have to connect the camera.translate to the pfxToonShape.cameraPoint. The scrips is:

connectAttr -f "camera1.translate" "pfxToonShape1.cameraPoint";

What I want to do though instead of executing this command 400 times on this project, is create a MEL script that I can put on my shelf. So what I would like to do is change the above scipt to use the active camera's translate rather than having to type in the camera name, and connect it to the cameraPoint of a selected pfxToonShape. So what is the code that I would have to replace "camera1" and "pfxToonShape1" with?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]