
- Posts: 3
- Joined: Mon Aug 20, 2018 12:30 am
- Real Name: Neil Hansen
The Resolve developer README outlines:
"The resolve object is the fundamental starting point for scripting via Resolve. As a native object, it can be inspected for further scriptable properties - using table iteration and `getmetatable` in Lua and dir, help etc in Python (among other methods)."
And inside the "Basic Resolve API" section, it says:
"Some commonly used API functions are described below (*). As with the resolve object, each object is inspectable for properties and functions."
The README suggest that the aforementioned "resolve object" is what is returned by dvr_script.scriptapp("Resolve"). For example.... resolve = dvr_script.scriptapp("Resolve").
However, in Python, "dir(resolve)" returns an empty list, which is highly unusual for any Python object, and certainly not the behaviour that the README describes. The same behaviour happens with every other object in the API documentation.
I'd love to get as much as I can out of this API. Blackmagic, are there any more exposed props/methods than what is in the "Basic Resolve API" section? The README suggests that there is more if we inspect these objects, but that doesn't seem to be working. Am I inspecting these incorrectly? Or have these instructions made it into the README a little prematurely, before any additional functionality has been added?
Please advise.
"The resolve object is the fundamental starting point for scripting via Resolve. As a native object, it can be inspected for further scriptable properties - using table iteration and `getmetatable` in Lua and dir, help etc in Python (among other methods)."
And inside the "Basic Resolve API" section, it says:
"Some commonly used API functions are described below (*). As with the resolve object, each object is inspectable for properties and functions."
The README suggest that the aforementioned "resolve object" is what is returned by dvr_script.scriptapp("Resolve"). For example.... resolve = dvr_script.scriptapp("Resolve").
However, in Python, "dir(resolve)" returns an empty list, which is highly unusual for any Python object, and certainly not the behaviour that the README describes. The same behaviour happens with every other object in the API documentation.
I'd love to get as much as I can out of this API. Blackmagic, are there any more exposed props/methods than what is in the "Basic Resolve API" section? The README suggests that there is more if we inspect these objects, but that doesn't seem to be working. Am I inspecting these incorrectly? Or have these instructions made it into the README a little prematurely, before any additional functionality has been added?
Please advise.