Attribute_Holder 2 help
Running max r9 sp3
I get this error :
__________________________________________________________________
OK
OK
--
Compile error: redefine: must be an attributes definition value, in
cons
--
In line: redefine:ravinCtrl
___________________________________________________________________
I
have a “circle” selected with a “Attribute_Holder 2” mod on
it. When I run this script:
-------------------------------------------------------------------------------
global
ravinCtrl
for
numDef = 1 to
(custAttributes.count $.modifiers[1]) do
(
print
(custAttributes.get $.modifiers[1] numDef).name
if
(custAttributes.get $.modifiers[1] numDef).name == "cons"
then
(
ravinCtrl
= (custAttributes.getDef $.modifiers[1] numDef)
)
)
ravinCtrl
= Attributes
"cons"
redefine:ravinCtrl
)
parameters
mainP rollout:mainR
(
noseGear
type:#float ui:(spinNose,slideNose,angNose)
)
rollout
mainR "cons"
(
spinner
spinNose ""
width:50 height:16 range:[-180,180,0] pos:[98,14]
button
resetNose "reset"
width:40 height:14 pos:[53,15]
slider
slideNose ""
width:111 range:[-180,180,0] ticks:0 pos:[55,30]
GroupBox
grp1 "NoseGear"
width:158 height:53 pos:[3,2]
Angle
angNose ""
diameter:37 range:[0,360,90] startdegrees:0 dir:#cw color:white
pos:[9,15]
on
ang changed spinNose do
spinNose.value = spinNose
on
resetNose pressed do
(
spinNose.value
= 0.0
slideNose.value
= 0.0
)
)
)
custAttributes.add
$.modifiers[1] ravinCtrl
Any
thoughts?