syntax for opparm

   5417   3   1
User Avatar
Member
245 posts
Joined: Sept. 2008
Offline
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=5507&highlight=opparm [sidefx.com]

Dear Readers,

I came across the above link but I still can't figure out the proper syntax for opparm'ing channel references. I can opparm the values using HScript, but it's not a channel reference. What's the proper syntax?

Sincerely,
markerline
User Avatar
Member
412 posts
Joined: July 2005
Offline
well, opparm can do a lot of things.. are you trying to list the value of the channel reference at the current point in time, are you trying to list the channel reference expression itself, or are you trying to add a channel reference with opparm..

that might clear things up a bit, but for now, let's say you have geo1 and geo2 and they're both at the obj level. geo1 tx is referencing geo2 tx so the relative expression reads ‘ch(“../geo2/tx”)’.

to generate a script and see how to use chadd and chkey, you could:
opparm -dx geo1 tx

to set the relative reference expression:
opparm geo1 tx ( “ch(\”../geo2/tx\“)” )

to list the current value of the reference:
opparm -d geo1 -v tx

hope that helps,
dave
Dave Quirus
User Avatar
Member
245 posts
Joined: Sept. 2008
Offline
Thanks a mil for that reply. Very detailed and informative. I knew there was something wrong with the syntax (i.e. using a command quote instead of a single quote). Now I know. Great.

Sincerely,
markerline
User Avatar
Member
412 posts
Joined: July 2005
Offline
no prob.. glad it worked out..

cheers,
dave
Dave Quirus
  • Quick Links