

def __addPlug(plugParent, plugType):
    with Gaffer.UndoContext(plugParent.ancestor(Gaffer.ScriptNode)):
        plug = plugType(flags=(Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic))
        Gaffer.Metadata.registerPlugValue(plug, 'nodule:type', '')
        plugType.addChild(plug)

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/UserPlugs.py __addPlug/VarMisuse@67/99 `plugParent`->`plugType`