whattawa
08-26-2003, 08:53 PM
I was trying to put together a script that would select all points that are affected by a morph.
Functionally, I would like it to work so that the user turns on a Morph, runs a script, and all points that are affected by the morph would then be selected. Anybody know how to get the script to select points that are affected by a vmap?
For what it is worth, here is the attempt:
main
{
vmap = VMap(VMMORPH) || error("No VMAP selected!");
selmode(USER);
editbegin();
foreach(p,points)
{
if(vmap.isMapped(p))
{
selpoint(SET, POINTID, p);
}
}
editend();
}
Functionally, I would like it to work so that the user turns on a Morph, runs a script, and all points that are affected by the morph would then be selected. Anybody know how to get the script to select points that are affected by a vmap?
For what it is worth, here is the attempt:
main
{
vmap = VMap(VMMORPH) || error("No VMAP selected!");
selmode(USER);
editbegin();
foreach(p,points)
{
if(vmap.isMapped(p))
{
selpoint(SET, POINTID, p);
}
}
editend();
}