Skip to content

Commit

Permalink
use consistent table styling for parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rendertom committed Aug 22, 2020
1 parent 3552068 commit da0fb55
Show file tree
Hide file tree
Showing 15 changed files with 713 additions and 399 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,16 @@ To refer to the above anchor, you can use either:
- :ref:`The Mystical, Magical Extendscript Toolkit <the-extendscript-toolkit>` to use the supplied title
```

These will both search project-wide for the link. Any duplicates or malformed links will be reported upon build in your console window.
These will both search project-wide for the link. Any duplicates or malformed links will be reported upon build in your console window.

### Parameters ###

For consistency, please use the table below to defined function arguments and their types:

================ =========== =======================
Argument Type Description
================ =========== =======================
``argument1`` ``type`` What it's all about
``argument2`` ``type`` What it's all about
``argument3`` ``type`` What it's all about
================ =========== =======================
103 changes: 63 additions & 40 deletions docs/application/application.rst
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,11 @@ Determines whether the file at path can be opened as a Premiere Pro :ref:`projec

**Parameters**

A path as a ``String`` to a file to test.
================ =========== =======================
Argument Type Description
================ =========== =======================
``path`` ``String`` A path to a file.
================ =========== =======================

**Returns**

Expand Down Expand Up @@ -542,17 +546,19 @@ Returns **true** if at least 1 project is open; otherwise **false**.
app.newProject()
*********************************************

``app.newProject(projPath)``
``app.newProject(path)``

**Description**

Creates a new .prproj :ref:`project`, at the specified path.

**Parameters**

================ =================================================================================================
``projPath`` **String** containing full path to new project; a .prproj extension will be added, if necessary.
================ =================================================================================================
================ =========== =======================
Argument Type Description
================ =========== =======================
``path`` ``String`` A full path to new project; a .prproj extension will be added, if necessary.
================ =========== =======================

**Returns**

Expand All @@ -573,17 +579,15 @@ Opens the file at the specified path, as a Premiere Pro :ref:`project`.

**Parameters**

+---------------------------------------+------------------------------------------------------------------------+
| ``pathToDocument`` | Full path to the document to be opened. |
+---------------------------------------+------------------------------------------------------------------------+
| ``optionalSuppressConversionDialog`` | Suppress project conversion dialog? |
+---------------------------------------+------------------------------------------------------------------------+
| ``optionalBypassLocateFileDialog`` | Bypass the locate file dialog? |
+---------------------------------------+------------------------------------------------------------------------+
| ``optionalBypassWarningDialog`` | Bypass warning dialog? |
+---------------------------------------+------------------------------------------------------------------------+
| ``optionalDoNotAddToMRUList`` | Skip adding this file, to the most recently used list? |
+---------------------------------------+------------------------------------------------------------------------+
==================================== =========== =======================
Argument Type Description
==================================== =========== =======================
``path`` ``String`` Full path to the document to be opened.
``suppressConversionDialog`` ``Boolean`` Optional. Suppress project conversion dialog.
``bypassLocateFileDialog`` ``Boolean`` Optional. Bypass the locate file dialog.
``bypassWarningDialog`` ``Boolean`` Optional. Bypass warning dialog.
``doNotAddToMRUList`` ``Boolean`` Optional. Skip adding this file to the Most Recently Used List.
==================================== =========== =======================

**Returns**

Expand All @@ -604,7 +608,12 @@ Opens an FCP XML file as a Premiere Pro :ref:`project` (specified in projPath).

**Parameters**

path, projPath.
================ =========== =======================
Argument Type Description
================ =========== =======================
``path`` ``String``
``projPath`` ``String``
================ =========== =======================

**Returns**

Expand Down Expand Up @@ -646,9 +655,11 @@ Determines whether proxy usage is currently enabled.

**Parameters**

================ =========================================================
``enabled`` 1 turns proxies on, 0 turns them off.
================ =========================================================
================ =========== =======================
Argument Type Description
================ =========== =======================
``enabled`` ``Integer`` ``1`` turns proxies on, ``0`` turns them off.
================ =========== =======================

**Returns**

Expand All @@ -661,19 +672,20 @@ Returns 1 if proxy enablement was changed.
app.setExtensionPersistent()
************************************************

``app.setExtensionPersistent(ExtensionID, persist)``
``app.setExtensionPersistent(extensionID, persist)``

**Description**

Whether extension with the given ExtensionID persists, within this session.
Whether extension with the given extensionID persists, within this session.

**Parameters**

+--------------------------------------------------------------------------------+
| ``extensionID`` | Which extension to modify. |
+--------------------------------------------------------------------------------+
| ``persist`` | Pass 1 to keep extension in memory, 0 to allow unloading. |
+--------------------------------------------------------------------------------+
================ =========== =======================
Argument Type Description
================ =========== =======================
``extensionID`` ``String`` Which extension to modify.
``persist`` ``Integer`` Pass ``1`` to keep extension in memory, ``0`` to allow unloading.
================ =========== =======================

**Returns**

Expand All @@ -694,16 +706,18 @@ Specifies the path to be used for one of Premiere Pro's scratch disk paths.

**Parameters**

+----------------------------+-----------------------------------------------+
| ``path`` | The new path to be used. |
+----------------------------+-----------------------------------------------+
| ``whichScratchValueToSet`` | Must be one of the following: |
| | ``FirstAudioCaptureFolder`` |
| | ``FirstVideoCaptureFolder`` |
| | ``FirstAudioPreviewFolder`` |
| | ``FirstAutoSaveFolder`` |
| | ``FirstCCLibrariesFolder`` |
+----------------------------+-----------------------------------------------+
========================== =========== =======================
Argument Type Description
========================== =========== =======================
``path`` ``String`` The new path to be used.
``whichScratchValueToSet`` ``type`` Must be one of the following:

| ``FirstAudioCaptureFolder``
| ``FirstVideoCaptureFolder``
| ``FirstAudioPreviewFolder``
| ``FirstAutoSaveFolder``
| ``FirstCCLibrariesFolder``
========================== =========== =======================

**Returns**

Expand All @@ -724,7 +738,16 @@ Writes a string to Premiere Pro's Events panel.

**Parameters**

message is a string; decorator can be either 'info', 'warning' or 'error'.
================ =========== =======================
Argument Type Description
================ =========== =======================
``message`` ``String`` A message to display.
``decorator`` ``String`` Decorator, one of:

| ``info``
| ``warning``
| ``error``
================ =========== =======================

**Returns**

Expand All @@ -746,9 +769,9 @@ Set workspace as active. Use :ref:`app.getWorkspaces` to get a list of all avail
**Parameters**

============= ========== ==============================
argument type description
Argument Type Description
============= ========== ==============================
``workspace`` ``String`` The name of the workspace
``workspace`` ``String`` The name of the workspace.
============= ========== ==============================

**Returns**
Expand Down
15 changes: 13 additions & 2 deletions docs/general/anywhere.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ Retrieves production names, available to the current user, on the current server

**Parameters**

None.

**Returns**

Returns an Array of **Strings** containing the names of avialable productions, or 0 if unsuccessful.
Expand All @@ -162,7 +164,11 @@ Opens the production at the specified URL.

**Parameters**

A **String** containing the url of the production to open.
================= =========== =======================
Argument Type Description
================= =========== =======================
``productionURL`` ``String`` The url of the production to open.
================= =========== =======================

**Returns**

Expand All @@ -183,7 +189,12 @@ Logs the specified email address into the server, using the provided token.

**Parameters**

Takes an authorization ``token``, and the associated email address.
================ =========== =======================
Argument Type Description
================ =========== =======================
``token`` ``String`` An authorization token.
``emailAddress`` ``String`` The associated email address.
================ =========== =======================

**Returns**

Expand Down

0 comments on commit da0fb55

Please sign in to comment.