Aaron Auty

aaronauty

About Me

Expertise
CG Supervisor
Location
United Kingdom

Connect

Recent Forum Posts

Solaris - Force cook stage and export - stage is null Dec. 5, 2020, 10:21 a.m.

def getstage(lop):
  hou.setUpdateMode(hou.updateMode.AutoUpdate)
  stage = lop.stage()
  hou.setUpdateMode(hou.updateMode.Manual)
  return stage

Of course. Such a simple solution…. I didn't think it was a lops issue, I guess I have always relied on already compiled node for export, and they must be running similar code.

Brilliants cheers.

Solaris - Force cook stage and export - stage is null Dec. 4, 2020, 7:38 p.m.

Hey Mark.

I missed a crucial piece of information above! My query was when the Houdini session is in Manual mode.

I am checking the hou.updateModeSetting() for manual and then forcing the cook.

Auto and OnMouse are cooking and exporting as expected.

Would you expect a Houdini session in Manual mode to cook a lop node with lopNode.stage() in manual mode? Could it still be errors further up the network?

Aaron.

Solaris - Force cook stage and export - stage is null Dec. 4, 2020, 12:45 p.m.

Is it possible to force a cook of the Solaris stage before using a custom ROP to export the USD using HOM?

I have custom code querying the incoming stage to populate parameters as a pre-flight to the export.

I have tried calling lopnode.cook(force=True), but the stage is null when I query it after forcing the cook.

The Solaris USD Rop node seems to force the cook. Is this not a possible using LOPS and HOM? Do I have any options?

Cheers,
Aaron.