Comments (5)
Much of the documentation effort could be thought of as pre-empting questions. ;)
VERY true—and it's a worthwhile pursuit.
from samples.
Confusing documentation removed.
from samples.
Well, two things about this:
- Why simply remove all documentation about the return value instead of provide information about what the return value actually represents?
- 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 anumber
whereas the Object Model Viewer claims that it is aboolean
. I would also guess that the returned value is more nuanced than the explanation makes it seem, much as was the case withimportFiles
.
Perhaps a quick pass on the docs for this kind of issue would make sense?
from samples.
-
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.
from samples.
- 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. ;) - 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)
- How to change transition time with ExtendScript on Premiere
- How to get preset's icons/thumbnail images?
- PPro calls to qe.project.newSequence() cause "serious error" crash HOT 3
- link in README.md shows 404 error
- Is there a way to end-to-end test the CEP w/ Typescript?
- CEP_HTML_Test_Extension-10.0 issue with AnimateCC (in manifest)
- XMP Sample Not working in CC2021 v16.2 HOT 5
- time variable in exportCurrentFrameAsPNG is overwritten HOT 2
- end - zeropoint produces a negative number
- Markers.end not working in 2021? HOT 1
- AdobeCEP > Samples-master > PProPanel errors in Premiere Pro 15.x - server side issue?
- RCE vulnerability in RSSReader sample
- Is it possible to change existing build in panels in Premiere Pro? HOT 1
- Why is the HTML panel not displayed in Premiere Pro 15.4 HOT 2
- Using TrackItem.move to move an item through another disappears
- How to use JSON in PPRO/Premiere.jsx? ReferenceError: JSON is undefined HOT 1
- performCutDetectionOnSelection HOT 1
- Modern Typescript workflow. HOT 3
- No panel appearing on Premiere 2021 M2 mac
- ExportAAF example is wrong
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samples.