PDA

View Full Version : skinops - array of selected verts?


steev
03-24-2008, 06:35 PM
is there a way to get an array or bitarray of selected verts?

i'm trying to write a script that will allow me to copy the vert weights of a bone (like a rollbone) - delete that bone & add those weights to the parent. does something like that already exist or is there a simple method in script?

S-S
03-24-2008, 09:49 PM
I don't know if there is a direct method like in UVs, but:

selected_verts = #()
skinMod = $.modifiers[#skin]

-- Loop thru mesh verts
for o = 1 to $.mesh.verts.count do
(
if (skinOps.IsVertexSelected skinMod o) == 1 then -- has value of 1 if selected
(
append selected_verts o
)
)

-- See what is selected
format "selected verts: %\n" selected_verts

CGTalk Moderation
03-24-2008, 09:49 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.