Embedded Scripts in 5.2

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Toontoonz
Posts: 763
Joined: Fri Mar 25, 2005 9:28 pm

Embedded Scripts in 5.2

Post by Toontoonz »

I am looking forward to seeing some examples of the embedded scripts that one can use.

I can not write scripts - I do not have the brain power to accomplish it.

I am curious to see examples of them working, because right now I have a problem grasping their usefulness.
For example, one can supposedly write a script so that object A points at object B. But why couldn´t I just do that by hand? And won´t there be lots of unpredictable problems that occur - such as it points in a manner one does not want or one can´t turn it off at a later point in the animation. Or it conflicts with the "face the camera" function? Or it does not work well for 2D objects in a 3D environment.

I look forward to seeing what people come up with. When people write the scripts I hope they include a sample animation to show how it works.
Because if it is good and useful you can count on at least one person here using it!
Toontoonz
Posts: 763
Joined: Fri Mar 25, 2005 9:28 pm

Post by Toontoonz »

Dumb question: In which scripts folder does one place the embedded script .lua file:
-Menu
-Tool
or
-Utility?
User avatar
Rai López
Posts: 2294
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post by Rai López »

Like that kind of script is not accesible by menu, you can put it where you want or prefer... I personally have created a new folder named Embedded inside script folder of moho directory...
Toontoonz
Posts: 763
Joined: Fri Mar 25, 2005 9:28 pm

Post by Toontoonz »

Thanks! And good idea for the new folder.
User avatar
Lost Marble
Site Admin
Posts: 2356
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

If you plan to write re-usable scripts, you could put them in the embedded folder. On the other hand, if you write an embedded script that is very specific to one particular Moho animation, I would keep it in the same folder as the Moho file itself.
User avatar
Rai López
Posts: 2294
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post by Rai López »

Yes, that's true, to maintain the paths if you move your proyect of one location to another... THANK YOU! (for this and for all).
Post Reply