I am a student trying to teach myself how to program in Lscript. I am currently trying to create a script that performs a bevels on a selected polygon so that i can streamline the work flow on a particular project that i am working on. However, I having trouble with the syntax. Bellow is the code that I created if someone could help me it would be great. I realy want to learn Lscript but am finding it difficult to find info.
//-----------------------------------------
// LScript Modeler template
//
@version 2.2
@warnings
@script modeler
// global values go here
main
{
main
{
selmode(USER);
editbegin();
(Polys) = polycount();
if(Polys > 1) error("Please pick 1 polygon");
reqend();
status bevel(0mm, 1mm);
}
if some one could point out the syntax errors it would be great. Thanks for the help.
