nuke.addBeforeUserRemoveGsv
- nuke.addBeforeUserRemoveGsv(function)[source]
Add a callback to be called before the user removes a GSV via the UI or the python API.
- Parameters
function (Callable[[path], bool]) – A callable function which takes a single parameter for the GSV path. If this function returns false, the gsv removal will be aborted.
- Raises
TypeError – If a single callable parameter is not provided.
- Returns
True if the callback was added successfully.
- Return type
bool