Questions tagged [sketchapp]

Digital design application for Mac, produced by Bohemian Coding.

117 questions
2
votes
1 answer

How to convert this CocoaScript “braces notation” to JavaScript “dot notation” (sketch)?

How to convert these CocoaScript “braces notation” to JavaScript “dot notation” syntax? [fileManager createDirectoryAtPath: tmpFolder withIntermediateDirectories: true attributes: nil error: nil]; and [doc saveArtboardOrSlice: artboard toFile:…
Sakari Niittymaa
  • 403
  • 1
  • 3
  • 12
2
votes
2 answers

Exporting for All iPhones in Sketch 3

There seems to be a confusion for me regarding Sketch 3 workflow and exporting Artboards for all iPhones in Sketch 3. I understand that 1x resolution is for iPhone 3GS and below, 2x for iPhone 4/4S/5/5S/6/6S and 3x is for 6Plus. So does that mean…
Choovski
  • 21
  • 4
2
votes
1 answer

RGB values from NSColor

I'm attempting to read an osx colorlist (.clr), and having trouble interpreting the values of colors. context: I'm writing a color palette plugin for a design program called Sketch. The plugins are written in cocoascript, which is a bridge between…
2
votes
0 answers

Cocoa script Multithreading

I need to run a long running loop in a background thread, and update the UI once a while on the main thread. How would I be able to do this with Cocoa script ? I am trying to create a Sketch plugin. Thank you.
js123
  • 96
  • 2
  • 8
1
vote
1 answer

How to convert Figma to Sketch files?

I need to convert figma files (.fig) to sketch files (.sketch). I am looking fo a free option (convertify and magicul are too expensive for me). The files are not too big. Does anyone know a tool / app / plugin / figma export workflow I could…
Anna Mei
  • 89
  • 3
  • 5
1
vote
0 answers

MOJavaScriptException: TypeError: undefined is not an object (evaluating 'exports.Headers = global.Headers')

I've encounted an error of MOJavaScriptException: TypeError: undefined is not an object (evaluating 'exports.Headers = global.Headers') while trying to import discord-rpc to my Sketch Plugin project, couldn't Googled anything related online. Full…
1
vote
2 answers

Sketch json output to html

I have a quite simple question, does anybody know if there is some library out there for JS that could take in Sketch json output and give me back html in a form that I could render directly in browser (so not in form of html/css files but rather as…
Kapaacius
  • 655
  • 4
  • 10
  • 22
1
vote
1 answer

Identifying HTML Elements from Sketch design

Front-End dev here, forgive me if this has already been asked before. When coding HTML/CSS from a sketch design is there a way to identify what kind of html element corresponds to the sketch component? When I export to HTML using Anima or similar,…
verynear
  • 11
  • 5
1
vote
1 answer

Implement shadow on the object from my predefine shadows in Sketch

I am not pro in javascript but I want to implement shadow on the object from my predefine shadows but the code is not working: var selection = context.selection; for (var i=0; i < selection.count(); i++){ var layer =…
sandeep
  • 91,313
  • 23
  • 137
  • 155
1
vote
2 answers

Exporting from Sketch to SVG isn't allowing import into android studio

I have a PNG that I made in photoshop using a PNG of an icon and some text. I'm having trouble exporting this from either Sketch or Photoshop as an SVG when trying to import I'm getting Error: No vector content found when getting the SVG direct…
Daniel Sims
  • 531
  • 4
  • 21
1
vote
0 answers

Sub-layout for the nested elements

Is there a way to show a layout for the nested element? I know it is possible to show the layout for whole artboard, but I can not found a way to show the layout for a specific rectangle. For example, I make up html with Bootstrap and I have the…
1
vote
2 answers

Converting Sketch Designs to React Native - tool or coding shop?

I'm working with a couple friends (very experienced in other frameworks) on a new React Native app. We are trying to establish a good workflow for going from Sketch (or another modern design tool) into RN so that our designer can hand off to our…
nicholas
  • 111
  • 4
1
vote
0 answers

HTML Sketchapp - how to use it properly after intall

Trying to use the HTML Sketchapp, specifically turning HTML elements into Sketch symbols ( https://github.com/brainly/html-sketchapp-style-guide ). I installed the npm package already. I'm just confused if I'm suppose to run the following command…
user2428993
  • 323
  • 1
  • 10
1
vote
3 answers

How to get Gradient Color Value in HTML from a Image

Can anyone explain how to get gradient color value from the image in terms of HTML
Shubham Jaiswal
  • 108
  • 1
  • 9
1
vote
3 answers

Cant change font face in Sketch

I've been using Sketch for years now and of course I love it. Recently tho I've come across a strange bug. When I have a font layer selected I can't change the font face. It doesn't matter what font I have selected. The fonts are installed. I have…