Alessandro Nardini

AlexNardini1

About Me

業界:
Film/TV

Connect

LOCATION
Canada
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

Python access HDA UI parm onCreate 2024年9月26日17:11

I think it is because hou.pwd() you get nothing since the node it self isn't directly accessible yet,
but you can get it with kwargs:

def TestFunction(kwargs):
    node = kwargs['node']
    ident = 'test'
    node.setParms({'identifier': ident})

Python access HDA UI parm onCreate 2024年9月26日16:38

Hello,
The case you are referring to is: preFirstCreate,
where the tool isn't created yet but you can use it to set some stuff.

The onCreate module should actually work, I am using it with success.

I usually create the python definitions inside the pythonModule and call them from the onCreate module like so:

kwargs["node"].hdaModule().yourScriptName(...)

H20.5 python callback undo [SOLVED] 2024年9月9日17:12

Hello,
does anyone else noticed if starting with H20.5
the undo for a python definition that run in a parameter callback script doesn't undo properly as a single operation any longer ?

All works fine up to H20 over here.


Thank you in advance for any info!

SOLVED:
For anyone bumping into the same issue here is a description:

My python callback script was running from a menu parameter built using a python script.
In H20.5 seem SideFX improved its undo tracking history
and the python code used to build the menu needed some changes in order to make it work again for my case.

Overall undos in H20.5 are more reliable and they are capable to undo menu parameter selections and run their callback script every time an undo is performed, which wasn't happening in prior Houdini versions from all my tests.