Closed bukinoshita closed 6 years ago
2nd that. Same issue.
Yes this definitely isn't generating anything in sketch v50. Hopefully this can be resolved soon. Thanks.
I will look into this today or tomorrow. Sorry for the delay guys!
@gokul0 Looks like this part of the code is not working in Sketch v50.
var path = NSBezierPath.bezierPath(); path.moveToPoint(NSMakePoint(x1, y1)); path.lineToPoint(NSMakePoint(x4, y4)); path.closePath(); var shape = MSShapeGroup.shapeWithBezierPath(path); var border = shape.style().addStylePartOfType(0);
If you have time, can you please look into this? Cheers!
Ok sures, I ll look into it this week.
@gokul0 The error I am getting is
-[NSBezierPath transformedPathUsingAffineTransform:]: unrecognized selector sent to instance 0x600000321a40
Any clue how to fix this?
From what I just saw, I think it pops up because we call a method that does not exist on the object. Will have to look into it. We may need to check if
bezierPath()
Function exists on the object in the first place
Thanks Gokul. The bug is now fixed in the latest version. Sorry for the inconvenience guys!
@sureskumar What was the issue?
Replacing this
var shape = MSShapeGroup.shapeWithBezierPath(path);
with this
var newBezier = MSPath.pathWithBezierPath(path);
var shape = MSShapeGroup.shapeWithBezierPath(newBezier);
solved it :)
I saw that in the commit. But why did we have to make this change? The old method invocation of
bezierPath ()
on the
NSBezierPath
object was removed or deprecated?
To be honest, I dont understand code in that level of depth :) I saw another plugin working in sketch 50 using this and I tried it :)
No probs, why is this now reopened?
tried latest version and it's working, I'm going to close this. Thanks
Can't make this work with Sketch 49. Any updates?
I'm using sketch version 50, would like to know if it works on v50. I try to generate the isometric but nothing happens.