top of page
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)
- 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
以降
Get random color information
LUA
- API Detail-
▼Input value
colorOut(integer): Enter 0. *Box for out
rOut(integer): Enter "0" ※Box for out
gOut(integer): Enter "0" ※Box for out
bOut(integer): Enter "0" ※Box for out
▼Output value
retval(bool): Whether the API execution was successful or not
colorOut(integer): Color value
rOut(integer) : Red 0-255
gOut(integer) : green 0-255
bOut(integer) : Blue 0-255
bottom of page