Jump to content

Yet Another Scripting Challenge


chrsmith

Recommended Posts

Hey guys,

Ok, so now I'm trying to create SOPS using a tcl script. Using opscript, I can see basically what I want the script to do to build my SOPs. But a parameter in the SOP has a point() function rather than an explicit value. So in my script, I want to do this:

hscript chkey -f 1 -v 0 -m 0 -A 0 -F 'point("../sort1", 0, "P", 0)' building/rangestart

(simplified example)

I get the message: "extra characters after close-quote", and have narrowed it down to the back-ticks, which I've tried to shield with a "\", but that doesn't work. Without them, I can't set the parameter value properly.

So how do I work with the tcl interpreter and the hscript interpreter so that I can set a parameter to an expression? Any ideas?

Thanks guys, you rock!

BTW: Didn't mean to not thank you for help on the last problem. I had asked the same question on the sidefx forum and got an answer there and didn't check back here until just now.

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