Recent RSS
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);
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.

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
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
Crumpler 23.07.10