Lost Scripts' Shapes Window (**New** BETA 4 PE+) for Moho 14.3+ 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: 10683
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 4 PE+) for Moho 14.3+ Pro

Post by Greenlaw »

I should explain a little more about what I'm doing: I'm setting up a Smart Bone Action that's animating the point positions for many small shapes, and I'm using Shapes Window to select which shapes/points I want to edit. Everything is fine when I'm selecting shapes and editing them in a frame, but Moho freezes when I scrub the timeline to check the motion. As mentioned above, I can usually recover Moho by closing Shapes Windows.

So far, I'm seeing this 'freeze' happen when scrubbing while inside the Smart Bone Action. I'm not sure yet if this also happens on the Mainline. TBD.

Keeping Shapes Window open isn't super critical to this task, but I wish I could keep it open while working on it.
User avatar
Rai López
Posts: 2328
Joined: Sun Aug 08, 2004 5:41 am
Location: Spain
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 4 PE+) for Moho 14.3+ Pro

Post by Rai López »

Thank you for pointing me out to it, Denis. The download link should now be fixed (and yes, the last one is v0.4.2), although I'll have to wait untill tomorrow at least to can investigate about the issue you are facing, but I'm sure your detailed descriptions will help. I don't think I've stressed the usage of the script while editing actions so, yeah, that well may have something to do with it... So I'll try to reproduce it here taking into account all you said and let you know in any case. Greetings.
...
User avatar
Greenlaw
Posts: 10683
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 4 PE+) for Moho 14.3+ Pro

Post by Greenlaw »

Thanks, Rai!

If I have time tomorrow, I can record a video of what I'm seeing here. Other than that, this version of Shapes Window is working well for me. :)
User avatar
Rai López
Posts: 2328
Joined: Sun Aug 08, 2004 5:41 am
Location: Spain
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 4 PE+) for Moho 14.3+ Pro

Post by Rai López »

Just a quick note... Yep, I can see that scrubbing the timehead is a little more laggy here while the Shapes Window is open, although I'm not perceiving a real difference whether if I'm in Mainline or inside an Action/SB.

Playback is always OK though, but that's to be expected due to (unlike dragging) no updates are sent to this kind of dialogs during playback. Anyway (ideally at least), no lag should be produced for the mere fact of having the window open during scrubbing, at least unless at some point something forces the shape palette to be redrawn e.g. at reaching/passing an Animated shapes order keyframe? 🤔 But I'm testing a file with more than 200 shapes being order-animated and, surprisingly, that doesn't seem to add any extra noticeable lag, which makes me suspect that for some reason the palette simply gets updated at frame change when it shouldn't; but to be honest, OTOH, if that were the case I'm also a bit surprised that the lag isn't greater...

Well, there are many, but now it seems I'd just need to find out which part of the script's update part could be causing that and hopefully find an easy fix for it, so I'll keep investigating... Thanks again for letting me know!
...
User avatar
Rai López
Posts: 2328
Joined: Sun Aug 08, 2004 5:41 am
Location: Spain
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 4 PE+) for Moho 14.3+ Pro

Post by Rai López »

Well after some inquires, it turns out there doesn't seem to be a clear/unique culprit (as I kinda expected in order to can apply a quick fix), therefore I'm afraid it will have to remain as is until a more thorough review of that part of the code be possible, which is something I wanted to do at some point anyway and now with more reason, but it's quite a big part, so... Luckily, Shapes Window is more focused on design/construction tasks than animation, but of course I can see when it could be useful also on that field (e.g. for extra Animated shape order feedback, recoloring, or helping on selection as mentioned), so ideally it shouldn't add a noticeable lag. Plus, I haven't had the necessity of restarting Moho at any point here, I mean, as soon a the window is closed, scrubbing the timeline returns to normality, unless I'm missing something on that part, so any further feedback is always welcomed!

P.S. Oh, and I just tested it and there doesn't seem to be a difference with Moho 14.3
...
User avatar
Greenlaw
Posts: 10683
Joined: Mon Jun 19, 2006 9:45 am
Location: Los Angeles
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 4 PE+) for Moho 14.3+ Pro

Post by Greenlaw »

Thanks for looking into this, Rai!

Another related issue came up: after closing the window, and then reopening it, the interface might be redrawn incorrectly and become unreadable. I think this only occurs after using Shapes Window while scrubbing/animating, and experiencing the freeze.

I'll continue using Shapes Window without interacting with the Timeline; it seems to run fine this way.

Sorry, I don't have more complete info at this time; I'm busy finishing work on a big tutorial episode and trying to get it out in time for Christmas (well, before New Years anyway.) I'll resume testing afterward.

Hope you have a good holiday season! :D
User avatar
Rai López
Posts: 2328
Joined: Sun Aug 08, 2004 5:41 am
Location: Spain
Contact:

Re: Lost Scripts' Shapes Window (**New** BETA 4 PE+) for Moho 14.3+ Pro

Post by Rai López »

Uhm... I'll keep an eye on that too, but it sounds to me related to everything said about improving the update part. Althouh in my case the most related thing to that I've got is a quick white flash upon opening the window and then everything is displayed and working as expected, but it may be a matter of stressing the frame changing more... Anyway, thanks for any further feedback, no matter when, in case you found something else and happy (busy) holidays too!
...
Post Reply