Code to open scripts in Maya script editor

30 views
Skip to first unread message

Alexey Vasilyev

unread,
Oct 5, 2018, 10:49:40 PM10/5/18
to Python Programming for Autodesk Maya
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.

Nicolas Combecave

unread,
Oct 6, 2018, 12:05:31 AM10/6/18
to python_in...@googlegroups.com
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.


--
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/59dab81c-47f2-4d81-acc1-834fa4820df6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexey Vasilyev

unread,
Oct 6, 2018, 8:08:29 PM10/6/18
to Python Programming for Autodesk Maya
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.


On Friday, October 5, 2018 at 9:05:31 PM UTC-7, combi wrote:
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.


Le sam. 6 oct. 2018 04:49, Alexey Vasilyev <ole...@gmail.com> a écrit :
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+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages