Closed ericdrobinson closed 7 years ago
Confusing documentation removed.
Well, two things about this:
ProjectItem.importSequences
: "Returns 0 if Premiere Pro successfully imports the sequences with IDs specified, from that project." As I pointed out at the end of the explanation, the writeup here suggests that the return value is a number
whereas the Object Model Viewer claims that it is a boolean
. I would also guess that the returned value is more nuanced than the explanation makes it seem, much as was the case with importFiles
.Perhaps a quick pass on the docs for this kind of issue would make sense?
Because the return value didn't provide any useful information.
I can confirm that the Object Model Viewer is wrong about app.project.importSequences(). The return value will be non-zero only if an error is encountered within the function, and it takes two parameters; the path to a .prproj, and an array of Sequence GUIDs. I'll check with the helpful engineer who got the Object Model Viewer working, for PPro.
As previously mentioned, the documentation is being augmented and re-written.
void
functions.) Much of the documentation effort could be thought of as pre-empting questions. ;)I wish you and the team luck on the documentation work!
Much of the documentation effort could be thought of as pre-empting questions. ;)
VERY true—and it's a worthwhile pursuit.
There are several APIs listed in the PProPanel sample project's
api_doc.html
documentation that have misleading explanations. Specifically, the return value explanation is frequently at odds with the actual value returned. An example isProject.ImportFiles
:The documentation suggests that the function should return a falsey
0
in the case that the import was successful. Currently, and this is another bug, the example above always returns aboolean
value oftrue
, both on success and failure (testing was conducted with audio files).This is the case for Premiere Pro 2017.1.