

def appendPlugCreationMenuDefinitions(plugParent, menuDefinition, prefix=''):
    menuDefinition.append((prefix + '/Bool'), {
        'command': functools.partial(__addPlug, plugParent, Gaffer.BoolPlug),
    })
    menuDefinition.append((prefix + '/Float'), {
        'command': functools.partial(__addPlug, plugParent, Gaffer.FloatPlug),
    })
    menuDefinition.append((prefix + '/Int'), {
        'command': functools.partial(__addPlug, plugParent, Gaffer.IntPlug),
    })
    menuDefinition.append((prefix + '/NumericDivider'), {
        'divider': True,
    })
    menuDefinition.append((prefix + '/String'), {
        'command': functools.partial(__addPlug, plugParent, Gaffer.StringPlug),
    })
    menuDefinition.append((prefix + '/StringDivider'), {
        'divider': True,
    })
    menuDefinition.append((prefix + '/V2i'), {
        'command': functools.partial(__addPlug, plugParent, Gaffer.V2iPlug),
    })
    menuDefinition.append((prefix + '/V3i'), {
        'command': functools.partial(__addPlug, plugParent, Gaffer.V3iPlug),
    })
    menuDefinition.append((prefix + '/V2f'), {
        'command': functools.partial(__addPlug, plugParent, Gaffer.V2fPlug),
    })
    menuDefinition.append((prefix + '/V3f'), {
        'command': functools.partial(__addPlug, plugParent, Gaffer.V3fPlug),
    })
    menuDefinition.append((prefix + '/VectorDivider'), {
        'divider': True,
    })
    menuDefinition.append((prefix + '/Color3f'), {
        'command': functools.partial(__addPlug, plugParent, Gaffer.Color3fPlug),
    })
    menuDefinition.append((prefix + '/Color4f'), {
        'command': functools.partial(__addPlug, plugParent, Gaffer.Color4fPlug),
    })

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/UserPlugs.py appendPlugCreationMenuDefinitions/original