Jump to content

Soho, How Does Py Script Get Invoked?


Recommended Posts

Forgive me for the silly question,

I'm trying to figure out how the new output drivers trigger their associated python scripts.

I assumed that there would be a callback script in the execute button, but that doesn't

seem too be the case. Can anybody point me in the right direction?

many thanks

L

Link to comment
Share on other sites

Just thought of this... does the rop look for the parameter called "soho_program" and

executes whatever script it finds?

if this is the case could any executable be used? obviously you wouldn't be able to

access the soho module if you were using something other than python, but

I'm still a bit curious about whether it can be done or not.

L

Link to comment
Share on other sites

Just thought of this... does the rop look for the parameter called "soho_program" and

executes whatever script it finds?

if this is the case could any executable be used? obviously you wouldn't be able to

access the soho module if you were using something other than python, but

I'm still a bit curious about whether it can be done or not.

L

Yes.

However, you might also want to add a parameter "soho_outputmode" and set its default value to 2 if you're doing this.

SOHO also makes assumptions that stdout from your script will either be sent to a file (soho_diskfile, soho_outputmode==1) or a command (soho_pipecommand, soho_outputmode=0). If you set soho_outputmode to 2, then SOHO doesn't look for those parameters, and you can do whatever you want.

Of course, you could also just add a button to a ROP and have a python script invoked when the button is pushed...

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...