

def postCreate(node, menu):
    with node.scriptNode().context():
        if node['in'].getInput():
            cropFormat = node['in']['format'].getValue()
        else:
            cropFormat = GafferImage.FormatPlug.getDefaultFormat(node.scriptNode().context())
    node['area'].setValue(cropFormat.getDisplayWindow())

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferImageUI/CropUI.py postCreate/original