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
08.01.12, 08:40
08.01.12, 08:18
04.01.12, 11:04
28.12.11, 10:42
16.11.11, 09:40
28.10.11, 10:47
Posts
06.02.12, 16:27
04.02.12, 16:55
04.02.12, 16:32
04.02.12, 12:49
03.02.12, 22:33
03.02.12, 17:24
Script of the Moment
Grid Generator 04.01.12
Donation

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

Thank you!