fael097
11-10-2010, 04:40 PM
ehh, me again
while i cant figure out how to make the node thing work, let me ask another thing:
i have an attribute holder in a spline, with a checkbutton to hide/show another object , in this case box001. heres the script:
ca=CustAttributes.getDef $.modifiers[1].Controls
LM=$box001
attributes controls
redefine:ca
(
rollout cbt "Check"
(
checkButton chbtHideMe "Hide Me"
on chbtHideMe changed theState do
(
case TheState of
(
true:
(
LM.isHidden = true
)
false:
(
LM.isHidden = false
)
)
)
)
)
--custAttributes.add $.modifiers[1] ca
it works, but if i check the button, deselect the object, and select again, button will be unchecked. how to make an initial state for it? for (lame) example, "if box001 ishidden=true, button=checked"
thanks
while i cant figure out how to make the node thing work, let me ask another thing:
i have an attribute holder in a spline, with a checkbutton to hide/show another object , in this case box001. heres the script:
ca=CustAttributes.getDef $.modifiers[1].Controls
LM=$box001
attributes controls
redefine:ca
(
rollout cbt "Check"
(
checkButton chbtHideMe "Hide Me"
on chbtHideMe changed theState do
(
case TheState of
(
true:
(
LM.isHidden = true
)
false:
(
LM.isHidden = false
)
)
)
)
)
--custAttributes.add $.modifiers[1] ca
it works, but if i check the button, deselect the object, and select again, button will be unchecked. how to make an initial state for it? for (lame) example, "if box001 ishidden=true, button=checked"
thanks
