doc Posted February 6, 2008 Share Posted February 6, 2008 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 Quote Link to comment Share on other sites More sharing options...
doc Posted February 6, 2008 Author Share Posted February 6, 2008 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 Quote Link to comment Share on other sites More sharing options...
crunch Posted February 6, 2008 Share Posted February 6, 2008 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.