Questions tagged [sketch-3]

Sketch is a digital design application for Mac.

Sketch is an application built for modern graphic designers. Features a flexible workflow with support for Multiple Pages and Artboards and Symbols and Shared Styles to make reusing elements quick and easy.

94 questions
2
votes
2 answers

How to get a checkbox input in a Sketch plugin with Cocoascript?

I have a Sketch plugin that generates three different files based on the user's selection within an artboard. I want to allow the user to select which of the three files they actually want to have generated via checkboxes (instead of always…
Phil Sinatra
  • 419
  • 3
  • 11
2
votes
0 answers

How I can use my assets already exported from skech in my Android studio project

I've started developing my first Android application. I've designed the UI elements in sketch and after I've exported the assets to my project in Android Studio, I don't know how to use it, like how am I going to use the png-assets in the…
P.Kari
  • 21
  • 1
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
1 answer

Export ImageSets @2x and @3x sizes from Sketch to Xcode

Used following code to export the images, but as i am specifying file size as 40 80 120, for every image it is creating with same sizes. Should consider default image size and should create @2x and @3x images. function exportIcons() { …
2
votes
1 answer

How to import UI assets or layouts from Sketch 3 directly to Android Studio?

I have developed the UI and flows for an android app on Sketch 3. Now, I am developing that app. So, is there any way to directly exports the layouts or even individual assets to Android Studio?
Amit Tiwari
  • 294
  • 1
  • 4
  • 13
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
1 answer

My images look terrible on a image slider- what should I do to make my images look not stretched out?

It is the first time I have ever used image slider on a website, what should I do to make my images not look stretched out? The problem is not with my slider code, my question is if this is even possible to my images look great with this kind of…
user8796786
1
vote
1 answer

How can I put the value of a symbol's width/height into a text field on an artboard?

I'd like to take the width/height of an element or symbol in Sketch and have that value displayed in a Text element on an artboard. As you scale the element or symbol, the Text element is updated on the artboard with the correct value.
Alan Weibel
  • 392
  • 3
  • 11
1
vote
1 answer

Method for Adaptive Cards with Variable Height Text in Sketch

Has anyone managed to pin down a method for creating cards in Sketch which will play well with adaptive height text overrides? For example, a simple card with a thumbnail, title and excerpt might have a title which is 1, 2 or 3 lines and an excerpt…
Kevin Nugent
  • 277
  • 3
  • 15
1
vote
1 answer

How to generate correctly svg images

I am trying to generate an SVG format file for a logo but I don't know how to proceed. Usually when I need an svg format, I upload the image to Zeplin and it is auto generated. I tried to do the same thing this time but it tells me This layer…
Tom Bom
  • 1,589
  • 4
  • 15
  • 38
1
vote
1 answer

How return .zip file to .sketch file?

In version 43 of Sketch users can get content of the file by change .sketch extension on .zip and after unarchiving this. But how I can return .zip file to .sketch file? Now when I change extension I get an error after opening the file "The document…
Tony
  • 69
  • 5
1
vote
2 answers

Loading responsive header images for multiple devices and multiple px densities

I have 3 different layouts for a design I completed in Sketch. Each design has a header image as can be seen below: On different devices, I load a different image to keep the height in check and crop the image. When I export from Sketch I have the…
BugHunterUK
  • 8,346
  • 16
  • 65
  • 121