Andrew Lowell

andrewlowell

About Me

専門知識
Technical Director
業界:
Film/TV

Connect

LOCATION
Canada

Houdini Engine

Availability

Not Specified

My Badges

Houdini Academy Advisor
Since 1月 2024

Recent Forum Posts

What is best way to send data to a playbar event callback? 2023年1月1日23:34

Thanks for weighing in. It's probably best to initialize the callbacks on created yes. But the time it takes to update this is nil so I'm ok with that.

The issue is that current_node won't be available once the callback is playing. So my current solution is to save the current_node to a hou.session variable, such as hou.session.current_node

What is best way to send data to a playbar event callback? 2023年1月1日21:43

I've got a working solution. It's not exactly what I had in mind but I'm wondering if anyone thinks this is workable.

In my node/hda .. I've got a python sop that now appends the node itself to the hou.session module, as a variable.
From there I'm able to read whatever data I'd like off of the node by accessing that variable in the play function.
For instance:

hou.appendSessionModuleSource('player_node = hou.node("' + hda.path() + '")')

then in the playbar function ...

frame_to_do_something_on = hou.session.player_node.evalParm('frame_to_do_something_on')

I'm still curious if there is a way to send this callback data directly.

What is best way to send data to a playbar event callback? 2022年12月30日19:29

Hi, I'm wrestling with getting an efficient event system based on the playbar. I think it's great that I don't need to make a node time-dependent in order to get events from the starting and stopping of the playbar, awesome!

However, this is pretty limiting if I can't pass it data. Here's my incredibly hacky attempt to do that. I basically want to give this function data from a node that could change it's input or properties. If I can't do that, then I can feed it a string to the node itself and go from there. But, anyone looking at my image should be horrified with the hackiness of the hack.

Any suggestions?