Alessandro Nardini
AlexNardini1
About Me
業界:
Film/TV
Houdini Engine
Availability
Not Specified
Recent Forum Posts
Error matching a definition in H20.5.x 2024年10月29日20:22
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 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:
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:
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(...)