Skip to content

Instantly share code, notes, and snippets.

View pratyushtewari's full-sized avatar
🎯
Focusing

Pratyush Tewari pratyushtewari

🎯
Focusing
View GitHub Profile
@import 'common.js'
var onRun = function(context) {
var sketch = context.api();
var doc = sketch.selectedDocument;
//get the name of the document and remove the file extension if there is one
var documentName = removeFileExtension(doc.sketchObject.displayName());