Here's some handy scripts

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

Moderators: Víctor Paredes, Belgarath, slowtiger

macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Update

Post by macton »

* Added modification of LM's rotate layer tool to allow rotation of all the points on a layer about a selected pivot point. (Under Extras)
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

Re: Here's some handy scripts

Post by Rasheed »

macton wrote:Reset Layer Visibility tool (v1.0)
Image
This tool is just a quicker method of reseting the visibility for a layer on a certain frame.

See this page:
http://www.lostmarble.com/forum/viewtop ... highlight=

The files:
http://crashcore.com/public/moho/extras ... bility.lua
http://crashcore.com/public/moho/extras ... bility.png

Zip of all files:
http://crashcore.com/public/moho/extras ... bility.zip

To Install:
Place the files in the Moho scripts/menu directory

Usage:
- Click on the layer and it will turn visibility ON at the current frame.
- Alt-Click on the layer and it will turn visibility ON at frame zero.
- Ctrl-Click on the layer and it will turn visibility OFF at the current frame.
- Ctrl-Alt-Click on the layer and it will turn visibility OFF at frame zero.

* Visibility keyframes that are no longer needed after the new key will be automatically deleted.
I installed both the files from the Zip archive in Moho's scripts/tools folder and it didn't seem to work. It doesn't modify the invisibility at all. Clicking, Ctrl-clicking, Alt-clicking or Ctrl-Alt-clicking: no effect.

Image

BTW I use Mac OS X.
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Re: Here's some handy scripts

Post by macton »

Rasheed wrote: I installed both the files from the Zip archive in Moho's scripts/tools folder and it didn't seem to work. It doesn't modify the invisibility at all. Clicking, Ctrl-clicking, Alt-clicking or Ctrl-Alt-clicking: no effect.

BTW I use Mac OS X.
Hmm.. I don't know.
Here's a guess:
From your screenshot it looks like you're clicking on the layer in the hierarchy list.
You need to click somewhere on the actual layer
i.e.
1. Select the layer you want in the hierarchy
2. Click anywhere on the main view

Let me know...
User avatar
Lost Marble
Site Admin
Posts: 2347
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

These scripts are so useful (an plentiful!) that I've made this topic sticky, so it will always be visible at the top of the Scripting forum. Thanks for the great work macton!
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

Re: Here's some handy scripts

Post by Rasheed »

macton wrote:You need to click somewhere on the actual layer
i.e.
1. Select the layer you want in the hierarchy
2. Click anywhere on the main view

Let me know...
:oops: Sorry, for that, my mistake. It works exactly like you wrote.

Only on the Mac the keys are not Control and Alt, but Command and Alt. The Control key in the Mac is used to simulate a right-click with a one-button mouse. This is a system-wide feature in Mac OS X.

So, could you please include an OS-check to display the correct keys per OS?
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Update

Post by macton »

* New version of 7feet's MegaMagnet tool
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Update

Post by macton »

* Added "Paste Curve to Points Position" script
* Added instructions for moving a shape along a curve
User avatar
Rai López
Posts: 2243
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

:D :D :D

Post by Rai López »

Hmmm :) , I'm never sure where I must Reply for :arrow: THANK YOU!!! :D I always have loved the Magnet tool and with all this improvements is becoming in the most incredible POWERFUL tool! I love specially that "Repel" new function :) THANKS! Very useful & save time in lots of situations, really... Only a doubt, at first when I tried to move points and they were atracted to the center of the red area, I thought that could be a bug, but then I understood that I was in front of a totally new tool, isn't? Well, I only wanted to be sure... Well (and now SORRY but I can't aboid it...), any hope for that "Mega Super Archi Magnet" tool? That which would be possible move points betweeen different layers, you know... I'd be a "Super Archi Mega Dream" too :roll: ...CIAO! And THANKS! :D

PD: ...Ah, and THANK YOU very much for all that "Follow Line" scripts very useful (as usually) all they :)
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

Post by Rasheed »

I guess the best way to thank Macton is to use his scripts to create animation.
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Update

Post by macton »

* Added modification to LM's scale point tool.
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Update

Post by macton »

* Updated Paste Curve To Points Position script
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Update

Post by macton »

* Updated Paste Curve To Layer Translation script
For an example see this thread: http://www.lostmarble.com/forum/viewtopic.php?t=3026
User avatar
Rhoel
Posts: 844
Joined: Fri Feb 25, 2005 8:09 am
Location: Phnom Penh, Cambodia
Contact:

Post by Rhoel »

Macton:
One of the most useful scripts for me so far is the List external file.

However, yesterday I needed t ocheck which Switch reference file was being used - its not listed. So I did a dedicated test just a switch-file ... no dialogue box comes up. With one external picture and a switch, the dialogue box shows just the single file.

Its's not a big issue and it might be down to the way Moho uses the information (ie, it reads in the information and embeds it on the time line ... if that is the case there will be no inherited filename information).

Just providing feedback.

Rhoel.
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Post by macton »

Rhoel wrote:Its's not a big issue and it might be down to the way Moho uses the information (ie, it reads in the information and embeds it on the time line ... if that is the case there will be no inherited filename information).
As you suspected that file is not available to scripts.
macton
Posts: 93
Joined: Thu Aug 18, 2005 6:29 am
Location: San Diego

Update

Post by macton »

* Updated Relink Lost Images script
- For better OSX compatibility
- For speed
- See: http://www.lostmarble.com/forum/viewtopic.php?t=3034
Post Reply