python "import mat;mat.do_something()"
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/fe306d38-7042-4206-8656-b105c298d1a8n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/de96d854-40d0-48e2-b077-d91609f0cc38n%40googlegroups.com.
DGFA DAG's GRAPHIC & FOTO ART schrieb am Samstag, 27. August 2022 um 08:15:14 UTC+2:When I do this I get an error "Error line 1.35 Syntax error"When I run his line as standalone python("import mat"; mat.run()"this is working but I need a command for the menuItem that runs Mel commands or python command/script.In Maya documentation there are examples for menu but no one have the flag -c included.
-sourceType(-stp)
flag that allows you to tell the menu to use python for the callback syntax:To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAP_aC5avGYkS0B4DUvy9T_fma0MvYmKFWEN7fkTK3q-D7Hn-yQ%40mail.gmail.com.