top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

import sys

sys.path.append(RPR_GetResourcePath() + r"/UserPlugins")

from AZSTOKE_BRONZE_python import *


def Msg(parm):

    RPR_ShowConsoleMsg(str(parm) + "\n")

    

retval, _, _, length = AZ_GetSelectedTrackMediaLength(0, 1, 1, 0)

Msg(length)

- SCRIPT -

retval, projID, selectTrackID, lengthOut= AZ_GetSelectedTrackMediaLength(projID, selectTrackID, trackItemID, lengthOut)

- API -

ID

MEDIA

AZ_GetSelectedTrackMediaLength

Get the length (in seconds) of the specified media in the specified selected track

- API Detail-

▼Input value

  • projID (ReaProject): Project ID

  • selectTrackID (Int) : Selected track ID

  • trackItemID(Int): Track item ID

  • lengthOut(Float): Any number (0 is OK)

▼Output value

  • retval(Boolean): Whether the API execution was successful or not

  • projID (ReaProject): The same as the input will be output with "_"

  • selectTrackID (Int): The same as the input will be handled with "_" as the output

  • lengthOut(Float): Media length (seconds)

bottom of page