PDA

View Full Version : Deleting multiple Selection Sets at once


NLightUK
01-08-2005, 06:46 PM
I am in Selection Set hell! :scream:

Please someone tell me if there is a way to delete multiple selection sets at once in modeler 8.01...

I have a number of hires poly models converted from CAD drawings in OBJ format. They have come into LW with selection set names associated with the original trimmed NURB and other entities from the original Unigraphics file. I can delete the selection sets but only one at a time, and there are several thousand per model, and I have several models...

The presence of that amount of additional data is pushing LWO filesizes and save times upwards, so any help would be appreciated, even if it is just to say "it's not possible..."

Thanks in advance

Regards

Adam

faulknermano
01-09-2005, 04:24 PM
well, it is possible, so i think that's better, no? :)

main
{
selmode(USER);
vmap = VMap(VMSELECT);
i = 0;
while(vmap && vmap.type == VMSELECT)
{
vms[++i] = vmap;
vmap = vmap.next();
}

pc = editbegin() || error("No points.");
for(i=1;i<=pc;i++)
{
for(j=1;j<=vms.size();j++)
{
if(vms[j].isMapped(points[i]))
vms[j].setValue(points[i]);
}
}

}


this is an lscript. i'm assuming you know how to load and run it.

good luck.

SplineGod
01-09-2005, 11:20 PM
I think theres a couple of free plugins (Check flay) that will delete multiple vmaps at once.

NLightUK
01-11-2005, 06:56 PM
Thanks for the replies, both you guys.

I have managed to get round the problem with some changes to my workflow. This project is nearly up, but I'm gonna prepare abackup plan for future projects :)

Larry - I had a search on flay but couldn't find anything. I shall have another go using different search criteria and see if I can track anything down.

Faulknermano - thanks for the LScript :thumbsup: I know how to run it, but have never delved into the dark art that is programming of any kind. I nearly fried my head writing the age-old "Hello World" program in C years ago and decided it wasn't really for me. I appreciate the code...thanks.

Adam

SplineGod
01-14-2005, 09:21 PM
Heres some possibilities:
http://www.trueart.pl/?URIType=Directory&URI=Products/Plug-Ins/SelectionPresetManager
http://www.dstorm.co.jp/english/plugin/vmap.htm#DeleteMap

CGTalk Moderation
01-20-2006, 09:00 AM
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.