Comments (5)
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.
(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.
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.
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 :(
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.
@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)
- Variable Importer issues with special characters HOT 5
- Illustrator Version 25 on Mac OS Big Sur. HOT 3
- Illustrator 2021 quits unexpectedly HOT 4
- No Break support for importing Text Data
- Script not loading on Windows 11 Illustrator 2022 (26.02) 64-bit HOT 2
- Idea, sub folder scripts, Fold , Unfold HOT 2
- [VariableImporter.jsx] Not able to do the binding HOT 2
- Special Characters Breaking in Illustrator 2022
- File name doesn't change with export to PNG HOT 2
- Nothing import after clicking "Import Variables" button HOT 1
- Dataset file invalid HOT 1
- XML Syntax Error? HOT 1
- General question assing document color profile
- Variable Importer on the Apple M1 Chip.
- Error 23: ) does not have a value. (VariableImporter.jsx) HOT 1
- script timeout when loading heavy variable dataset
- Notes on image variables deleted
- Error on illustrator HOT 1
- great script needs some UX-usability changes though HOT 2
- Hangs on importing csv HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adobe-illustrator.