menu
Channels
Team

How to make overrides in INSTANCE?

May 13, 2019 at 1:01pm

How to make overrides in INSTANCE?

May 13, 2019 at 1:01pm
I can't change node.characters of TEXT when i get the child of INSTANCE

May 13, 2019 at 6:03pm
Can you show me an example? I've just tested setting node.characters on an instance text and it worked. Try selecting an instance text layer and do this: figmaPlus.currentPage.selection[0].characters = 'Hello'
Edited
  • reply
  • like

May 14, 2019 at 1:42am
Thanks for your prompt reply! I tried to run this selecting instance of button component (bg+text) figmaPlus.currentPage.selection[0].children[1].characters = 'button'
Edited
  • reply
  • like
  • reply
  • like
getProperties() method seems to change current selection.
For example. I select the INSTANCE of button component with UI which contains the background and text layers.
Next I execute the code figmaPlus.currentPage.selection[0].children[0].getProperties();
Figma now highlights the child layer with index 0, but not the parent instance. Selection changed
Edited
  • reply
  • like