top of page
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_GetTrackMediaLength(0, 1, 1, 0)
Msg(length)
- SCRIPT -
retval, projID, trackID, lengthOut= AZ_GetTrackMediaLength(projID, trackID, trackItemID, lengthOut)
- API -
![](https://static.wixstatic.com/media/fc32ca_ce420e9bb52c45e180e78eae3346c302~mv2.png/v1/fill/w_61,h_61,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/01_BRONZE.png)
対応バージョン:
1.0.1
以降
MEDIA
AZ_GetTrackMediaLength
Get the length (in seconds) of the specified media in the specified track
LUA
- API Detail-
▼Input value
projID (ReaProject): Project ID
trackID (Int) : 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 "_"
trackID (Int): The same as the input will be output as "_".
lengthOut(Float): Media length (seconds)
bottom of page