Class: Live

Live()

グローバルにアクセスできるオブジェクト

Constructor

new Live()

Source:

Members

items :Array.<Item>

すべてのシーンのアイテムの一覧
Type:
Source:

models :Array.<Model>

すべてのシーンのモデルの一覧
Type:
Source:

parameters :Array.<{id: string, createdBy: string, group: string, base: number, min: number, max: number, repeat: boolean}>

LIVEパラメータの一覧
Type:
  • Array.<{id: string, createdBy: string, group: string, base: number, min: number, max: number, repeat: boolean}>
Properties:
Name Type Description
id string パラメータのID。LiveParametersを参照
createdBy string パラメータの作成者
group string パラメータのグループ名
base number パラメータの基準値
min number パラメータの最小値
max number パラメータの最大値
repeat boolean 最大値と最小値がつながる場合にtrue
Source:

scenes :Array.<Scene>

シーンの一覧
Type:
Source:

version :string

スクリプトのバージョン
Type:
  • string
Source:

Methods

insertParameter(param)

LIVEパラメータを追加する
Parameters:
Name Type Description
param Object パラメータ設定オブジェクト。
Properties
Name Type Description
Id string パラメータのID。
Group string パラメータが属するグループ。
Base number パラメータの基本値。
Max number パラメータの最大値。
Min number パラメータの最小値。
Repeat boolean パラメータが繰り返し可能かどうか。
Source:

openColorDialog()

カラーダイアログを開く
Source:

openErrorDialog()

エラーダイアログを開く
Source:

openFloatDialog()

小数入力ダイアログを開く
Source:

openIntDialog()

整数入力ダイアログを開く
Source:

openListDialog(title, text, list, selectedCallback, canceledCallback, changedCallback)

コンボボックスでの選択ダイアログを開く ※ モーダルダイアログで開きます
Parameters:
Name Type Description
title string ウィンドウタイトル
text string 本文
list Array.<string> 選択肢の一覧
selectedCallback function 選択したときに呼ばれる関数
canceledCallback function キャンセルしたときに呼ばれる関数
changedCallback function 変更があったときに呼ばれる関数
Source:

openMessageDialog()

メッセージダイアログを開く
Source:

openMultiTextDialog()

複数行のテキスト入力ダイアログを開く
Source:

openTextDialog()

テキスト入力ダイアログを開く
Source:

rgb(red, green, blue) → {Color}

色の数値から#FFFFFFの形式に変更
Parameters:
Name Type Description
red number 0~1
green number 0~1
blue number 0~1
Source:
Returns:
Type
Color

showMessage(message)

右上にメッセージを表示する
Parameters:
Name Type Description
message string
Source: