[Jongware] wrote:
After wrestling for about 2 hours with Illustrator's immensely frustratingly limited Javascript, I'm officially giving up on this.
hahaha...sorry about that Jongware, I know, it's not funny...are you implying you can actually do stuff with ID scripting?
Instead I got an entirely new insight. Guess what it was.
![]()
![]()
![]()
#@%& Illustrator Scripting?
Message was edited by: CarlosCanto
CarlosCanto wrote:
...are you implying you can actually do stuff with ID scripting?
I sure can. You'll be amazed, but ...
Instead I got an entirely new insight. Guess what it was.
![]()
![]()
![]()
#@%& Illustrator Scripting?
right! ... so you're going to have to use InDesign to use that forthcoming Amazing Script.
DE,
In a stump chart case like this it would seem appropriate to use the pith as the starting point of the chart.
The following images show a relatively simple way of making a quite accurate division in connexion with a stump that has a strongly asymmetric shape with reaction wood.
Always keep a copy of the artwork at different stages.
I) shows the stump, the stroke/nofill annual rings and the pith as a group kept on top and (mostly) locked in the following steps, the stroked and filled (outer) shape of the stump being worked with.
II) shows a division aid in the form of a 360 (1 degrees) pie chart, made from a Polar grid with 0 Concentric Dividers and 360 Radial Dividers: the Radial Dividers are extended past the outer circle, and the pie pieces are formed by Pathfinder>Divide.
III) shows the division aid centred over the pith.
IV) shows the stump moved on top of the division aid, its fill covering the inner part.
V) shows the result of Object>Path>Divide Objects Below where the stump has cut the division aid.
VI) shows the result when the outlying superfluous parts of the division aid have been deleted.
Now the division aid consists of 360 closed paths, each spanning 1 degree, all starting/meeting at the pith. These should be Ungrouped.
At any time up to this point, the total stump area may be determined, for older versions the free Telegraphics PathArea Filter may be used (available at http://www.telegraphics.com.au/sw/browse/Filters).
Now it is easy to select a number of closed paths of the division aid and use the PathArea filter (or whatever) to determine the proportion of the total area (simple division), to adjust by adding/removing and/or undoing/redoing, and then to Pathfinder>Unite (or whatever it is called in the version in question) to create a piece of the pie, and finally to increase the Stroke Weight as desired.
VII) shows the result of creating the top piece of 11%.
VIII) shows the result of creating all the pieces (made clockwise one at a time), the three 11% pieces (the first one and the two last ones) chosen to be alike, thus showing the great difference(s) in angles for identical areas.
This procedure leads to a great number of Anchor Points in the bark; it is possible to get rid of them by scaling the pieces with the pith as the key object, placing the original stump path on top, and Object>Path>Divide Objects Below, then delete the outlying parts.
It is also possible to move the pieces apart, away from the pith, if there is a wish to hurt the stump (even more).
The accuracy is well within 0.1% of the total stump area for the least accurate pieces.
North America
Europe, Middle East and Africa
Asia Pacific