PDA

View Full Version : Custom Attributes Assignment problem?


Hazaro
10-26-2009, 04:04 PM
Hi, as you two for the Novice's a MaxScript question would be. First, I apologize for my bad english.

Once activated the code below my first question after a period of parameters function is lost. And to assign the code again if staying. The reason for this may be a different computer to run my file? In a situation like that on the same computer also available in this case, this may be why?

ka=Attributes "El-Kol Kontrol"

(
Parameters params Rollout:DirsekRoll
(
Dirsek type:#float ui:DirsekSp
Basba type:#float ui:BasSp
OrtaPa type:#float ui:OrtaSp
)

Rollout DirsekRoll "El ve Kol Kontrol"

(
Local range=[-10,90,0]
group "Kol"
(
spinner DirsekSp "Dirsegi Çevir" range:range
)

group "Reset"
(
button DirsekRes "Dirsek Reset"
)

on DirsekRes pressed do

(
Dirsek=0
)

group "El"
(
spinner BasSp "Bas Barnak" Range:range
spinner OrtaSp "Orta Parmak" Range:range
)
group "El Reset"
(
button ElRes "El Reset"
)

on Elres pressed do

(
Basba=0
OrtaPa=0
)
group "El-Kol"
(
button ResAll "Tümünü Resetle"
)

on ResAll pressed do

(
Basba=0
OrtaPa=0
Dirsek=0
)
)

)

custAttributes.add $.modifiers[1] ka


This is relevant in my code, then the following researches After making add-ons gives the following errors. "-- Error occurred in anonymous codeblock; filename: I:\__10_01_2009_Demoreell\_02_Iskelet\Ayak KontrolScript.ms; position: 52
-- Unknown property: "AyakKontrol" in EmptyModifier:Attribute Holder
<AttributeDef:AyakKontrol>
OK"

What could be the cause of this error.? I offer my thanks in advance for your response.

ca=custAttributes.getdef $.modifiers[1].AyakKontrol
attributes AyakKontrol
redefine:ca
(
Parameters params Rollout:AyakR
(
AyakRoll type:#float ui:AyakRollSp
Diz type:#float ui:DizSp
)

Rollout AyakR "Ayak Kontrol"
(
Local range=[-45,60,0]
group "Ayak"
(
spinner AyakRollsp "Ayak Çevir" range:range
)
group "Bacak"
(
Spinner DizSp "Dizi Döndür" range:range
)
group "Reset"
(
button resetAll "Tümünü Resetle"
)
on resetAll pressed do
(
AyakRoll=0
Diz=0
)
)

)
--custAttributes.add $.modifiers[1] ca

CGTalk Moderation
10-26-2009, 04:04 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.