PDA

View Full Version : how to create nex Vmap ??



papou
09-11-2003, 04:54 PM
hi,
maybe somebody here can help me to understand Vmap access.
I have a points selections and i want to create a new weightmap named "selection" with 100% value.
so i must use ,newmap = VMap(VMWEIGHT,"selection",1); then setvalue something... but where?

with,

main
{
newmap = VMap(VMWEIGHT,"selection",1);
}

i get an error > "illegal Mesh Edit operation Vmap() in commande
sequence mode" Arg.

The mailing list doesn't help me anymore, coz there are nomore newbee on it...So i can't understand what they are trying to explain to me..(and i not english native)

So i'm stick..like with all my scripts..

Thank you very much!

jagoca
09-12-2003, 04:47 PM
i get an error > "illegal Mesh Edit operation Vmap() in commande
sequence mode" Arg.


I don't know much about VMaps, but I think you'll need to begin a meshedit session prior to this. so:


editbegin();
// your stuff here
editend();

Hope this helps

papou
09-12-2003, 06:22 PM
i tryed somethng like that with some point selected:

main
{
editbegin();
newmap = VMap(VMWEIGHT,"selection",1);
editend();
}
no error but no new weightmap too...
hmm...damn...