top of page

Track

4

Set track name to Solo when matching a specified string

RANK

AZSTOKE_TrackNameIncludeStringsSoloSetting

import sys

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

from AZSTOKE_SILVER_python import *


def Msg(parm):

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


soloIncludeString = "_jp"


retval,trackList = AZ_GetTrackItemList(0)

AZ_SetTrackAllSoloOFF(0)


for i, value in enumerate(trackList, 1):

    _,_,name,_ = AZ_GetTrackItemName(value,"",1024)

    _,_,_,check = AZ_CheckIncludeString(name,soloIncludeString,0)

    if check :

        AZ_SetTrackItemSolo(value,True)

import sys

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

from AZSTOKE_SILVER_python import *


・Enable use of SilverAPI


def Msg(parm):

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


- Provides a console output function for debugging


soloIncludeString = "_jp"


・Prepare the string to be soloed and assign it to soloIncludeString


retval,trackList = AZ_GetTrackItemList(0)


- Output the tracks of the open project as an array and assign it to trackList


AZ_SetTrackAllSoloOFF(0)


- Set all currently set solos to off


for i, value in enumerate(trackList, 1):


・Loop for trackList


_,_,name,_ = AZ_GetTrackItemName(value,"",1024)



-Get the name of each track and assign it to name


_,_,_,check = AZ_CheckIncludeString(name,soloIncludeString,0)



・Check if the name contains a soloIncludeString string and assign a bool to check


if check :


Check that the string is included


AZ_SetTrackItemSolo(value,True)


- Set solo to specified track

APIの利用にはBRONZEに

加入し専用APIを

ダウンロード

する必要があります。

Naming the track

*Please understand the partial match range and name accordingly.

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

PYTHON

​ReaScript File Download 👇

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

- Script Image -
bottom of page