Guidelines to Lunacy community:
  • Always credit the author of the content you are sharing.

  • If your content is inspired or based on someone else's work, make sure to credit the author of the original.

  • Do not share inappropriate content (spam, pornography, illegal activity, graphic violence, etc.).

  • Pay respect to other users. We are building a welcoming community and will not tolerate any kind of hate speech, offensive language, harassment or threats.

  • Community admins retain full discretion to remove content that violates any of the above rules.
  • need script help: setting all hotspot targets to None (for all selected, and any nested layers)

    I'm working on a script to set all hotspot targets to None.

    I've got it working for normal layers and any nested layers in Groups or Artboards. It is simply a recursive function that bottoms-out at Hotspots, then sets their flow target to 'none'.

    I'm having trouble getting it to work with SymbolInstance . As far as i can tell, i've got to somehow get the available overrides, then somehow set an override with flow `targetId = "none"`. And also do this at all nested levels, which means somehow navigating all the nested instance?? As you can tell, i'm lost at this point, and the Sketch API docs aren't very helpful at this point.

    Anybody got advice, or tips, or even a pre-made script!!!

    Thanks

    Tagged:

    Comments

    Sign In or Register to comment.