|
Ok I’m trying to create a script that will allow me to put a position list and a position constraint to all the bones I select. I created a macro using the max script listener. I placed the macro into a new toolbar so I can just click it and apply the action I want. The macro works when I only select one bone at a time, but I would like it to work when I select more than one bone at a time. Can anyone please help me on this thanks.
The code now
macroScript Putting position list postion constraint
category:"DragAndDrop"
toolTip:"”
(
$.pos.controller = position_list ()
$.pos.controller.Available.controller = Position_Constraint ()
)
Sorry the specs
3D studio max 2010 x64bit XP pro
Intel quad-core 2.4
Nividia quadro 1700
|
|
|
|
2 Tips.
Put your Max version (and brief system specs) in your sig - important to know due to changes in MXS between versions.
Always put your code snippets in [ CODE ] ... [ /CODE ] tags - the forum display messes with code something rotten if it’s just in the post without the tags.
( for obj in selection do
(
obj.pos.controller = position_List()
obj.pos.controller.available.controller = position_Constraint()
)
)
Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.
|
|
|
|
Thanks soooo much that helps me out a lot. Ive been having problems with this for two days now.
|
|
|