Rob Smith

rdms

About Me

EXPERTISE
CG Supervisor
INDUSTRY
Film/TV

Connect

LOCATION
Canada
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

python viewport through specified camera ... error Oct. 19, 2017, 3:06 p.m.

RESOLVED …

Moved code into another py file and imported that from 456.py (didn't need to use 123.py after all). Also found I needed to add hou.uitriggerUpdate() call. So the code looks like this:

def_cam = hou.node(/obj/defCam)
hou.ui.triggerUpdate()
hou.ui.waitUntil(lambda: len(hou.node("/obj").children()) > 0)
scene_view = toolutils.sceneViewer()
viewport = scene_view.curViewport()
viewport.setCamera(def_cam)

Abort save if beforescenesave.py fails Oct. 12, 2017, 12:05 p.m.

H16.0.736
Somewhat related …

if I'm using the HSITE environment variable and I save beforescenesave.py & afterscenesave.py in $HSITE/houdini16.0/scripts, should they work? I'm not seeing anything happen. To clarify, this is what I have in the afterscenesave.py file:

if kwargs["success"] and not kwargs["autosave"]:
print "after save"

Apprentice grabbing license? Oct. 12, 2017, 10:41 a.m.

H16.0.736

I have Houdini-Master license installed. If I start Houdini in the apprentice mode on an existing hipfile (command line is “houdini -apprentice <hipfile>.hip”), it grabs the license. Is that expected behaviour?