Creating a macro to apply an action to bones

Creating a macro to apply an action to bones

Anonymous
Not applicable
354 Views
2 Replies
Message 1 of 3

Creating a macro to apply an action to bones

Anonymous
Not applicable
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
0 Likes
355 Views
2 Replies
Replies (2)
Message 2 of 3

Steve_Curley
Mentor
Mentor
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 ... 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 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks soooo much that helps me out a lot. Ive been having problems with this for two days now.
0 Likes