I'm trying to python script maya->houdini transfer script via alembic.
I've sorted out most of kinks, but there is one hurdle that's giving me a headache for days now ...
I have to use alembicArchive because I need node tree.
In script I create a alembicArchive node, set all params as desired and execute aNode.parm("buildHierarchy").pressButton()
While I was testing this in houdini's python shell pane everything worked great.
Once I left houdini UI and went to python I can't generate subtree. I need that because I need to assign shaders and some other things before I save a file.
I tried to force cook node (aNode.cook(force=true)) but it didn't solve it.
Any ideas how to force this node to rebuild hierarchy?
thanks.
edit:
of course that i meant pressButton() method instead clickButton … lapsus.
Also I found that I can call calback script on this button (item.hdamodule().BuildHierarchyRoot(item)) or do i via hscript's “opparm -c” but that also does not work without UI … so I'm still on square one.
I know that there is a possibility to build alembic hierarchy myself, but I would like to avoid that if possible.
tom.