John Mather

johnmather

About Me

Expertise
Developer
Location
Canada
Website

Connect

Recent Forum Posts

MayaHE and substeps July 13, 2021, 9:50 a.m.

Could you please attach the hda in question?

Detect Open/Closed Curves in Maya July 7, 2021, 1:35 p.m.

Unfortunately it looks like this is a HAPI limitation. I have gone ahead and created an RFE so that it can be tracked in our system.

One way to get around this may be to go ahead and create that attribute, but set its value through a Python script. Something like:

from maya import cmds

input_curve_nodes = cmds.ls(type='houdiniInputCurve')

for input_curve_node in input_curve_nodes:
    curve_nodes = cmds.listConnections(input_curve_node + '.inputCurve', d=False)
    
    if curve_nodes:
        curve_node = curve_nodes[0]
        
        form = cmds.getAttr(curve_node + '.form')
        is_closed = (form == 1) or (form == 2)
        
        cmds.setAttr(input_curve_node + '.myParm', is_closed)

That will set the value of the parm for each input curve node based on whether the input curve is closed or not.

What's new in Houdini Engine for Maya June 18, 2021, 11:05 a.m.

New in 18.0.858/18.5.613
  • The Maya plugin will now revert to the unloaded state if a license could not be acquired.