Silly-V / Adobe-Illustrator

Some useful Adobe Illustrator scripts
411 stars 298 forks source link

VariableImporter not recognising images #78

Open Any-Stupid-Name opened 1 month ago

Any-Stupid-Name commented 1 month ago

Hi Some years back I made a set of templates using your excellent script. The client requested an update last week. I literally copied the folder, changed the necessary elements in the spreadsheet and image folders, as in the original. Made the CSV, tried to import it and it doesn't recognise the images when I do a test to preview it shows that one text and 4 images are not found. Screenshot 2024-07-16 at 2 44 27 PM

Screenshot 2024-07-16 at 2 45 37 PM

Screenshot 2024-07-16 at 2 46 21 PM Screenshot 2024-07-16 at 2 47 36 PM

As I said it's an exact copy of the working one, that still works, just in a different folder, and different images. The Variable names are the same, etc.

Any help Is it a bug with the new Illustrator?

Rob

hoochalaffa commented 1 month ago

When this happens to me it's because the / is supposed to be \ depending on the platform or the relative path setting is missing a / at the end or in the csv it has an extra / so when combined it has two // where it's supposed to be one.

The problem that I identified over time was my flawed strategy in finding and selecting the images to import. For one project early on, I had thousands of files I was trying to identify by property within complicated file structures "league / team / jersey / size / letter" and I was attempting to exactly target through excel the right structure. Eventually I started organizing a separate table of images with full file paths, extracting the attributes into columns, then from the table where I assembled the dataset find the right image with full path according to whatever attributes I was looking for.

If you can provide a sample set of images and your dataset, I am willing to test it out.

sample dataset.xlsx Screenshot 2024-07-16 091329 Screenshot 2024-07-16 090821 Screenshot 2024-07-16 091244 Screenshot 2024-07-16 090829

Any-Stupid-Name commented 1 month ago

I did a very simple test, and it still has errors. You can see the elements here: https://www.dropbox.com/scl/fo/v78ls5fn9j20tghbcswc3/ALHDSggYGRzNENR5-0QRYSY?rlkey=oza90ysv12qv2lafyqflwedd3&dl=0 I'm on a Mac, so not sure about the / \ issue. As I said, it worked perfectly fine 2 years ago.

Thanks

Rob

hoochalaffa commented 1 month ago

The images need to be linked in, not embedded. Video attached of my using the test files, didn't have to change the csv, only the ai file.

https://github.com/user-attachments/assets/699c251c-a8c9-46a9-9719-e93f8abd3fa0

Any-Stupid-Name commented 1 month ago

Super, I will give it a go!

Thanks

Rob

hoochalaffa commented 1 month ago

Did it work?

On Tue, Jul 16, 2024 at 11:00 AM Any-Stupid-Name @.***> wrote:

Super, I will give it a go!

Thanks

Rob

— Reply to this email directly, view it on GitHub https://github.com/Silly-V/Adobe-Illustrator/issues/78#issuecomment-2231137452, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL46CLALZ2HKOX7DRP3XJRTZMUYPHAVCNFSM6AAAAABK6NQH7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGEZTONBVGI . You are receiving this because you commented.Message ID: @.***>

Any-Stupid-Name commented 1 month ago

Did it work? On Tue, Jul 16, 2024 at 11:00 AM Any-Stupid-Name @.> wrote: Super, I will give it a go! Thanks Rob — Reply to this email directly, view it on GitHub <#78 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL46CLALZ2HKOX7DRP3XJRTZMUYPHAVCNFSM6AAAAABK6NQH7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGEZTONBVGI . You are receiving this because you commented.Message ID: @.>

Yep, thank you. I was an idiot not to think of that!

Rob