top of page
GameAudio & Art
import sys
sys.path.append(RPR_GetResourcePath() + r"\UserPlugins")
from AZSTOKE_SILVER_python import *
def Msg(parm):
RPR_ShowConsoleMsg(str(parm) + "\n")
track = AZ_GetTrackItemSelect(0,1,0)
retval,color,r,g,b = AZ_GetRandomColor(0,0,0,0)
Msg(color)
Msg(r)
Msg(g)
Msg(b)
retval = AZ_SetTrackItemColor(track,color)
- SIMPLE SCRIPT -
retval,color,r,g,b = AZ_GetRandomColor(colorOut,rOut,gOut,bOut)
- API -
ID
![](https://static.wixstatic.com/media/fc32ca_f9681906c77e41e2bb63e2fc71e38167~mv2.png/v1/fill/w_61,h_61,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/01_SILVER.png)
NUMBER
AZ_GetRandomColor
対応バージョン:
1.0.0
以降
ランダムカラー情報を取得
LUA
- API Detail -
▼入力値
colorOut(integer):「0」を入力しておく※out用の箱
rOut(integer) : 「0」を入力しておく※out用の箱
gOut(integer) : 「0」を入力しておく※out用の箱
bOut(integer) : 「0」を入力しておく※out用の箱
▼出力値
retval(bool):APIの実行成功の有無
colorOut(integer):色値
rOut(integer) : 赤 0-255
gOut(integer) : 緑 0-255
bOut(integer) : 青 0-255
bottom of page