Sg2.9
Problems with CurveLocation
Recent RSS
Problems with CurveLocation
From:  mikima
Date:  13. October 2010, 10:54

hi, i'm trying co create a CurveLocation, but i fail to do it.
The code is:

var loc = new CurveLocation(path, index, 0);

but the console throw me this error:
ReferenceError: "CurveLocation" is not defined.

Re: Problems with CurveLocation
From:  Jürg Lehni
Date:  14. October 2010, 12:05

That's an error at our end. The class is not exposed under its simple name right now. You can work around it by using com.scriptographer.ai.CurveLocation.

But I am wondering a bit why you want to create it directly? Usually one would just work with this class through values returned from path.getLocation(length), path.getLength(location), path.getPoint(length), path.split(location), pathItem.getIntersections(path), etc.

Re: Problems with CurveLocation
From:  mikima
Date:  18. October 2010, 23:02

probably i was working in the wrong way. anyway i found another solution for my problems.
many thanks for the quick help :)

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Stroke Input 09.03.09