Page 2 of 3

Re: *NEW* Stacked shape tools

Posted: Fri Jul 12, 2019 4:50 pm
by alanthebox
So if I understand all this correctly, all the elements of this lamp exist on a single vector layer and the different shapes all share the same intersecting points, making any movement of those points apply more evenly to the combined shape?

I'm not sure why this is such a difficult concept for me to grasp! I often have overlapping shapes that I usually manipulate with the magnet tool (turning on the "selected points only" option when needed).

I appreciate the time everyone has taken to explain the application of this script!

Re: *NEW* Stacked shape tools

Posted: Thu Mar 24, 2022 12:40 pm
by Greenlaw
Hi Wes,

I popped in here because I needed a refresher on how to use this tool, and I noticed the download link no longer works.

I have the script so no problem here but I thought you'd like to know.

D.

Re: *NEW* Stacked shape tools

Posted: Thu Mar 24, 2022 4:07 pm
by synthsin75
Thanks for the heads up. I've updated the link.

Re: *NEW* Stacked shape tools

Posted: Wed Apr 13, 2022 2:20 pm
by Greenlaw
Hi Wes. Sorry, I should have checked this sooner but the link is currently reporting a 404 error.

Re: *NEW* Stacked shape tools

Posted: Wed Apr 13, 2022 3:29 pm
by synthsin75
Effin' Google drive changed my permissions. Should be good now. :?:

Re: *NEW* Stacked shape tools

Posted: Wed Apr 13, 2022 3:46 pm
by Greenlaw
It's good!

Re: *NEW* Stacked shape tools

Posted: Sat Apr 30, 2022 3:13 am
by sang820
:shock: I'm reposting here from another post and I just want to say: this plugin is great! Thanks, synthsin75 =) Moho is better because of you. :shock:

Re: *NEW* Stacked shape tools

Posted: Tue Apr 09, 2024 4:28 pm
by Greenlaw
Hi Wes,

I needed to use the Create Shape part of the Stacked Shape tools today in 14.1, and it still works great! Definitely saved me some time.

However, the Select Shape part seems to be broken. I'm seeing this error.

Image

Luckily, I only needed the Create Shape part, but I thought I should mention the problem with Select Shape.

Re: *NEW* Stacked shape tools

Posted: Tue Apr 09, 2024 5:38 pm
by synthsin75
Greenlaw wrote: Tue Apr 09, 2024 4:28 pm Hi Wes,

I needed to use the Create Shape part of the Stacked Shape tools today in 14.1, and it still works great! Definitely saved me some time.

However, the Select Shape part seems to be broken. I'm seeing this error.

Image

Luckily, I only needed the Create Shape part, but I thought I should mention the problem with Select Shape.
Here's an update for v14: https://drive.google.com/uc?export=down ... 1tSn9CoCUs

Re: *NEW* Stacked shape tools

Posted: Tue Apr 09, 2024 6:10 pm
by BigBoiiiJones
synthsin75 wrote: Tue Apr 09, 2024 5:38 pm
Greenlaw wrote: Tue Apr 09, 2024 4:28 pm Hi Wes,

I needed to use the Create Shape part of the Stacked Shape tools today in 14.1, and it still works great! Definitely saved me some time.

However, the Select Shape part seems to be broken. I'm seeing this error.

Image

Luckily, I only needed the Create Shape part, but I thought I should mention the problem with Select Shape.
Here's an update for v14: https://drive.google.com/uc?export=down ... 1tSn9CoCUs
Cant access

Re: *NEW* Stacked shape tools

Posted: Tue Apr 09, 2024 6:46 pm
by synthsin75
Should work now.

Re: *NEW* Stacked shape tools

Posted: Tue Apr 09, 2024 7:29 pm
by Greenlaw
synthsin75 wrote: Tue Apr 09, 2024 5:38 pm Here's an update for v14...
Thank you, Wes! It works perfectly now! :D

Re: *NEW* Stacked shape tools

Posted: Thu Jul 02, 2026 1:04 am
by synthsin75
https://drive.google.com/uc?export=down ... 1tSn9CoCUs

I've updated the v14 create shape tool to prompt the user to check for new features in the stock tool when Moho is updated.
Hopefully this helps avoid confusion when updating.

Re: *NEW* Stacked shape tools

Posted: Thu Jul 02, 2026 8:54 am
by Greenlaw
Cool! Thanks, Wes.

Re: *NEW* Stacked shape tools

Posted: Sat Jul 04, 2026 2:51 pm
by synthsin75
One more update for the same thing. https://drive.google.com/uc?export=down ... 1tSn9CoCUs

For scripters:
This time I've figured out a more robust and universal way to mod stock tool replacements so they warn you when an update may have a new version of the tool.
This is one code block that can be pasted on the first line of the IsEnabled fucntion, completely as-is... no editing script names or anything. Just paste this right below:

function XX_ExampleTool:IsEnabled(moho)

Code: Select all

--syn\/
	if (not self.initializedVersion) then
		local name
		for n, value in pairs(_G) do
			if rawequal(value, self) then
				name = n
				break
			end
		end
		-- inject save pref remotely
		local origSavePrefs = self.SavePrefs
		self.SavePrefs = function(self, prefs)
			prefs:SetString(name..".MohoVer", self.MohoVer)
			if origSavePrefs then return origSavePrefs(self, prefs) end
		end
		-- load pref manually
		local path = moho:UserPrefsFile()
		local key = "\""..name..".MohoVer".."\""
		for line in io.lines(path) do
			if (string.find(line, key, 1, true)) then
				self.MohoVer = string.match(line, '"[^"]+"%s+"([^"]+)"')
				break
			end
		end
		self.initializedVersion = true
		self.foundName = name
		-- warn user of replacement tool when Moho updates
		if (self.MohoVer == nil) or (self.MohoVer ~= moho:AppVersion()) then
			local name = self.foundName
			
			local button = LM.GUI.Alert(LM.GUI.ALERT_WARNING, name.."\n This installed tool is a third-party replacement of the stock tool.\n If you have recently updated Moho, please check if this stock tool has\n been updated, and decide if you want to remove this replacement tool.", "(If you have installed this replacement for the first time, you can ignore this message.)","", "OK", "Remind me later")
			if (button == 0) then
				self.MohoVer = moho:AppVersion()
			end
		else
			self.initializedVersion = true
		end
	end
--syn/\