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")

    

mediaItem = AZ_GetMediaItemSelect(0,0,0)

retval,item,lengthOut = AZ_GetMediaItemLength(mediaItem,0)

Msg(lengthOut)

- SCRIPT -

retval,item,lengthOut = AZ_GetMediaItemLength(mediaItem,lengthOut)

- API -

ID

MEDIA

AZ_GetMediaItemLength

Gets the length (in seconds) of the specified media item.

- API Detail-

▼Input value

  • MediaItem (MediaItem): Media item

  • length(number): Any number (0 is OK)

▼Output value

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

  • length(number): The length of the specified media item (in seconds).

bottom of page