pybmd.decorators.require_resolve_version_for_argument#
- pybmd.decorators.require_resolve_version_for_argument(api_name: str, argument_name: str, added_in: str) None[source]#
Raise if an optional argument is used on a Resolve version that predates it.
Some DaVinci Resolve APIs gained optional parameters in a later version than the API itself (e.g.
Graph.ApplyGradeFromDRXgotapplyToAllLayersin 21.1.1). The method stays usable on older versions, so the check happens only on the code path that sends the new argument, and no constraint is registered in the VersionRegistry.Nothing is checked when no Resolve instance has been created yet.
- Parameters:
- Raises:
APIVersionError – If the running Resolve version is older than ‘added_in’
- Return type:
None