Pseudo maya command to create our imageSwatch control.
Args:
- name (str): Name of the control (mandatory)
Kwargs:
- e/edit (bool): set command to 'edit' mode. (default to 'create' mode.)
- img (str): image (name or path) to be loaded. (edit)
- parent (str): maya parent the control should be attached to. (create)
- default (str): a default image to be used. (create)
- nattr (str): a node.attr plug containing the image name/path. (edit)
Returns:
- full path name of the new control on creation, otherwise None.