Git Product home page Git Product logo

Comments (5)

bbb999 avatar bbb999 commented on June 5, 2024 1

Much of the documentation effort could be thought of as pre-empting questions. ;)

VERY true—and it's a worthwhile pursuit.

from samples.

bbb999 avatar bbb999 commented on June 5, 2024

Confusing documentation removed.

from samples.

ericdrobinson avatar ericdrobinson commented on June 5, 2024

Well, two things about this:

  1. Why simply remove all documentation about the return value instead of provide information about what the return value actually represents?
  2. While I only referenced a single example in my initial ticket writeup, several other APIs suffer from the same issue. Another example would be the adjacent 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?

from samples.

bbb999 avatar bbb999 commented on June 5, 2024
  1. Because the return value didn't provide any useful information.

  2. 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.

from samples.

ericdrobinson avatar ericdrobinson commented on June 5, 2024
  1. Hmm... It sounds like documentation is getting overhauled so I understand hesitance in investing much time into this. In the meantime, for sleuths like myself, the "what does the boolean return value suggested by the OMV mean?" will continue to be a thing. If the chance arises, perhaps something like "The return value does not provide any useful information [and should be ignored]"? (Something like this obviously isn't necessary for void functions.) Much of the documentation effort could be thought of as pre-empting questions. ;)
  2. Cool. It's interesting to hear that the OMV has some of the documentation wrong. It's a bit of a bummer as I used it to help generate a Premiere Pro Type Declarations file (as you're aware). Will have to proceed with caution where Premiere Pro ExtendScript API usage is concerned, I guess.

I wish you and the team luck on the documentation work!

from samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.