Git Product home page Git Product logo

Comments (5)

hermify avatar hermify commented on May 17, 2024 1

I just corrected it for myself manually by changing line 1966
from

this.namedArtCollection = this.getAllDocumentNamedItems(doc, AUTOBINDING[SETTINGS.selectedAutobinding]);

to

` this.namedArtCollection = this.getAllDocumentNamedItems(doc.layers.getByName('var'), AUTOBINDING[SETTINGS.selectedAutobinding]);

to only take layer "var".
Would be great to have this as a setting in backend to choose, which layers shall be taken for searching for objects for autobinding. Weather "whole document, layer "x"....
`

from adobe-illustrator.

Silly-V avatar Silly-V commented on May 17, 2024

(If i run test --> Art Bindings --> Refresh test, it takes very long, too. But my csv-file has no art bindings!)

Do you mean your csv has no header? Your csv has no art bindings, that's something that happens inside of Illustrator.

Yes - when doing art bindings as it is allowed to apply one variable to multiple items. the binding algorithm goes through every single item in your document which will definitely take a long time in cases where there are a lot of paths.

If you are not concerned with automatically binding variables, just use no autobinding option.

from adobe-illustrator.

cedriclalouette avatar cedriclalouette commented on May 17, 2024

Hello, I am using this wonderful script for some times on the same document and now that all my variables are set in my .csv, when I try to load the .csv with all my variables (more than 700) Illustrator crashes with the message "The operation cannot complete because of an unknown error. []". I think it is related to the memory usage because when the message appears Illustrator takes a very high memory usage (more than 23GB) which makes my computer fully loaded. When I had only 500 variables it was ok (it took a long time to load data, but it was ok). Now that my .csv is complete I can't load it :(

from adobe-illustrator.

cedriclalouette avatar cedriclalouette commented on May 17, 2024

Hello @hermify , and thank you for your feedback. I tried to adjust the script the way you did but in my case I got an error message :(
hermify

If I click "Yes" I go all variables in my document very quickly but none of them is binded with my layers.

Any idea ?

from adobe-illustrator.

Silly-V avatar Silly-V commented on May 17, 2024

@hermify : the idea is good, but you must be aware that in Illustrator scripting, it will only choose the 1-level-nested objects in your chosen layer. This would be advantageous in a document with a multitude of art but only some top-level art in a layer is desired to be variable. However, if your art inside the layer has groups or nested layers and then in those structures you'd like to maintain a variable object, it will ignore those items which are not top-level inside their layer!
This is still a good idea if I can find a way to put it into the options box and give users the heads-up warning. But still, this shall invite other users to ask for multiple layers to choose from and support for nested items, etc.

And, my friends, this is why I'm going to start on a pro-level extension of the VariableImporter where UI space is much more available and malleable for various user requests.

from adobe-illustrator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.