John Travolski

JohnTravolski

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Use Python to Drive Multiple Arbitrary Object Parameters April 4, 2020, 2:52 p.m.

N-G
This HIP file shows you one way of doing this!
Thank you, this was incredibly helpful! However, I find it odd that the cube doesn't actually need to be attached to the Python node in order to get this to work. I guess it just seems weird to me that the nodes don't expose individual parameters (as is the case in the C4D Xpresso setup) and the Python code has to use absolute references to the objects.

Use Python to Drive Multiple Arbitrary Object Parameters April 2, 2020, 10:25 p.m.

I'm pretty much brand new to Houdini, and I'm interested in using Python to calculate values that should be used for another parameter. Coming from Cinema 4D, I could do this in Xpresso, and a setup might look something like this:



Where essentially I'm taking in two arbitrary parameters (in this case the Y and Z values of a cube), calculating some function of those two parameters in Python, and then using the result to drive parameters of multiple other objects in the scene. In Houdini, I'm extremely confused how I would achieve the same thing. I thought I would end up using this Python node:

Your text to link here… [i.imgur.com]

But it doesn't seem to work like that. What's the closest equivalent in Houdini of my C4D Xpresso setup? How do I use Python to drive parameters of other objects in Houdini?