From b1b76119384c7dca4a82e3301185a40055a5a05c Mon Sep 17 00:00:00 2001 From: Zack Lovatt Date: Thu, 18 Jun 2020 11:16:43 -0700 Subject: [PATCH] Swap curly quotes with straight --- docs/general/globals.rst | 4 ++-- docs/introduction/changelog.rst | 6 +++--- docs/introduction/overview.rst | 4 ++-- docs/other/textdocument.rst | 22 +++++++++++++++++++--- docs/properties/property.rst | 6 +++--- 5 files changed, 29 insertions(+), 13 deletions(-) diff --git a/docs/general/globals.rst b/docs/general/globals.rst index 1fd60a0..2aa619f 100644 --- a/docs/general/globals.rst +++ b/docs/general/globals.rst @@ -110,8 +110,8 @@ Floating-point, pseudo-random number in the range [0, 1]. // use new generateRandomNumber() instead x = 400*(generateRandomNumber()) – 200; - currentPos = myComp.layer(i).property(“Position”).value; - myComp.layer(i).property(“Position”).setValue([currentPos[0]+x,currentPos[1]]); + currentPos = myComp.layer(i).property("Position").value; + myComp.layer(i).property("Position").setValue([currentPos[0]+x,currentPos[1]]); } ---- diff --git a/docs/introduction/changelog.rst b/docs/introduction/changelog.rst index d24ffb9..e65683b 100644 --- a/docs/introduction/changelog.rst +++ b/docs/introduction/changelog.rst @@ -92,7 +92,7 @@ What's new and changed for scripting? ************************************************************************************************************************************ - Buttons in ScriptUI panels have been reverted to the rectangular appearance seen in After Effects 14.1 and previous releases. -- The :ref:`AVItem.setProxyToNone` scripting method no longer fails with an error message, “After Effects error: AEGP trying to add invalid footage”. +- The :ref:`AVItem.setProxyToNone` scripting method no longer fails with an error message, "After Effects error: AEGP trying to add invalid footage". - The :ref:`System.callSystem` scripting method now waits for all tasks called by the command to complete, instead of failing when the command takes a long time to complete. ---- @@ -122,9 +122,9 @@ What's new and changed for scripting? - Added: :ref:`Project.resolveConflict` - Drop-down menus in ScriptUI panels are no longer clipped on HiDPI displays on Windows. -- The appearance of buttons, sliders, disclosure triangles (“twirly arrow”), scroll bar, progress bar, radio buttons, and checkboxes in ScriptUI embedded panels have been updated to match the appearance of After Effects native controls. +- The appearance of buttons, sliders, disclosure triangles ("twirly arrow"), scroll bar, progress bar, radio buttons, and checkboxes in ScriptUI embedded panels have been updated to match the appearance of After Effects native controls. - After Effects no longer crashes when the :ref:`TextDocument.compPointToSource` scripting method is used with a 3D text layer. -- The match name of the Fast Box Blur effect is “ADBE Box Blur2”. The older match name “ADBE Box Blur” will continue to work: when used to add the effect, “ADBE Box Blur” will apply the Fast Box Blur effect, but with the older name “Box Blur”; the Iterations parameter will be set to the new default of 3. +- The match name of the Fast Box Blur effect is "ADBE Box Blur2". The older match name "ADBE Box Blur" will continue to work: when used to add the effect, "ADBE Box Blur" will apply the Fast Box Blur effect, but with the older name "Box Blur"; the Iterations parameter will be set to the new default of 3. ---- diff --git a/docs/introduction/overview.rst b/docs/introduction/overview.rst index 8ef59b5..a970af7 100644 --- a/docs/introduction/overview.rst +++ b/docs/introduction/overview.rst @@ -43,7 +43,7 @@ After Effects includes a script editor and debugger, the ExtendScript Toolkit (E To start the ESTK, choose File > Scripts > Open Script Editor. -If you choose to use another text editor to create, edit, and save scripts, be sure to choose an application that does not automatically add header information when saving files and that saves with Unicode (UTF-8) encoding. In many text editors, you can set preferences for saving with UTF-8 encoding. Some applications (such as Microsoft Word) by default add header information to files that can cause “line 0” errors in scripts, causing them to fail. +If you choose to use another text editor to create, edit, and save scripts, be sure to choose an application that does not automatically add header information when saving files and that saves with Unicode (UTF-8) encoding. In many text editors, you can set preferences for saving with UTF-8 encoding. Some applications (such as Microsoft Word) by default add header information to files that can cause "line 0" errors in scripts, causing them to fail. For detailed information on the ExtendScript Toolkit, see the JavaScript Tools Guide. @@ -130,7 +130,7 @@ Alternatively, you could display a dialog box asking for the location of the JSX .. note:: This documentation is incorrect, the correct invocation in this instance is :code:`DoScriptFile` -Finally, this script is perhaps most useful when you are working directly on editing a JSX script and want to send it to After Effects for testing or to run. To use it effectively you must enter the application that contains the open JSX file (in this example it is TextEdit); if you do not know the proper name of the application, type in your best guess to replace “TextEdit” and AppleScript prompts you to locate it. +Finally, this script is perhaps most useful when you are working directly on editing a JSX script and want to send it to After Effects for testing or to run. To use it effectively you must enter the application that contains the open JSX file (in this example it is TextEdit); if you do not know the proper name of the application, type in your best guess to replace "TextEdit" and AppleScript prompts you to locate it. Simply highlight the script text that you want to run, and then activate this AppleScript: diff --git a/docs/other/textdocument.rst b/docs/other/textdocument.rst index 8c41d85..5875f61 100644 --- a/docs/other/textdocument.rst +++ b/docs/other/textdocument.rst @@ -128,7 +128,23 @@ The baseline (x,y) locations for a text layer. Line wraps in a paragraph text bo **Type** -Array of floating-point values in the form of: ``line0.start_x, line0.start_y, line0.end_x, line0.end_y, line1.start_x, line1.start_y, line1.end_x, line1.end_y … lineN-1.start_x, lineN-1.start_y, lineN-1.end_x, lineN-1.end_y`` +Array of floating-point values in the form of:: + + [ + line0.start_x, + line0.start_y, + line0.end_x, + line0.end_y, + line1.start_x, + line1.start_y, + line1.end_x, + line1.end_y, + ... + lineN-1.start_x, + lineN-1.start_y, + lineN-1.end_x, + lineN-1.end_y + ] ---- @@ -398,7 +414,7 @@ TextDocument.fontStyle **Description** -String with style information, e.g., “bold”, “italic” +String with style information, e.g., "bold", "italic" .. warning:: This value only reflects the first character in the text layer at the current time. @@ -475,7 +491,7 @@ TextDocument.leading **Description** -The text layer’s spacing between lines. +The text layer's spacing between lines. .. warning:: If the text layer has different leading settings for each line, this attribute returns the setting for the first line. diff --git a/docs/properties/property.rst b/docs/properties/property.rst index 2d8aea3..ba8eed9 100644 --- a/docs/properties/property.rst +++ b/docs/properties/property.rst @@ -1200,7 +1200,7 @@ Sets the ``in`` and ``out`` interpolation types for the specified keyframe. - ``KeyframeInterpolationType.BEZIER`` - ``KeyframeInterpolationType.HOLD`` ``outType`` (Optional) The outgoing interpolation type. If not supplied, the - ‘out' type is set to the ``inType`` value. A + 'out' type is set to the ``inType`` value. A ``KeyframeInterpolationType`` enumerated value; one of: - ``KeyframeInterpolationType.LINEAR`` @@ -1241,8 +1241,8 @@ Sets parameters for a Dropdown Menu Control's Menu Property. This method will ov - Only strings are allowed. - Empty item strings are not allowed. - Duplicate item strings are not allowed. - - The character “|” is not allowed in the item strings. - - The string “(-“ - can be specified as of the item strings. These appear as separator lines in the dropdown menu. The separator lines will claim an index for each of themselves. + - The character "|" is not allowed in the item strings. + - The string "(-" - can be specified as of the item strings. These appear as separator lines in the dropdown menu. The separator lines will claim an index for each of themselves. ============= =================================================== .. note::