[Sidefx-houdini-list] Evaluating expressions
jordibares at the-mill.com
Thu Sep 27 09:12:29 EDT 2007
Mmm... It is a bit weird in the context of what I am doing...
ch(³../../control_² + ch(³./rx²) + ³scalefactor/scale²)
Does work as I expect, but I don¹t see how could I use the `opdigits`
function in this situation... I guess you are referring to things like
picking the number of the current node (I am using that already for position
of the objects).
In terms of the expression note on your email, I guess you mean expression
function, the one I have to substitute by ch¹
Please correct me if I understood that wrong.
Thanks so much, it is great to have this working.
On 27/9/07 12:58, "brian goodwin" <brian.r.goodwin at gmail.com> wrote:
> 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 " "
> `expression ("string" + number + "string" )`
> ch ("../../geo"+opdigits ("..")+"/control")
> ch ("../../geo"+opdigits ("../.")+"/control")
> a really nice thing to do when dealing with something dynamic is using the
> opdigits expression.
> hope this helps
> 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)
>> 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.
>> But that does not work... What is funny is that this does work
>> Am I missing something? Clearly my vocabulary in Houdini is still very
>> limited.. :-P
>> Thanks in advance.
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list