refer to GUI parameter in HDA

   4974   8   3
User Avatar
Member
1390 posts
Joined: July 2005
Offline
I have somehow a misconception in this topic so please guide me a bit:

I'd like to refer in Callback window to another parameter in Hda which doesn't have its parent in a hip as such but was created only in hda.

I read and read and must missed something. All these embedded scripts, params, hscript etc etc etc…..

thanks for you reply!

sy.
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
not really sure I'm getting what you're after….

what, specifically, are you trying to do?
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
2199 posts
Joined: July 2005
Online
Do you mean you what to use the value from a channel in the same hda as the callback script?

Just refer to it like any other channel reference

ch(“foo”)

Because you are in the same node you don't need a path just the channel name
The trick is finding just the right hammer for every screw
User Avatar
Member
1390 posts
Joined: July 2005
Offline
sorry, I was in hurry….

let's expain a bit:

I created in HDA toggle switch and I'd like to get/set its value with another parameter, button lets say. These parameters weren't created via drag and drop, They have no links to HDA internals. Is that makes sense now?

thanks for interest!
sy.
User Avatar
Member
2199 posts
Joined: July 2005
Online
get its value using ch(“togglename”) and set using opparm togglename ( 0 or 1)
The trick is finding just the right hammer for every screw
User Avatar
Member
1390 posts
Joined: July 2005
Offline
hmm… I don't know why but opparm toggle 1 doesn't work.
“message ch(”toggle“)” works as expected… :roll:
User Avatar
Member
2199 posts
Joined: July 2005
Online
Are you doing

opparm toggle 1

or

opparm toggle ( 1 )

you need the brackets
The trick is finding just the right hammer for every screw
User Avatar
Member
321 posts
Joined: July 2005
Offline
Simon
Are you doing

opparm toggle 1

or

opparm toggle ( 1 )

you need the brackets

Let's say you have toggleA and toggleB, and you want to implement a radio button system. In the callback for toggleA you'd put:

opparm . toggleB (`1-ch(“toggleA”)`)

and then into the other you'd put:

opparm . toggleA (`1-ch(“toggleB”)`)

So if the user turns on toggleA, it will turn off toggleB and vice versa.

– Antoine
Antoine Durr
Floq FX
antoine@floqfx.com
_________________
User Avatar
Member
1390 posts
Joined: July 2005
Offline
thank you gentelmen, I'll try!

sy.
  • Quick Links