Tom Vujnović

tomVujnovic

About Me

EXPERTISE
CG Supervisor
INDUSTRY
Film/TV

Connect

LOCATION
Croatia
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

node.parm("buildHierarchy".clickButton() does not work without UI Dec. 31, 2018, 11:15 a.m.

… at least for me.
I know that some parts of houdini python implementation require UI (like timeslider) but is there a way to execute .clickButton() method without UI?
I'm writing pipeline script that transfers assets from maya to houdini. I'm exporting everything from maya in alembic files and importing them into houdini.
Since I need full hierarchy in houdini I have to use alembicArchive, not alembic node.

Is there a way to force parm().clickButton() to work without UI or is there a workaround for this?

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.

SOLVED!
Problem was in path to .abc file (node.parm(“fileName”))
I was expecting that houdini will throw an error on invalid path. Instead, it just kept working …

import hou from maya python shell Nov. 23, 2018, 12:35 p.m.

I've tried this (and many other ideas) but without success
Is anybody succeed running importing hou in Maya python (or PyMel, maya.cmds or maya.api.OpenMaya in Houdini python)?
I can't find any solution on net.

closest I to solution is to set PyCharm to search for modules inside maya devkit (while in Houdini python interpreter and completition works) but I'm getting folowing results:
" …
Traceback (most recent call last):
File “UposterToolsBase/mayaScripts/removeNamespace.py”, line 1, in <module>
import maya.api.OpenMaya as om
File “C:\Program Files\Autodesk\Maya2018\Python\Lib\site-packages\maya\api\OpenMaya.py”, line 25, in <module>
import maya.api._OpenMaya_py2
ImportError: DLL load failed: The specified module could not be found. …"


I don't get how it can find “first” instance (OpenMaya.py) but then it can't find “maya.api._OpenMaya_py2”.
I have merged Maya devkit paths and houdini paths in PyCharm for both maya python and houdini python.
Maya imports works in maya python, but import hou does not.

I'm (unfortunately) on Win10 and need this to work on Win10 since that is what we use at company.
Houdini imports works in houdini interpreter but maya imports does not.

Pushing particles around with fluid tank velocities June 13, 2017, 2:37 p.m.

Just found it about an hour ago!
Funny how things work, I follow his channel regularly and he posted that yesterday. Still didn't have time watch it.