Notifications
Clear all

[Closed] Querying bones in a skin modifier

Ive been wanting to add some functionality to a script I have and I want to query the skin modifier on an object and see what bones are used in it and then select all of those bones. I have had a look at skinOps in the maxscript help but Im not sure if this is the right thing for me to look at – if it is, then Im stumped!

Can anyone suggest a way I can do what I want?

2 Replies
 PEN
	numB=skinOps.GetNumberBones $.skin
	clearListener()
	for i = 1 to numB do
	(
		format "skinOps.addbone $.skin $% 0
" (skinOps.getBoneName $.skin i 0)
	)

That help?

PERFECT! Thanks Mr Neale.