top of page

Media

8

10 copies of the selected video at 0.2 second intervals

RANK

AZSTOKE_SelectMovieMultiCopy

import sys

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

from AZSTOKE_BRONZE_python import * 

 

def Msg(parm):

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


retval,_,_,startPos = AZ_GetSelectedMediaStartTimeSeconds(0,0,0)


if retval :

    _,_,_,length = AZ_GetSelectedMediaLength(0,0,0) 

    

    for i in range(10):

        startPos = startPos + length + 0.2

        AZ_SetSelectedMediaActiveTakeCopy(0,0,0,startPos)

import sys

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

from AZSTOKE_BRONZE_python import *


  • Import the Bronze API.

  • If you don't have it installed, you'll need to download it here

def Msg(parm):

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


  • Set up the Msg function to output to the console screen


retval,_,_,startPos = AZ_GetSelectedMediaStartTimeSeconds(0,0,0)


  • Get the start time (seconds) of the selected video and assign it to the StartPos variable.

  • Check with retval if the start point of the selected video has been obtained

  • retval: True if the media was obtained; False if the media was not obtained


if retval :

  • Check if the video has been acquired and if so, execute the following process

_,_,_,length = AZ_GetSelectedMediaLength(0,0,0)


  • Get the length of the selected video and assign it to the Length variable

for i in range(10):


  • Since 10 videos will be copied, loop 10 times with For

startPos = startPos + length + 0.2


  • Set the start point of the video. The next start point will be the start point of the previous video + the length of the previous video + 0.2 seconds. If you want to adjust the length of the gap, you can change the interval by adjusting 0.2.

AZ_SetSelectedMediaActiveTakeCopy(0,0,0,startPos)


  • Copy the selected video to the specified timing (startPos)

APIの利用にはBRONZEに

加入し専用APIを

ダウンロード

する必要があります。

Place a video in the project

Select a video

- Script Code -
- Script Image -
- Warm Up -
- Script Detail -
- API -

PYTHON

​ReaScript File Download 👇

​※実行するには専用APIが必要です

- Script Image -
bottom of page