0
我已經開始學習Maxscripts,我現在已經碰到了牆, 即時通訊試圖獲取我的選擇的名稱,如果它是一個單一的對象,然後如果它超過1,有標籤以字符串形式顯示對象的數量。MAXSCRIPT錯誤與多個if表達式
但我不斷收到錯誤...任何想法?
group "Current Selection:"
(
label lbl_01 "Nothing Selected"
)
------------------------------------------- -------------------------------------------------- ------------------ //當前選擇功能
fn letmeknow obj=
(
local contador = (selection.count as string)
if selection.count != 0 then
(
lbl_01.text = ("Name: " + obj.name)
)
else
(
lbl_01.text = "Nothing Selected"
)
if selection.count >= 2 do (lbl_01.text = ("Objects: " + contador))
)
您會得到什麼錯誤? – ddb