Discussion:
[Maya-Python] Code to open scripts in Maya script editor
Alexey Vasilyev
2018-10-06 02:49:40 UTC
Permalink
Hi.
It should be simple, but I just can't find the answer for some reason.
I'm trying to assemble a simple script browser.
What I need is a command, that opens mel of python files in Maya's script
editor.
Thanks in advance.
--
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_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/59dab81c-47f2-4d81-acc1-834fa4820df6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nicolas Combecave
2018-10-06 04:05:17 UTC
Permalink
Hi,
Did you look at the cmdScrollFieldExecuter command?
It looks like it has flags to load content in the editable part of the
script editor.
Post by Alexey Vasilyev
Hi.
It should be simple, but I just can't find the answer for some reason.
I'm trying to assemble a simple script browser.
What I need is a command, that opens mel of python files in Maya's script
editor.
Thanks in advance.
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/59dab81c-47f2-4d81-acc1-834fa4820df6%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/59dab81c-47f2-4d81-acc1-834fa4820df6%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 python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAD65uqnXwoyZejChQWsYmFqPyBKU2b09YZnrEj0k7Cg5s_cakw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Alexey Vasilyev
2018-10-07 00:08:28 UTC
Permalink
Thanks for the help.
Couldn't figure out how to make 'load content' flag work, but it looks like
'insertText' flag actually does the job.
Post by Nicolas Combecave
Hi,
Did you look at the cmdScrollFieldExecuter command?
It looks like it has flags to load content in the editable part of the
script editor.
Post by Alexey Vasilyev
Hi.
It should be simple, but I just can't find the answer for some reason.
I'm trying to assemble a simple script browser.
What I need is a command, that opens mel of python files in Maya's script
editor.
Thanks in advance.
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/59dab81c-47f2-4d81-acc1-834fa4820df6%40googlegroups.com
<https://groups.google.com/d/msgid/python_inside_maya/59dab81c-47f2-4d81-acc1-834fa4820df6%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 python_inside_maya+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/e0fbd25c-56ab-41dc-acc0-f5b0d9c53c60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...