Comments (4)
Hi @patrickrushton, thanks for the feedback.
"Doesn't work all the time with team libraries" is part of know problems, but idk how to fix it. Let me know if you have any insight :)
from figma-reattache-instance.
Hi @patrickrushton, it's hard to say what issue could be without more details. Could you open console (Plugins → Development → Open Console) and send a screenshot of what it prints when running the plugin? But general slowness is expected when processing large amounts of objects.
Other than that, check out Master plugin. (I contributed a part of the code from Master that keeps overrides to this plugin.) It works slightly differently but it allows you to do basically the same things and even more. It's well-optimized so it should work even with complex components from the library.
from figma-reattache-instance.
Thanks @zyumbik I just bought 3 licenses of Master ;-)
As for Reattach Instance - it still has a use case for me that's not covered by Master which is to reattach an instance without having a target handy to relink to. I end up with un-attached instances all the time when copying an instance that was nested inside another library component. In this case, I just want to quickly reattach to the main component it (while maintaining overrides) without having to select a target.
This is the console log that I'm seeing when I try to do that:
Console was cleared
figma_app.ba2bcaff1499c83f84715f0ef4c9ba32.min.js:996 ------- Clearing and silencing console.log from Figma -------
jsvm-cpp.js.br:8 unhandled promise rejection: Error: in createInstance: Can't create instance of nested main component. Please call figma.importComponentByKeyAsync(symbol.key) and await the result. The resulting component can be using createInstance().
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at (PLUGIN_5_SOURCE:37)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at next (native)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at (PLUGIN_5_SOURCE:6)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at Promise (native)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at (PLUGIN_5_SOURCE:7)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at main (PLUGIN_5_SOURCE:58)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at (PLUGIN_5_SOURCE:287)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at call (native)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8 at (PLUGIN_5_SOURCE:292)
printChar @ jsvm-cpp.js.br:8
jsvm-cpp.js.br:8
printChar @ jsvm-cpp.js.br:8
from figma-reattache-instance.
Wow thanks a lot! <3
As for the error, I understand the issue and will try to fix tomorrow.
from figma-reattache-instance.
Related Issues (13)
- Improve code documentation by adding comments
- Add more user-friendly messages
- Maintenance of the project HOT 10
- Color bug HOT 1
- Color bug HOT 1
- prototype link lost
- reattach takes forever (only partial reattachment) HOT 12
- Relink to new master?
- After reattaching the instances moves HOT 3
- Add UI to manually select a component to reattach to HOT 12
- Border width override isn't applied upon reattachment. HOT 1
- Features suggestion
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 figma-reattache-instance.