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