Alessandro Nardini
AlexNardini1
About Me
INDUSTRY
Film/TV
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Error matching a definition in H20.5.x Oct. 29, 2024, 8:22 p.m.
Hello,
does anyone knows what can cause this error when matching a definition in H20.5.x ?
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.370/houdini/python3.11libs\hou.py", line 17316, in matchCurrentDefinition
return _hou.OpNode_matchCurrentDefinition(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hou.OperationFailed: The attempted operation failed.
Error: Syntax error in file: 'channel' expected.
Not all my OTLs suffer of this problem but they all work fine up to H20.
In short, I can not edit and update some OTL under H20.5.x anymore.
Thank you in advance for any help!
does anyone knows what can cause this error when matching a definition in H20.5.x ?
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.370/houdini/python3.11libs\hou.py", line 17316, in matchCurrentDefinition
return _hou.OpNode_matchCurrentDefinition(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hou.OperationFailed: The attempted operation failed.
Error: Syntax error in file: 'channel' expected.
Not all my OTLs suffer of this problem but they all work fine up to H20.
In short, I can not edit and update some OTL under H20.5.x anymore.
Thank you in advance for any help!
Python access HDA UI parm onCreate Sept. 26, 2024, 5:11 p.m.
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:
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 Sept. 26, 2024, 4:38 p.m.
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:
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(...)