Sg2.5
how to use pathfinder
Recent RSS
how to use pathfinder
From:  gs
Date:  20. October 2007, 11:54

i try to write a script using the pathfinder divide function (i guess it should be the divide function couldnt test...).

but i dont know how to use this pathfinder functions, there seems to be no pathfinder object, so the pathfinder-functions have to be 'standalone-functions' and not methods to an object, right (seems not really logically to me...)? but when i try to call the divide function standalone it tells me:

ReferenceError: "divide" is not defined.
[...]

If someone knows how to use this, i would appreciate his advice...

tnx in advance
g.s.

Re: how to use pathfinder
Date:  24. April 2008, 12:26

*push*
(i know, 'post pushing' ist not very gentlemanly, but...)

Re: how to use pathfinder
Date:  28. April 2008, 19:57

sorry for the late reply..

this should work:

var circle1 = document.createCircle(10, 10, 10);
var circle2 = document.createCircle(5, 5, 10);

Pathfinder.divide([circle1, circle2]);
Re: how to use pathfinder
From:  mr.t
Date:  29. April 2008, 19:09

thank you jonathan.

gs will be very happy when he gets back from japan!

greets
mr. t, friend of gs

Scripts
28.02.10, 19:29
16.06.09, 04:46
24.05.09, 14:05
10.03.09, 01:39
10.03.09, 00:15
09.03.09, 06:33
Posts
11.03.10, 09:40
10.03.10, 21:00
09.03.10, 00:51
07.03.10, 14:47
05.03.10, 20:28
05.03.10, 11:25
Example of the Moment
IN FOCUS 20.04.08
Donation

If you use Scriptographer regularly or for commercial purposes, please consider making a donation via PayPal:

Thank you!