Anim8or Community

General Category => ASL Scripts => Topic started by: Simon on January 05, 2008, 01:31:17 am

Title: Drawing Lines
Post by: Simon on January 05, 2008, 01:31:17 am
I was wondering,
Is it possible to draw lines using ASL?
If so,
After drawing say, 5 and they are connected can you fill in the surface?
Title: Re: Drawing Lines
Post by: Nate_Bro on January 05, 2008, 06:04:06 am
I belive you would have to set the points, then create the faces.

if you want just a line, you can create the points then create edges, but if you want faces, just points and faces should work fine.
Title: Re: Drawing Lines
Post by: Simon on January 11, 2008, 02:57:36 am
Ok that works...
Now, if I wanted to select points and then click a button.
How do I find out which points are selected?
Title: Re: Drawing Lines
Post by: Claude on January 11, 2008, 05:16:22 am
Here's an example not including the variable declaration and initialization:

Code: [Select]
             /* Lets search for the selected point */
              for $ii = 0 to $numPoints - 1 do
              {
                 if ($mdata.GetPointSelected($ii) == 1  )
                 {
                   /* Do whatever you want if the point is selected */
                 }
              }

Title: Re: Drawing Lines
Post by: Simon on January 14, 2008, 12:31:25 am
Thanks, That is exactly what I needed.