Svetlin Karlov
timkarlo
About Me
Connect
LOCATION
Not Specified
ウェブサイト
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Python Script node hou.hipFile.merge not working 2023年11月28日10:09
Hi there
I made test and looks like
the procedure: hou.hipFile.merge
not working in Python Script node
in python Script node:
import hou
import os
network = hou.node("/stage/").
asset_file_name = "path to file"
hou.hipFile.merge(asset_file_name, node_pattern="*", overwrite_on_conflict=True, ignore_load_warnings=False)
Error
Python error: Traceback (most recent call last):
File "<stdin>", line 6, in <module>
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.640/houdini/python3.9libs\houpythonportion\ui.py", line 1119, in decorator
return func(*args, **kwargs)
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.640/houdini/python3.9libs\hou.py", line 52202, in merge
return _hou.hipFile_merge(self, *args, **kwargs)
hou.OperationFailed: The attempted operation failed.
Node cook is in progress: /stage/pythonscript1
What I am doing wrong?
I made test and looks like
the procedure: hou.hipFile.merge
not working in Python Script node
in python Script node:
import hou
import os
network = hou.node("/stage/").
asset_file_name = "path to file"
hou.hipFile.merge(asset_file_name, node_pattern="*", overwrite_on_conflict=True, ignore_load_warnings=False)
Error
Python error: Traceback (most recent call last):
File "<stdin>", line 6, in <module>
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.640/houdini/python3.9libs\houpythonportion\ui.py", line 1119, in decorator
return func(*args, **kwargs)
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.640/houdini/python3.9libs\hou.py", line 52202, in merge
return _hou.hipFile_merge(self, *args, **kwargs)
hou.OperationFailed: The attempted operation failed.
Node cook is in progress: /stage/pythonscript1
What I am doing wrong?
merge file from python script node 2023年11月28日8:54
Hi there
I d like to merge a file from python script node
the code looks like that
in empty scene
in stage/
create Python script node
asset_file_name = "D:/file.hip"
hou.hipFile.merge(asset_file_name, node_pattern="*", overwrite_on_conflict=False, ignore_load_warnings=False)
mergedNode = hou.node("/stage/file_Node_USD")
mergedNode.parm("File").set("D:/File_USD.usd" )
if I run the script from shelf it works
but if I put the script inside a Python _script Node in the /stage
comes an error:
Error
Python error: Traceback (most recent call last):
File "<stdin>", line 7, in <module>
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.640/houdini/python3.9libs\houpythonportion\ui.py", line 1119, in decorator
return func(*args, **kwargs)
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.640/houdini/python3.9libs\hou.py", line 52202, in merge
return _hou.hipFile_merge(self, *args, **kwargs)
hou.OperationFailed: The attempted operation failed.
Node cook is in progress: /stage/pythonscript1
What I am doing wrong?
I d like to merge a file from python script node
the code looks like that
in empty scene
in stage/
create Python script node
asset_file_name = "D:/file.hip"
hou.hipFile.merge(asset_file_name, node_pattern="*", overwrite_on_conflict=False, ignore_load_warnings=False)
mergedNode = hou.node("/stage/file_Node_USD")
mergedNode.parm("File").set("D:/File_USD.usd" )
if I run the script from shelf it works
but if I put the script inside a Python _script Node in the /stage
comes an error:
Error
Python error: Traceback (most recent call last):
File "<stdin>", line 7, in <module>
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.640/houdini/python3.9libs\houpythonportion\ui.py", line 1119, in decorator
return func(*args, **kwargs)
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.640/houdini/python3.9libs\hou.py", line 52202, in merge
return _hou.hipFile_merge(self, *args, **kwargs)
hou.OperationFailed: The attempted operation failed.
Node cook is in progress: /stage/pythonscript1
What I am doing wrong?