Jump to content

Python Source Editor command


zglynn

Recommended Posts

Hey Everyone,

I am experimenting with a tool that will let a user select a group of nodes (same type for now), and it will launch the Python Source Editor and set up some basic variables so the user can quickly write a script for any of the parameters on those selected nodes. But I don't know how to launch the Python Source Editor window from a python command. I know there are commands to create new panes and floating panes, but is there a command in python to launch the Python Source Editor window? Or maybe a command to launch the expression editor?

Thanks,

Zach

Link to comment
Share on other sites

Hey Everyone,

I am experimenting with a tool that will let a user select a group of nodes (same type for now), and it will launch the Python Source Editor and set up some basic variables so the user can quickly write a script for any of the parameters on those selected nodes. But I don't know how to launch the Python Source Editor window from a python command. I know there are commands to create new panes and floating panes, but is there a command in python to launch the Python Source Editor window? Or maybe a command to launch the expression editor?

Thanks,

Zach

If you are under Windows, you can use AutoHotKey for Windows automation like sending certain shortcuts to certain windows.. Check it out pretty useful stuff.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...