Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

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

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Greenlaw »

A little more info about how I'm using Shapes Window today: I have a lot of stacked shapes that share the same points, so I can't directly select many of these shapes in Workspace. But after I named these shapes with sensible names, thanks to Shapes Window, Shapes Window also makes it super easy to edit and manage these shapes and their various Style settings.

I just wanted to bring that up because I keep finding new ways to use this tool. It's the tool that keeps on giving! :D

Keep up the great work, Rai!
User avatar
Rai López
Posts: 2289
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Rai López »

Argh! Yes, I can see it now... So, thank you very much for the quick feedback too! And, yeah, although I can't test right now if such behavior is due to the Enter key fix/patch, I'm afraid that will be the case.

But I'm still in almost the same situation, I mean, even though of course I don't like this weird behaviors, pressing the Enter key to confirm text field changes is something one do all the time, meantime these disadvantages (even totally undesirable) are not so often or more more use case specific... Maybe the only midway solution would be to add an "Enter confirms remane" (or so) menu option after all, so one have the chance at least of can avoid the disadvantages while the situation requieres it? Although since confirm with Enter is a so taken-for-granted convention, it's going to be a certainly kind of unexpected option to count with...

But, well, note taken in any case! And thanks again for the detailed report, usage feedback and kind words Dennis! :D
...
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Greenlaw »

Thanks for looking into this, Rai!

I hope it's possible to fix this, but the workaround from earlier today worked out fine, and I really only need it when I have a lot of shape names to revise. That shouldn't happen too often (I hope.) :)

BTW, I wondered if I could work around the issue by using the Delete key instead of Backspace, but this has the same problem: pressing Delete will jump the cursor to the end of the text. I wanted to mention this in case it offered another clue.
User avatar
Rai López
Posts: 2289
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Rai López »

Hopefully! I'd have to prepare a simplest possible sample script to can report it as it should be, since for what I could observe at the time I dug into it, I'd say there is little more we could do on our part, to get a real fix at least... So, as soon as I get some other things done (someday 🙄🤞), I'll try to look into all that again and see...

Greenlaw wrote: Thu Apr 11, 2024 2:13 am BTW, I wondered if I could work around the issue by using the Delete key instead of Backspace...
Yeah, the very first thing I tried too :lol:, as well as any other possible modifier keys combination... Of course, with no different results :(
...
User avatar
Gherasimov Vasile
Posts: 9
Joined: Tue Jan 25, 2022 10:46 am

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Gherasimov Vasile »

https://prnt.sc/WSPv2mWCzzHG

Image

Could you please tell me what the problem might be, as I am receiving the given error?
User avatar
Rai López
Posts: 2289
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Rai López »

Gherasimov Vasile wrote: Wed May 15, 2024 11:24 pm

Code: Select all

...\Moho Pro\Scripts\Menu\Lost Scripts\ls_shapes_window.lua:1079: attempt to call a nil value (method 'CountSelectShapes')
...\Moho Pro\Scripts\Menu\Lost Scripts\ls_shapes_window.lua:1079: attempt to call a nil value (method 'CountSelectShapes')
...\Moho Pro\Scripts\Menu\Lost Scripts\ls_shapes_window.lua:1079: attempt to call a nil value (method 'CountSelectShapes')
Could you please tell me what the problem might be, as I am receiving the given error?
🤔 Hi. I wouldn't know what to say without maybe some more details. I can see you are using Moho Pro at least, but which version? For the error line, it seems to me you could be not using the latest version of the tool (first post's first link, labeled as: ls_shapes_window_v0.3.0-beta3_20240209-0054.zip ), isn't it? Anyway, FTR, some comments in code state I started using "moho:CountSelectedShapes" instead of "LM_SelectShape:CountSelectedShapes", which may have something to do? But, again, none of this should be a problem if you were using latest version of the tool in Moho Pro 14.1 or, well, I don't think so...
...
User avatar
Gherasimov Vasile
Posts: 9
Joined: Tue Jan 25, 2022 10:46 am

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Gherasimov Vasile »

Yes, I'm using the latest version of Moho Pro 14.1, but it's just a trial version, and the script is also the latest version. It's important to note that it worked correctly some time ago, but not anymore. I have many scripts installed; could there be a conflict with any of them? I can't tell after the error occurred.
User avatar
Gherasimov Vasile
Posts: 9
Joined: Tue Jan 25, 2022 10:46 am

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Gherasimov Vasile »

I've reinstalled both Windows and Moho Pro, and I'm encountering the same error. However, I'm using the same resources folder and script folders from the previous installation; I copied the folder from the previous system.
User avatar
Gherasimov Vasile
Posts: 9
Joined: Tue Jan 25, 2022 10:46 am

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Gherasimov Vasile »

So, I found it, just as I suspected. It was caused by a script that replaced the standard tools with some updated ones, but they were meant for earlier versions of Moho Pro. Thank you, and sorry for the inconvenience.
User avatar
Rai López
Posts: 2289
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Rai López »

Perfect! It makes all sense that could be the cause... And no inconveniences at all, happy to know you finally got it sorted :)
...
User avatar
kakubei
Posts: 6
Joined: Wed Feb 14, 2024 4:09 pm

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by kakubei »

Hello, this looks amazing. Is there a repo for it so we can pick up the latest version? I know it says Windows only but I'm going to try it on a Mac, fingers crossed :)
User avatar
Rai López
Posts: 2289
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Rai López »

Well, I'm precisely on it, but unfortunately things are progressing (very) slowly, although I still believe in the end it will worth the effort... OTOH, It's a pity I can't ensure everything works on Mac not being able to test it by myself, but others have said it was usable, if I remember well.

Anyway, yeah, I'm sure all that will improve once I have the proper Git based development system with the due issues tracker, new possibilities for quick fixes and all, so thank you for your patience/understanding and for now... well, good luck!
...
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Greenlaw »

Hi Rai!

I'm just curious, but is Shapes Window really Win only? Previously, I took the note to mean it was 14.1 compatible only, and not for previous versions of Moho. (It works fine in 14.2 if anyone was wondering.)

But if it is Win-only, I was wondering why. I'm thinking of recording a tutorial about how I use Shapes Window, so any info is appreciated.

Thanks!
User avatar
Greenlaw
Posts: 10382
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Greenlaw »

Rai López wrote: Wed Aug 07, 2024 11:40 pm OTOH, It's a pity I can't ensure everything works on Mac not being able to test it by myself, but others have said it was usable, if I remember well.
Ah! We must have been writing at the same time. Thanks for the answer. :D
User avatar
Rai López
Posts: 2289
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 3) for Moho 14.1 Pro

Post by Rai López »

Yeah, I was about to point it just in case you missed my post due to that, but of course you was quicker!

Anyway, the thing is, theoretically, scripts should work in both systems and Moho's part is doing it surprisingly great indeed, but not being able to test some things from my part (specially some kinda twisted UI related stuff) even once and therefore can't ensure at least basic support either, makes me not feel confident enough to dispense with the "Windows Only" label... Anyways, good to know it's still working well for you in Windows, despite I'm conscious it's needing some retouching at least for looking good in 14.2 due to the Unicode limitations (not sure how I'm going to do it yet, but I'm sure I'll find a way? :roll:).

Well, hope it makes sense, sorry for the delay on updates, and thanks as always for all your support!
...
Post Reply