PDA

View Full Version : A Few LScript Questions



tcoursey
10-17-2011, 10:23 AM
I have a few ideas for some very quick lscripts but don't know where to start.

:lwicon:Would like to select a polygon and then have LScript command select all other polys based on that polys selected surface.

:lwicon:Select a poly and then paint that surface to other polys by selecting other polys. Basically this would allow me to select one poly with the surface I want on other polys, then begin selecting others that need that surface.

I have others, but plugin searches have not turned anything up, and I'm thinking these would be pretty simple in LScript. Anyone have any thoughts on what to do? Reference material, tutorials...or if it's real simple a file you could send me? Thanks.

TripD
10-19-2011, 10:29 AM
Hi,

Found an old lscript written by Carl Merritt. Perhaps this will help with atleast one of your questions.

//-----------------------------------------
// SelBySurface.ls
// Carl Merritt, [email protected]
// will select polygons of like surface name,
// based upon last polygon selected.
//

@version 2.2
@warnings
@script modeler

// global values go here

main
{
selmode(USER);
polyCount = polycount();
editbegin();
polyfo = polyinfo(polygons[polyCount[1]]);
editend();

selpolygon(SET,SURFACE,polyfo[1]);


}