Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Eraser

I'm sure its been suggested before, but can we have a simple eraser tool? The select and delete function works to a degree, but I would think It'd be a quick easy fix that would making GMing quite a bit easier.
1383240099
Pat S.
Forum Champion
Sheet Author
the line tool is vector based not raster and you can't use an eraser on it. That's what the reply has been for the many requests for an eraser.
Ok, I figured there must have been something.
1383241795
Pat S.
Forum Champion
Sheet Author
It would be nice to have an eraser but at this time, I haven't heard anything mentioned about it on the mentor boards. Every time it has been asked about, what I posted above has been the reply more or less.
Yeah, I suppose that would be the case. I imagine it'd take quite a bit of time to go back and rewrite the existing features so that an eraser could be added, as nice as it would be.
1383246358
Pat S.
Forum Champion
Sheet Author
yup
1383266158
Lithl
Pro
Sheet Author
API Scripter
On the other hand, if the _path property of Path object were made writable, an API script could potentially be written to fake an eraser. Such a script wouldn't work for filled shapes, but splitting (or outright deleting) path segments could be possible, were it an editable property.
1383269817
Pat S.
Forum Champion
Sheet Author
Is that possible to split the polyline like that? I thought the _path was the total of the line and you couldn't break it into seperate sections.
1383375478
Lithl
Pro
Sheet Author
API Scripter
Polygons (regtangles, lines, and polylines) are stored as a series of points, from which lines are drawn. "Erasing" a segment in whole or in part is thus calculable, although depending on exactly how the "M" point is treated, it may also require separating points into a new path object, rather than solely editing the existing object. Circles and ovals are stored as a series of points and Bézier control points (one point, two control points, one point, etc.); erasing this would be more complicated, but similar in concept to erasing parts of a polygon. The Bézier curves in the circles and ovals are quadratic. Freehand drawings are stored as an alternating series of points and Bézier control points (one point, one control point, one point, etc.); erasing this would in theory be similar to erasing parts of a circle or oval, but because the lengths of each curve are so short, most erasing operations would delete the entire segment, rather than splitting it. The Bézier curves in the freehand drawings are cubic. Of course, none of this can happen unless _path becomes an editable property. Even then, we'd probably also need createObj to support paths as well, depending on how "M" points on the _path are handled.
1383396661
Pat S.
Forum Champion
Sheet Author
I understand pieces of what you were saying. I'm learning quadratic math and stuff in college right now.