Create shape tool add multiple shapes same vectors

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Create shape tool add multiple shapes same vectors

Post by heyvern »

I wanted to mod the create shape tool so I can add multiple shapes to the same points, but I am having trouble with figuring out where in the script it replaces the existing shapes instead of simply adding additional shapes. Is this a functionality completely removed from the app or is it possible to modify the create shape tool to do this?

The functionality I want is to be able to add as many shapes as I want to the same points. This works for strokes and unclosed vectors but not for closed vectors and fills.
User avatar
synthsin75
Posts: 10269
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Create shape tool add multiple shapes same vectors

Post by synthsin75 »

I think I tried that, and if I remember correctly, this limitation is in the app, not the tool. What you could try is to create a stroke-only shape first and then enable the fill.
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Re: Create shape tool add multiple shapes same vectors

Post by heyvern »

Yeah, that won't work. The multiple stroke shape only works on unclosed vectors. If you try to add multiple stroke shapes to a closed vector they just get replaced. Thanks for the info though. I thought it might be only in the tool.

I just thought of a possible way around this. You can have multiple shapes on the same points but the "new" shape has to have a different set of points than the existing shape. That's how I have been doing it "by hand" but it is a pain. I may try and script a tool that creates new points adds them to the new shape before creation, creates the shape, then deletes the extra points.
Post Reply