Sg2.8
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
23.07.10, 01:02
08.06.10, 20:05
08.05.10, 12:28
18.04.10, 06:57
29.03.10, 18:20
29.03.10, 15:32
Posts
Script of the Moment
Object Raster 29.06.06
Donation

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

Thank you!