![]() Set the pattern to ‘Repeat’ or ‘Repeat, stretched’. Choose ‘Pattern along path’ and click the ‘Link to path in clipboard’ to assign the grass. Because of the manual x,y offsets for 2 digit numbers and greater, you might need additional logic to figure out the 'orientation' of a parking spot and how to correctly space the different paths of individual digits from the first one. Use the pen tool to create a line/ path for the pattern. You do not specify what orientation the parking spots are in or if they are even on curved set-ups.The loop will need to split up the string of parking spots with 2 digits or more and the appropriate spacing between the first digit and subsequent digits might be tricky this will heavily depend on the fonts you are using.I can foresee some complications that you will have to deal with, and good luck with those. ![]() Loop through all the s of the parking spots and replace them with a.Inset, Outset, Dynamic Offset applied to a text object In 0.92 you could apply these tools directly to a text object, and it would be implicitly converted to a single path and the tool's effect applied. For digits 0-9 append to the SVG file an appropriate section defining the path information for each digit. For 1.0 the only workflow I've found is to use Path > Object to Path, then Object > Ungroup, then Path > Union (or Combine).Whether in Inkscape or by scripting, convert all parking spot text into paths. ![]() In a table store the x & y coordinates of the text element of each parking spot.Inkscape only needs unique IDs, it generates non-descriptive IDs but will respect and not change IDs created by other software or manually created or changed by the user. Loop through all the text elements in the SVG's xml and for the ones that have numeric text (the parking spots, you do not specify if there is more text in your svg), change the id automatically created by Inkscape to a string with that parking spot's number. Other (settings) files get changed the moment you save a setting or preset in Illustrator, but might not be read immediately after you edit the file externally.Feel free to use your preferred language and environment, this is just a starting point for a logic which should give you what you're looking for. ![]() Here at a very high level is what your script should do. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |