PDA

View Full Version : Lscript: Accesing VMAP info from generic layout script


Reality3D
09-07-2003, 02:52 AM
I am supposed to do something like
first_vmap_in_scene=VMap();
In the layout scene i have some objects with texture maps and subpatch weightmaps, but i get always undefined.
Any example script or similar there to see how to acces this info?. Thanks!!

zuzzabuzz
09-07-2003, 06:59 AM
checking the docs ( http://www.newtek.com/products/lightwave/downloads/updates/lscripts/LScriptUser.pdf)

...i think the constructor is wrong.

needs to be something like:

first_vmap_in_scene = VMap(VMWEIGHT) or
first_vmap_in_scene = VMap(VMTEXTURE)

So..it needs a little hint at what type of VMap you want to get at. Good luck.

Reality3D
09-07-2003, 02:07 PM
No, that's not the problem. See this from lscriptrefreference.pdf

"Invoking VMap() without a specific Vertex Map type
argument will cause VMap() to return the first Vertex Map it
encounters in the system."

Thanks

Reality3D
09-07-2003, 06:38 PM
I don't know why, but know it works as expected :?!
Thanks!

CGTalk Moderation
01-16-2006, 02: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.