Sg2.9
HitTest.TEST_PATHS
Recent RSS
HitTest.TEST_PATHS
Date:  9. September 2006, 22:23

Is it me or does HitTest.TEST_PATHS only return a HitTest when I click on an anchor point?
It returns null when I click on a path...

function onMouseDown(event){
	var test = activeDocument.hitTest(event.point,HitTest.TEST_PATHS);
	print(test);
}
Re: HitTest.TEST_PATHS
From:  Jürg Lehni
Date:  30. September 2006, 00:06

Fixed in the upcoming version 2.0.018.

This one is very weird: Illustrator seems not to support the internal HitTest.TEST_PATHS request. It seems to do the same as HitTest.TEST_POINTS. To simulate HitTest.TEST_PATHS, I am now using HitTest.TEST_ALL_EXCEPT_FILLS and filtering out the results. This seems to be as close as we can get.

Another error was fixed too: When hitting on a center point, HitTest.HIT_FILL is returned (even for unfilled art), instead of HitTest.HIT_CENTER. This is now handled especially and manually checked against center, to catch that case and fix it.

Scripts
26.04.12, 16:05
19.04.12, 16:54
07.04.12, 16:17
05.04.12, 00:49
15.03.12, 13:02
14.02.12, 19:00
Posts
21.05.12, 22:40
20.05.12, 20:22
19.05.12, 21:38
19.05.12, 13:43
15.05.12, 02:38
15.05.12, 01:51
Script of the Moment
Shape Contours V2 26.04.12
Donation

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

Thank you!