Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

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) Members Gallery
(516 replies)
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Help with custom attributes
show user profile  griffinanimator
Hi all,
I am working in Max 2012 and would like to script the addition of an attribute holder to an object. When I manually create an attribute holder I get some feedback in the listener that shows the code for adding the holder based on selection, but that is not what I really want.

modPanel.addModToSelection (EmptyModifier ()) ui:on

After I create the holder, I want to add some custom attributes for foot roll and such. The listener gives me no clues on this one, but I did find some code that hints at how I might go about it.

weaponDataCA = attributes weaponData
parameters main rollout:params
hitPoints type:#float ui:hits default:10
cost type:#float ui:cost default:100
sound type:#string

rollout params "Weapon Parameters"
spinner hits "Hit Points" type:#float
spinner cost "Cost" type:#float
dropdownlist sound_dd "Sound" items:#("boom", "sparkle", "zap", "fizzle")

on sound_dd selected i do sound = sound_dd.items[i]

This does not seem to do the trick though. Can anyone give me some hints. :)

read 271 times
1/6/2012 6:46:25 PM (last edit: 1/6/2012 6:46:25 PM)
show user profile  herfst1
Watch this series:

read 256 times
1/6/2012 10:09:12 PM (last edit: 1/6/2012 10:09:12 PM)
show user profile  griffinanimator
Thanks for the link. I will give the videos a look.
read 242 times
1/11/2012 11:27:30 PM (last edit: 1/11/2012 11:27:30 PM)
#Maxforums IRC
Open chat window