Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Maxforums.org Members Gallery
(516 replies)
  SON OF POST YOURSELF
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Access Attribute Holder Rollout Controls from external function not working
show user profile  rudolf_3d
Hi everybody!
Can anyone tell me why the function 'enableControl' is not working in this code?:
-------------------------------------
pt = Point()

addModifier pt (EmptyModifier())

myCA = attributes myData
(
parameters main rollout:myRollout
(
myParam type:#boolean ui:ckbMyParam default:false
)
rollout myRollout "My Parameters"
(
checkbox ckbMyParam "My Param" enabled:false
)
)
custAttributes.add pt.modifiers[#Attribute_Holder] myCA


function enableControl obj =
(
obj.modifiers[#Attribute_Holder].myData.myRollout.ckbMyParam.enabled = true
)

enableControl pt
-------------------------------------------
Thanks!
read 314 times
5/27/2015 5:27:23 PM (last edit: 5/27/2015 5:27:23 PM)
#Maxforums IRC
Open chat window


Support Maxforums.org