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.ApplyGradeFromDRX got applyToAllLayers in 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:
  • api_name (str) – Wrapper identifier, e.g. “Graph.apply_grade_from_drx”

  • argument_name (str) – The optional argument that needs the newer version

  • added_in (str) – Version string the argument was added in (e.g. “21.1.1”)

Raises:

APIVersionError – If the running Resolve version is older than ‘added_in’

Return type:

None