def name(self): """ Project name. :type: str """ _, name, _ = RPR.GetProjectName(self.id, "", 2048) return name
""" This is the Reaper Action Author: Alberto Valdez av5sound.com """ from reapy import reascript_api as reaper import configparser from pathlib import Path import os dxtFolder = Path('DxTracker') rscPath = Path(reaper.GetResourcePath()) / dxtFolder projPath = Path(reaper.GetProjectPath('',512)[0]) projectName = reaper.GetProjectName(0, '', 512)[1] while True: if (projPath / projectName).exists(): break else: try: projPath = Path(projPath).parents[0] except: reaper.ShowMessageBox("Can't find project in path. Check Project Settings.", "DxTracker", 0) smi = reaper.CountSelectedMediaItems(0) class Item(): def __init__(self, item): self.item = item