[Bf-committers] NMVert.sel problem ?

bf-committers@blender.org bf-committers@blender.org
Sun, 01 Aug 2004 21:03:39 -0500


This is a multi-part message in MIME format.
--------------090604010505000805030709
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Normally I'd post this in bug tracker, but seeing how its close to release I
wanted to insure that someone saw it.  If its desired I post a bug,
let me know and I'd be happy to do so.

I'm getting strange behavior with the attached python script.  I've
hooked it up as a Mesh script and at one point it appeared to be working
well.  I finally used it again today against a current build and I'm
seeing odd behavior.

The behavior I'm seeing makes me believe the NMVert.sel instance variable
is only getting set upon leaving (maybe entering) edit mode on the mesh.

Drop the attached script in your python scripts directory, restart blender
(or refresh your scripts) and select a mesh and go into edit mode.  Select
a vertice or two and run the script Mesh->Scripts->Selected Vertex Group Dump.

Check your console and you're likely to see information dumped on one or
more vertices that aren't the one you just selected.  Leave edit mode and
enter edit mode again and then run the script and you should see the correct
information for the vertice selected.

Selecting another vertice at this point will continue to dump the information
for the previous vertice.

--
Todd Koeckeritz, zaz@visi.com

Surfin' the Web with an ActiveX enabled browser is kindof like having
to worry about getting shot everytime you knock on a door.

--------------090604010505000805030709
Content-Type: application/x-python;
 name="vertexGroups.py"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="vertexGroups.py"

IyFCUFkNCg0KIiIiDQpOYW1lOiAnU2VsZWN0ZWQgVmVydGV4IEdyb3VwIER1bXAnDQpCbGVu
ZGVyOiAyMzMNCkdyb3VwOiAnTWVzaCcNClRpcDogJ1ByaW50IFZlcnRleCBHcm91cHMgZm9y
IFNlbGVjdGVkIFZlcnRpY2VzJw0KIiIiDQppbXBvcnQgb3MNCmltcG9ydCBCbGVuZGVyDQpm
cm9tIEJsZW5kZXIgaW1wb3J0IE9iamVjdCwgTk1lc2gNCg0Kb2JqID0gT2JqZWN0LkdldFNl
bGVjdGVkICgpIFswXQ0KbWVzaCA9IG9iai5kYXRhDQpncm91cENvdW50ID0gMA0KY291bnQg
PSAwDQoNCnByaW50ICJQcm9jZXNzaW5nIG1lc2giLCBtZXNoLm5hbWUsICJmcm9tIG9iamVj
dCIsIG9iai5nZXROYW1lICgpDQoNCmZvciBncnAgaW4gbWVzaC5nZXRWZXJ0R3JvdXBOYW1l
cyAoKToNCglncm91cENvdW50ICs9IDENCglmb3IgdmlkeCBpbiBtZXNoLmdldFZlcnRzRnJv
bUdyb3VwIChncnApOg0KCQl2ZXJ0ID0gbWVzaC52ZXJ0cyBbdmlkeF0NCgkJaWYgdmVydC5z
ZWw6DQoJCQlwcmludCBkaXIgKHZlcnQpDQoJCQlwcmludCAiXHQiLCBncnAsICJmb3IgdmVy
dCIsIHZlcnQuaW5kZXgsIHZpZHgsIHZlcnQuY28sIHZlcnQuc2VsDQoJCQljb3VudCArPSAx
DQoJCQlicmVhaw0KDQpwcmludCBjb3VudCwgImdyb3VwcyBpbnZvbHZlZCBvdXQgb2YiLCBn
cm91cENvdW50LCAidG90YWwgZ3JvdXBzLiINCg==
--------------090604010505000805030709--