Re: calling mel script from python

22 views
Skip to first unread message
Message has been deleted

AK Eric

unread,
Jun 25, 2019, 1:40:29 PM6/25/19
to Python Programming for Autodesk Maya
In general it's bad form to require a source of a mel script to trigger execution.  If you make a global mel proc in the script with the same name as the script, you can just do:
mel.eval("test");
And that will execute it.
Message has been deleted
Message has been deleted

Marcus Ottosson

unread,
Jun 26, 2019, 2:36:56 PM6/26/19
to python_in...@googlegroups.com
> can you edit the script and send it to me

This gave me a good chuckle. :)

On Wed, 26 Jun 2019 at 15:27, Vishal Kadam <vishalk...@gmail.com> wrote:
mel script link - https://www.highend3d.com/maya/script/simple-pipe-for-maya

for this script I want to create a GUI button in python script, How do I do that using source as  mel.eval('source "/usr/people/vishal/SimplePipe.mel"')

can you edit the script and send it to me

On Wednesday, June 26, 2019 at 4:10:14 PM UTC+5:30, Vishal Kadam wrote:
I'm very new to this scripting can you help me what do I add in the script, and how to I use global mel proc

--
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/bf7b4f0c-79d6-4e2a-b895-ef5ad075b58d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages