<html> <head> <title>User's Guide: The Example Scripts</title> </head> <body bgcolor=white text=black link=blue vlink=navy alink=red> <TABLE WIDTH="100%"> <TR> <TH ALIGN="left" WIDTH="33%"><img SRC="Images/arrow-left.png" WIDTH="16" HEIGHT="16" ALIGN="top" ALT="Prev"></TH> <TH ALIGN="center" WIDTH="33%"><img SRC="Images/arrow-up.png" WIDTH="16" HEIGHT="16" ALIGN="top" ALT="Up"></TH> <TH ALIGN="right" WIDTH="33%"><img SRC="Images/arrow-right.png" WIDTH="16" HEIGHT="16" ALIGN="top" ALT="Next"></TH> </TR> <TR> <TD ALIGN="left"><A HREF="usersguide-6.html">Introduction</A></TD> <TD ALIGN="center"><A HREF="usersguide-5.html">User Scripting </A></TD> <TD ALIGN="right"><A HREF="usersguide-8.html">The Script Registry </A></TD> </TR> </TABLE> <HR NOSHADE> <H2><FONT face="Helvetica,Arial"><A NAME="N1"></A>The Example Scripts</font></H2> <P>Sketch comes with a few example scripts in the <tt>Scripts/</tt> directory. This directory works as a Python package, so to import a script, say <tt>abut_horizontal.py</tt> just execute <CODE>import Script.abut_horizontal</CODE> in <tt>userhooks.py</tt>.</P> <P>Each of the modules in <tt>Script/</tt> contains one script and registers this script when it is imported.</P> <HR NOSHADE> <TABLE WIDTH="100%"> <TR> <TD ALIGN="left"><A HREF="usersguide-6.html">Introduction</A></TD> <TD ALIGN="center"><A HREF="usersguide-5.html">User Scripting </A></TD> <TD ALIGN="right"><A HREF="usersguide-8.html">The Script Registry </A></TD> </TR> <TR> <TH ALIGN="left" WIDTH="33%"><img SRC="Images/arrow-left.png" WIDTH="16" HEIGHT="16" ALIGN="top" ALT="Prev"></TH> <TH ALIGN="center" WIDTH="33%"><img SRC="Images/arrow-up.png" WIDTH="16" HEIGHT="16" ALIGN="top" ALT="Up"></TH> <TH ALIGN="right" WIDTH="33%"><img SRC="Images/arrow-right.png" WIDTH="16" HEIGHT="16" ALIGN="top" ALT="Next"></TH> </TR> </TABLE> </body> </html>