marcisme / sketch-preview Goto Github PK
View Code? Open in Web Editor NEWSketch plugin to preview mockups in Skala Preview
License: MIT License
Sketch plugin to preview mockups in Skala Preview
License: MIT License
Hi, is there a way to change the custom keyboard command to run this plugin?
The very popular Invision/Craft plugin also uses "Cmd + P".
Changing the "Scale to explicit size" setting plugin always exports as the same size.
I'm using Skala Preview 2 (205), and Skala View 1.8 on an iPhone 5s.
This seems like an awesome plugin, but for me Cmd+P does not send the selected artboard to Skala, but always the first one (which is not selected). It works great with a slice or artboard named "Preview", but not without. Any hints on that?
Thanks a lot!
Press command+P can't send artboard to android phone , devices is connected . but command+c copy artboard is working .
sketch v3.5.2
skala preview v 0.8.0
skala for mac v2.0(207)
skala for android v2.0.3
skala is not working in android
I can drag images to Skala Preview; however, I can't use Command + P to preview artboards from sketch anymore. It gets stuck on a black 1x1 square (see screenshot).
I'm using the latest version, 207, and macOS High Sierra 10.13.2.
I forked this repo from another fork and attempted to set the filename to the name of the current artboard. After digging in for quite awhile I discovered that this line never seems to return anything:
[[doc currentPage] currentArtboard]
I actually got it to work one time, but then couldn't repro what I did. Reasonably sure it's a bug in the API. Have you seen this?
I haven't been able to get this to work fro Android for months. Don't really know why it took me this long to file an issue. I've asked dozens of colleagues (fellow designers at Facebook) if Preview works for them on Android, and the response has unilaterally been no. Any idea when we can expect an update? Or if our engineers can help?
Hi,
This no longer seems to be working in the latest beta of Sketch 3.3. I'm unable to launch Preview Setup, and previewing no longer seems to send anything to Skala.
Tried re-installing and still no luck. Are you experiencing the same issue?
Thanks!
Pierre
I was testing the plugin today, and found that even when I have slices named Preview
the plugin still exports the entire artboard to Skala Preview.
First off this is an amazing tool. Thank you for creating it. I was wondering if you have any plans to support Sketch 3.3? Thanks!
Sketch 3.4.4 & Scala View 2.0
Neither is detecting the other. thing helpful in the console. Is anyone else able to reproduce this?
Hi there!
This is a quick note to remind you that Sketch 45 will include a plugin update system.
It would be awesome if you could add support to it (it's really easy!) before Sketch 45 comes out. Ideally, you should release an update for your plugin while we're still in Sketch 44, so your users will have a nice & easy experience when 45 is released.
For more details, please check http://sketchplugins.com/d/229-updating-plugins and http://developer.sketchapp.com/introduction/updating-plugins/
Thanks in advance!
It seems Sketch natively hijacks the provided Preview shortcut (cmd+P). Is there a known workaround for this without having to go through the menu each time to refresh preview?
In addition to scaling to various iPhone sizes plus scaling to 0.5x – 4x, I would love to see the ability to scale to user-selectable px width. So something very similar to what you're able to do when exporting artboards manually from Sketch, you can either export e.g. at 2x or at 512px wide by entering "512w" in size-field.
This would help immensely in previewing things on Android devices with varying screen resolutions.
Hello.
I am using Sketch 49.3, scala view just installed as sketch preview plugin and nothing is working. On android it always shows no computer available. Also sketch show failed to open error when select any artboard.
How to fix this?
Hey Marc,
Sorry to kill your code, but there is no reason to write an install script. If you save the plugin in the .sketchplugin extension like mine Sketch will automatically move the plugin to it's proper spot when double-clicked.
Jake
Hey, first of all thanks for your awesome plugin.
I got it working, but Skala Preview was not really reliable or slow and I think it's odd to install a separate App just for a preview.
I was wondering what you think about getting rid of it? I think a webpage that just displays the image in fullscreen is more than enough for most use cases. It would also allow to expand the functionality much further if need.
After a few hours I got a quick spike working:
you can see the changes I made for the spike here: https://github.com/marcisme/sketch-preview/compare/master...p0wl:http-server?expand=1
notes: I had to switch back to png because most browsers don't render .tiff. Also: right now index.html has to be copied to the cache directory by hand, since I had no idea how/where to do it in the plugin.
The proposed solution could be an alternative or a replacement to Skala.
I'm still not quite sure if this is a good approach (especially "embedding" the webserver within the plugin), so I thought I'd ask if you would be willing to accept contributions in that direction.
Let me hear what you think!
I'm working at MDPI (1x) so when I use this plugin to preview on an XXHDPI (3x) screen, it's too small.
Sketch has the ability to export from MDPI to XXHDPI (3x), so what I do now is export an image at 3x. A folder action picks up the exported image and loads it in Skala Preview. This works pretty well but would love the ability to hit CMD+P in Sketch and have the plugin export at 3x before sending to Skala Preview.
I work in 1x in my artboards and set them to export 2x. How do I get this plugin to allow 2x exporting to Skala Preview?
"Preview Setup" is not working, OS X 10.10 is working...
Have Skala Preview installed but the plugin can no longer recognize it. Error message: "Failed to open preview file; Make sure 'Skala Preview' is installed.
OS: High Sierra 10.13.2
Sketch: 48.2
Skala Preview: 2.0 (207)
Appreciate the help!
Now I started using Nexus 6 as my design device and the max preview output size cannot send the full screen artboard to the phone. The artboard is sized at 360x640, so after 4X it is 1440x2560, which is the resolution of Nexus 6.
I know Sketch v3.2 isn't officially supported, but it was working fine until the update today. More of an FYI, but it would be nice since you can't open a file in an older version of Sketch once it's been converted to be compatible with v3.2.
This probably isn't a surprise but thought I would post: I have to run an older version of Sketch for work (long story) so just thought I would test the live feature. It doesn't update automatically but the rest of the plugin still works great.
Error message
failed to open preview file ;make sure skala preview is installed
I have 2 sketch files open, and I'm using the plugin. It was working just fine, but noticed today that it's loading an artboard from my other file for some reason, and not from the artboard I'm currently on?
Since Sketch 49 (up until 49.2), there's been an odd colour conversion issue. This is what would happen: https://d.pr/i/Mwigd
Last night, Sketch updated to 49.3 and fixed this bug.
Unfortunately, the issue still occurs with Skala Preview. See example: https://d.pr/i/icetna
When I drag images directly onto Skala it's correct, but when the Sketch Preview pushes the artboard to Skala Preview, the colours are still incorrect.
Have you run into this? …Hopefully this makes sense…!
Hi, I have a problem with large height artboard, when I preview artboard it shows me black screen, if I reduce artboard height to smaller height it's working fine.
I get this black screen on Skala View (android), on Skala Preview I see the image which should previewed.
Kévin on Twitter reported:
Awesome plugin but since live updates Sketch crash a lot… :(
Can you answer any of the questions below? This will help me reproduce the problem.
It seems like it would make sense to set device scaling to scale the artboard's width to match device size (e.g. 375pt to 1242pt for 6+) and scale the height relative to actual height of the artboard to accommodate artboards that exceed the device screen height.
Is it working for sketch 3.4.2?
I'm trying to preview a artboard but it is failing.
Whenever I use this (wonderful) plugin, the active app on my mac switches to Skala Preview. This makes it hard to quickly look at design iterations while working. If there's any way to send an artboard to Skala without taking me out of Sketch, that'd be great.
Hi,
I used to use your amazing Skala application on my phone and sketch. But it seems that Sketch 3.5 (I guess) makes skala view not recognize my macbook pro : "no computer available". It worked before the update even if I had to kill and relaunch the app to recognize my computer again.
The two devices are on the same wifi network. I work in a pretty large company and I have asked to the service in charge of network if they have changed some parameters on the network. They answer me no.
I have tried to reset the authorizations, but nothing changed.
Technical informations : I have a 5.1 Android phone with Skala View 2.0.3 and Sketch 3.5
Additional information : I am in the same position as : #33
Any Idea ? Thank you in advance.
Bertrand
I've made these steps:
Preview.jstalk
to ~/Library/Application support/com.bohemiancoding.sketch3/plugins
Hi!
This great plugin doesn't work when I have two Sketch windows opened in 3.4 version.
Thanks!
Thanks for a great plugin!
In Sketch 49 they added Prototyping where "Preview Prototype..." has stolen the keyboard shortcut for Sketch Preview. I use this like every other minute 😆
Mac OSX Yosemite 10.10.4
Skala Preview 2.0
Skala View Android 1.2.2
Sketch 3.3.3 (12072)
Sketch Preview v0.8.0
Connects to Android app successfully, but as soon as this happens the Android app crashes. Console gives me an error:
CoreServicesUIAgent: Error -60005 creating authorization
Can't get it to display on Android device without the app crashing at all. Any idea? Thanks for working on this!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.