Have "some" programming experience, but new to js starting...today. Was just playing around with drawing shapes via api script. Stealing code from the forums like nobody's business. While not my end goal, the code below is intended to draw a simple red line on the DL layer adjacent to a selected token. It does not return any errors to the log, but doesn't seem to be doing anything except returning the chat message at the end. I wouldn't be surprised if I'm messing up the _path property, seeing as how I was basically Googling JSON about an hour minutes ago (ha!), but any insight would be appreciated. Also, what is the significance of "M" and "L" in the path? Are those just arbitrary identifiers for points, or do they have some built-in meaning? TIA! on("ready",function() { on("chat:message",function(msg){ if(msg.type=="api" && msg.content.indexOf("!dldraw")==0) { var selected = msg.selected; if (selected===undefined) { sendChat("API","You must first select a token"); return; } var tok = getObj("graphic",selected[0]._id); let thePath = [["M", 0, 0],["L", 0, 70]] let pathstring=JSON.stringify(thePath); createObj("path", { pageid: tok.pageid, path: pathstring, fill: "transparent", stroke: "#ff0000", layer: "walls", stroke_width: 5, width: 70, height: 70, left: tok.get("left"), top: tok.get("top"), }); sendChat(tok.get("name"),"DL object created"); } }); });