CurrentModel屬性
執行階段專用
套用至
視覺物件:ColorMatch、ImageOp
說明
設定/傳回用於變更教學及模型名稱的目前模型索引。
用途
VGet Sequence.Object.CurrentModel, var
VSet Sequence.Object.CurrentModel, value
- Sequence
- 序列名稱或表示序列名稱的字串變數
- Object
- 物件名稱或表示物件名稱的字串變數。物件必須存在於指定序列中。
- var
- 表示屬性值的整數變數
- value
- 表示新屬性值的整數或運算式
數值
1至NumberOfModels結果值的整數。
詳細說明
使用CurrentModel屬性值設定用於教學以及設定色彩模型名稱的目前模型索引。
例如,下列代碼可設定模型2的顏色及名稱:
VSet seq1.ColorMatch01.CurrentModel, 2
VSet seq1.ColorMatch01.ModelColor, &Hff0000
VSet seq1.ColorMatch01.ModelName, "Red"
參考
NumberOfModels屬性、ColorMatch物件、ImageOp物件、ModelColor屬性