Skip to content

Commit

Permalink
setInPoint(), setOutPoint()
Browse files Browse the repository at this point in the history
Added setInPoint(), clarified mediaType specifier.
  • Loading branch information
bbb999 committed Jun 11, 2020
1 parent 9b2d18a commit e7acfaa
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions 4 - Project Item object/projectItem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,29 @@ mediaType is an ``int``; pass ``1`` for video only, or ``2`` for audio only. If

Returns a ``Time`` object.

----

.. _projectItem.setInPoint:

setInPoint()
*********************************************

``projectItem.setInPoint(timeInTicks, mediaType)``

**Description**

Sets the in point to ``timeInTicks``, for specified media types.

**Parameters**

A ``Time`` object, and an ``int`` determining which media type to affect; pass ``1`` for video only, ``2`` for audio only, or ``4`` for all media types.

**Returns**

Returns ``0`` if successful.



----

.. _projectItem.setOutPoint:
Expand All @@ -799,11 +822,11 @@ setOutPoint()

**Description**

Sets the out point to ``timeInTicks``, for specified media types. ``mediaType`` defaults to all; pass ``1`` for video only, or ``2`` for audio only.
Sets the out point to ``timeInTicks``, for specified media types.

**Parameters**

A ``Time`` object, and an ``int``; pass ``1`` for video only, or ``2`` for audio only. If no ``mediaType`` is passed, function sets the out point for all media.
A ``Time`` object, and an ``int`` determining which media type to affect; pass ``1`` for video only, ``2`` for audio only, or ``4`` for all media types.

**Returns**

Expand Down

0 comments on commit e7acfaa

Please sign in to comment.