[Sidefx-houdini-list] Evaluating expressions

brian goodwin brian.r.goodwin at gmail.com
Thu Sep 27 07:58:19 EDT 2007


Hey Jordi

I think what you would need to do is use ` to start the evaluation of an
expression and close it with `
and anywhere where u need to merge strings and numbers, you would use " "
ie
`expression ("string" + number + "string" )`

ch ("../../geo"+opdigits ("..")+"/control")
or
ch ("../../geo"+opdigits ("../.")+"/control")

a really nice thing to do when dealing with something dynamic is using the
opdigits expression.

hope this helps

Brian

On 9/27/07, Jordi Bares <jordibares at the-mill.com> wrote:
>
> Hi, I have been looking on the syntax in many different ways but can't
> figure out how to construct the expression correctly (Houdini 8.1)
>
>     ch(³../../control_2/scalefactor/scale²)
>
>
> Returns the correct number (1.25) but I want to change the 1 with a
> reference to another node channel so I can build this dynamically, my
> thinking is that this should work.
>
>     ch(³../../control_`ch(³./rx²)`/scalefactor/scale²)
>
>
> But that does not work... What is funny is that this does work
>
>     ch(³../../control_`1+1`/scalefactor/scale²)
>
>
>
> Am I missing something? Clearly my vocabulary in Houdini is still very
> limited..  :-P
>
>
> Thanks in advance.
> Jb
>
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



-- 
brian



More information about the Sidefx-houdini-list mailing list