[Maya-Python] Re: Converting MEL to Python

2021-11-29 Thread Driftwood
I do it manually. 在2021年11月10日星期三 UTC+8 00:02:56 写道: > Hi all, > I've been only scripting in Python for a while and I'm completely new to > MEL .Currently I'm attempting to convert an Open source MEL script to > Python. How can I start off with the conversion .? Will literal conversion > of th

Re: [Maya-Python] Re: converting mel to python

2014-12-23 Thread Justin Israel
Hi I can't check out too much in depth since I'm on my phone. But you definitely should not be using the return statement in your try except since that will immediately return from your function and not execute any more code. Also, is a try except necessary here? Does an optionvar call raise an ex

[Maya-Python] Re: converting mel to python

2014-12-23 Thread yann19
Hi all, i have sort of found the solution and it is working - http://pastebin.com/raw.php?i=PA61f9kb However, if someone could kindly give me some more pointers for refinement, I am at all ears :) Even so, I have a question in my code. In the try/except statement as suggested by Joe, I imple