You are trying to mix python and MEL syntax together? You can't do that,
unless it's Mel code that uses the python() function to call python code,
and visa versa.
# some .py
def foo():
# py syntax
foo()
// some .mel
global proc foo() {
// Mel syntax
}
On Mon, 1 Jun 2015 7:34 AM Christopher. <[email protected]> wrote:
> Hi, I have a script that uses the def() syntax, the problem is the
> original code is MEL, using the following syntax is not working ?
>
> def acme()
> [MEL code]
> acme()
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/89a8b58e-6287-467f-b3c3-5137356b6a9b%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/89a8b58e-6287-467f-b3c3-5137356b6a9b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2c665ZhZK0cDnKxOg9ani_o8PvNx143z6MpO2nPCSsWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.