A window for Selection Groups [plug-in] - Printable Version +- Wings 3D Development Forum (https://www.wings3d.com/forum) +-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1) +--- Forum: Design & Development (https://www.wings3d.com/forum/forumdisplay.php?fid=6) +--- Thread: A window for Selection Groups [plug-in] (/showthread.php?tid=14) Pages:
1
2
|
A window for Selection Groups [plug-in] - micheus - 11-10-2012 An interface plugin that makes possible to manage Selection Groups quickly. Main operations (without any selection): Operations for a select item: Operations between a select item and a "tracked" item: Download on my Google Disk *-erts.5.8 is compatible with Wings 1.3.1 -> 1.4.1 *-erts.5.9 is compatible with future Wings release (> 1.4.1) Download the .tar file and use File-> Install Plugin (it should work) The thread in old forum: Selection Groups window interface RE: A window for Selection Groups [plug-in] - ggaliens - 12-12-2012 When I cut an edge in half, I expected this action to remove at least that edge from the selection groups window. Is there really a guarantee that when you cut in half ... one the the edges retains the old ID ? Do you want to "BANK" on this ? What I got is that 1/2 of the edge was now selected by that operation. Maybe I need to try cut 3. OK ... I noticed a serious problem. The groups don't expire after I remove an owning object. This may be a bug you inherited Micheus ... but I still think it a good idea to expire any named selection after a delete of an object referenced in that selection. Maybe this is the base case where the selection has gone to [ ] because there was only one WeID. I think empty named selection should be purged. I guess I could go hunting for this in the bowels of Wings3D if nobody has considered it at length. OK ... yeah ... it tries to keep the Partial selections (what's left). But when only [ ] is left ... I think it should go. Don't you ? RE: A window for Selection Groups [plug-in] - Fonte Boa - 12-12-2012 Hi, gg. Go to the original discussion at the following link: http://nendowingsmirai.yuku.com/topic/7839/Selection-Groups-window-interface?page=1 and you will see at topic #35 the original Ran13 suggestion about this: <<I haven't had a chance to play with this yet, but on the subject of automatically deleting empty group names... Let's say you use the same group names over and over. Arm_L, Arm_R, Leg_L, Leg_R, etc. Wouldn't leaving empty (invalid) groups behind after you delete the mesh be seen as a "feature"... a way to import common group names from an external file, delete the imported/merged mesh, and have be able to assign new selections to the pre-existing/merged/imported names? My 2ยข... When deleting a mesh that has selections groups, you should have the option to delete mesh+any left over groups, or to just delete the mesh and leave the groups just for the above functionality. That is, unless you want to add the ability to load a bunch of group names from a TXT file, or something, to save the user from having to type in the names repeatedly with every new model.>> RE: A window for Selection Groups [plug-in] - ggaliens - 12-12-2012 Fair enough, so long as it has received some consideration. I ready that they will be purged on SAVE/RESTORE. That's good enough for me. I was thinking of a simple one like "Delete All Empty". RE: A window for Selection Groups [plug-in] - optigon - 12-12-2012 Not sure where it is.. but I though I wrote some code to Delete Invalid Groups? Just searched the code for "Invalid" and found it It's in wings_sel_cmd.erl. delete_invalid_groups But for some reason there is no menu item anymore? RE: A window for Selection Groups [plug-in] - micheus - 12-12-2012 I had made it available in the pop-up menu for wpc_sel_win, but I removed it after the discussion here. I can expose the Optigons' function again. RE: A window for Selection Groups [plug-in] - ggaliens - 12-12-2012 Ran13 I think was talking about EMPTY groups, not invalid. It seems to me That invalid groups should disappear as soon as possible. I assume that the delay is on empty groups. Let's call a spade a spade. I have not idea what Optigon's old menu text was ... but sounds like it should say "Delete Empty Groups". RE: A window for Selection Groups [plug-in] - optigon - 12-12-2012 (12-12-2012, 10:49 PM)ggaliens Wrote: Ran13 I think was talking about EMPTY groups, not invalid. It seems to me That invalid groups should disappear as soon as possible. I assume that the delay is on empty groups. Let's call a spade a spade. It was a command for deleting groups for which matching geometry no longer existed. Regardless, the root of the problem is that the model changes and the groups do not. Groups only remain current for models that do not change. Deletions, extrusions, cuts, and any command that changes a model's geometry has the potential of messing up a Selection Group. You could make an extrussion that makes a SelGroup invalid, and then undo the extrusion, making the SelGroup valid again. Groups are probably better for Objects, since their Ids don't change when modifying their geometry. Groups based on Vertices, Edges, and Faces are more easily made invalid. RE: A window for Selection Groups [plug-in] - ggaliens - 12-13-2012 It is by force of habit that devs writing destructive delete oriented code will take care of #st{sel=SelAny} selections ASAP. Shame dev that does not (a crash is coming soon). It is no harder to give the same attention (habit formed) to ssel=SSelAny items, IMHO. Just FYI ... sick day today ... too much time to play and nap and write posts about wings3D. Back to quieter tomorrow for me. RE: A window for Selection Groups [plug-in] - Fonte Boa - 12-13-2012 << invalid groups should disappear as soon as possible. >> I agree. It is possible to crash Wings trying to rename an invalid selection. Create a cube Select top face and create a group called "top" Select botton face and create a group called "botton" Select top face and call Face|Collapse Right click on group "top", call Rename and click OK. Wings crashes. dump file is big, so this is just head/tail. ---------------- Dump written 2012-12-12_21-18 Version: 1.5.pre1.38.g62be8 Window: geom Reason: function_clause Short stack trace: [] Long stack trace: [{wings,command_1, [{sel_groups,{rename_group,{{vertex,"top"},"invalid"}}}, {st,{2, {1, {we,1,0,"Cube1", {array,1728,10000,undefined, {{{{{edge,0,432,1589,1040,1589,1,2,1041}, {edge,0,433,1429,1589,1429,2,0,1590}, {edge,0,434,1040,1429,1040,0,1,1430}, {edge,1,435,1605,1024,1605,4,5,1025}, {edge,1,436,1585,1605,1585,540,3,1606}, {edge,1,437,1024,1044,1024,3,540,1045}, {edge,2,438,1621,1008,1621,7,8,1009}, {edge,2,439,1601,1621,1601,543,6,1622}, {edge,2,440,1008,1028,1008,6,543,1029}, {edge,3,441,1617,1184,1617,546,10,1185}}, {{edge,3,442,1184,1012,1184,9,546,1013}, {edge,4,443,1637,1592,1637,12,541,1593}, ............................................................... {specular,{0.0,0.0,0.0,1.0}}, {vertex_colors,set}]}], nil,nil}}, {1, {wings_shape, {no_folder,[{no_folder,{open,{1,{1,nil,nil}}}}]}, nil,nil}}, {view,quick_preview}, undefined}]}, true,[]}], [{file,"wings.erl"},{line,680}]}, {wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,81}]}, {wings,raw_command,4,[{file,"wings.erl"},{line,566}]}, {wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,825}]}, {wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,796}]}, {wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,698}]}, {lists,foreach,2,[{file,"lists.erl"},{line,1262}]}, {wings_wm,'-redraw_all/0-fun-1-',1,[{file,"wings_wm.erl"},{line,713}]}] EDIT: The problem isnt related to invalid selections but to Rename command in SG window. Create a cube Select all its faces and create a X group Try to rename that group Wings crashes |