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 .
×

PathEditor for Jumpgate?

I would really like to be able to use David M's  pathedit mod  to be able to edit dynamic lighting in Jumpgate. Jumpgate seems to use a different object for dynamic lighting lines. Any chance this is a simple fix, substituting the name of the new object type? The original code is here.
1786068056
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Valerie! PathSplitter has been updated for the current VTT, but not PathEditor, to my knowledge. You could try dropping them a DM to see if they are interested.
1786151052

Edited 1786151079
Thanks, keithcurtis, I'll get the updated  PathSplitter for now.
1786315108

Edited 1786315375
The Aaron
Roll20 Production Team
API Scripter
I've updated it for PathV2 on Jumpgate.&nbsp; It will update Path objects to PathV2 objects as you edit them.&nbsp; You can try it out and once you're satisfied, I'll see about getting it into the repo! Code:&nbsp;&nbsp; <a href="https://gist.github.com/shdwjk/af1464f77a475ee6f1fccec6d60cd368" rel="nofollow">https://gist.github.com/shdwjk/af1464f77a475ee6f1fccec6d60cd368</a> It handles PathV2 native Rectangle and Ellipse types (2 control points): There is also a new option under the Path Functions menu that will convert from that representation to a poly line you can That will let you make interesting shapes:
1788487165

Edited 1788487258
The Aaron, you are remarkable, thank you! This has allowed the shaping and splitting for most of my dynamic lighting lines, the multisegment ones. This is a great time saver. Is it possible to get it to work on rectangles? When I try, it says splitting is not available for rectangles and ellipses. It's so much easier to draw a rectangle and then add a door, rather than drawing around all the sides of the room. I don't remember whether the original worked on rectangles and ellipses. I used to use the DLEllipseDrawer, which I guess no longer functions, to transform ellipses into polygons, a little specialized but handy when you need a polygon. One other minor item, I have not been able to get the "simplify" and "to polyline" functions to work no matter what type of path I try, am I doing something wrong? -- I get&nbsp; No ability was found for %{PathEditPt|ToPolyline}&nbsp;
1788570883
The Aaron
Roll20 Production Team
API Scripter
To Polyline is supposed to convert a rectangle so it can be edited. I could just make it convert automatically when you try to edit it. &nbsp;That error is probably a bug where it doesn't add the ability to an existing character, I'll see about fixing that.&nbsp;
I see, that would also allow the split to work on a rectangle with an extra step or two. Thanks for working on this!
1788647006
The Aaron
Roll20 Production Team
API Scripter
Ok, I've updated the Gist with a fix for the To Polyline button:&nbsp; <a href="https://gist.github.com/shdwjk/af1464f77a475ee6f1fccec6d60cd368" rel="nofollow">https://gist.github.com/shdwjk/af1464f77a475ee6f1fccec6d60cd368</a> Give that a shot and let me know how it goes!
1788647319
The Aaron
Roll20 Production Team
API Scripter
Valerie M. said: I don't remember whether the original worked on rectangles and ellipses. I used to use the DLEllipseDrawer, which I guess no longer functions, to transform ellipses into polygons, a little specialized but handy when you need a polygon. The original version (or really, when operating on Legacy Path objects) allowed splitting rectangles and ellipses natively because they were still just lines.&nbsp; The new PathV2 objects store rectangles and ellipses as a the corner points of a bounding box that defines the shape.&nbsp; In the case of rectangles, these will be opposing corners. For ellipses, it will be the opposing corners of a box whose sides are tangent to 4 opposing points on the edge of the ellipse.&nbsp; Preserving that new shape lets you get nice smooth shapes fine tuned to your situation, and the To Polyline should let you now split them into a line that can be adapted to irregular shapes easily.
Perfect. That worked for the ellipse also. Thank you again!