wayno

wayno

About Me

Connect

LOCATION
Not Specified
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

override parameter switch 2008年9月23日17:47

ah, thanks for the example…

in the end i used the good old opparm command:

basically on the checkbox i call the following script, which sets the “ch()” expression to reference the value of manual param, or deletes it depending on the value of the checkbox.. (see below)

I'm not happy about the full paths in the script ,but i assume i could replace them with “.” or “opdef:.” ?


CALLBACK SCRIPT ON CHECKBOX (param called “chk”)
——————-
if (`ch(“/obj/subnet1/chk”)`==1) then
opparm /obj/subnet1 todisp “ch(\”manual\“)”
else
opparm /obj/subnet1/ -r todisp `ch(“manual”)`
endif

——————

note: i could not get the script to execute on your example , was yours not a true digital asset but a modification of a geo object? it seemed to have problems finding/running the script, so i just replicated the params on a subnet/DA and it worked…..

thanks again

override parameter switch 2008年9月22日8:12

Hi,
I have parameter on an otl that i want to have the option of :

a)displaying the value of another nodes parameter (i know i can use the ch(expression for that)

or

b) have the user set the value in the parameter

I've put an checkboxparameter alongside it (effectivly an override switch) but i can't figure out a way of using the checkbox to switch between the two options, I was hoping that i could use some sort of hscript to say:

if(checked , let me set manually set the parameter, else use the ch(“reference”)

any help appreciated, or suggestions of a better way to approach the problem

bgeo format definition 2008年9月18日8:05

have you seen this:

http://houdinistuff.com/ [houdinistuff.com]

its new, and seems to do the job…