PDA

View Full Version : Houdini Expressions



Fess
04-30-2009, 07:15 PM
Greetings,

Referencing "Into to Houdini" DVD>Disk1>Lesson 24

To make a expression to control the "radius" of the meta balls in the xyz:

-writing the same expression in the X>>>Y>>>Z fields does not pull a uniform random size:

rand($PT) / 2
stamp("../copy1", "newHoleSizes", 1)

so could I declare a variable "$radiusGod" and simply say:

$radiusGod is equal to metaball.radiusX
$radiusGod is equal to metaball.radiusY
$radiusGod is equal to metaball.radiusZ

then say:

stamp("../copy1", "$radiusGod", 1)

I'm a Maya user but don't understand how to declare variables in Houdini etc yet.

Is this python in Houdini?

Thanks guys..
-Fess

aiworks
08-15-2009, 11:23 AM
Hi Fess,

I don't know the lesson #24, but if you need a uniform scaling in X, Y and Z, why won't you put the key expression into the X field, and then in the Y and Z fields reference the X field, instead?

Right-click on the X value in the param editor, choose "Copy Parameter", then right-click on the Y value, and do "Paste Copied Relative Reference".

Hope it helps,

Cheers,
Greg