Defining transforms

46 views
Skip to first unread message

crobar

unread,
Dec 8, 2011, 1:33:59 PM12/8/11
to Sketch Users
Hello,

I am attempting to define a tranform for later use:

def barrowT { rotate(360 / (circ_segs-1), (rI,yI,0), [0,0,1]) }

This code however gives me a syntax error, can anyone suggest what I
might be doing wrong?

Thanks,

Richard

p.s. I've been using sketch for a few years now and it's really great,
thanks!

Gene

unread,
Dec 10, 2011, 5:02:17 PM12/10/11
to Sketch Users
Just leave out the braces { } and you should be fine.

Braces enclose blocks of drawable items. You can't use them in any
kind of affine arithmetic.

Thanks,
Gene

Reply all
Reply to author
Forward
0 new messages