特殊:Badtitle/NS100:Moho
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Moho }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/af | • {{#if: UbuntuHelp:Moho|Afrikaans| [[::Moho/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/ar | • {{#if: UbuntuHelp:Moho|العربية| [[::Moho/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/az | • {{#if: UbuntuHelp:Moho|azərbaycanca| [[::Moho/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/bcc | • {{#if: UbuntuHelp:Moho|جهلسری بلوچی| [[::Moho/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/bg | • {{#if: UbuntuHelp:Moho|български| [[::Moho/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/br | • {{#if: UbuntuHelp:Moho|brezhoneg| [[::Moho/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/ca | • {{#if: UbuntuHelp:Moho|català| [[::Moho/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/cs | • {{#if: UbuntuHelp:Moho|čeština| [[::Moho/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/de | • {{#if: UbuntuHelp:Moho|Deutsch| [[::Moho/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/el | • {{#if: UbuntuHelp:Moho|Ελληνικά| [[::Moho/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/es | • {{#if: UbuntuHelp:Moho|español| [[::Moho/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/fa | • {{#if: UbuntuHelp:Moho|فارسی| [[::Moho/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/fi | • {{#if: UbuntuHelp:Moho|suomi| [[::Moho/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/fr | • {{#if: UbuntuHelp:Moho|français| [[::Moho/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/gu | • {{#if: UbuntuHelp:Moho|ગુજરાતી| [[::Moho/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/he | • {{#if: UbuntuHelp:Moho|עברית| [[::Moho/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/hu | • {{#if: UbuntuHelp:Moho|magyar| [[::Moho/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/id | • {{#if: UbuntuHelp:Moho|Bahasa Indonesia| [[::Moho/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/it | • {{#if: UbuntuHelp:Moho|italiano| [[::Moho/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/ja | • {{#if: UbuntuHelp:Moho|日本語| [[::Moho/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/ko | • {{#if: UbuntuHelp:Moho|한국어| [[::Moho/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/ksh | • {{#if: UbuntuHelp:Moho|Ripoarisch| [[::Moho/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/mr | • {{#if: UbuntuHelp:Moho|मराठी| [[::Moho/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/ms | • {{#if: UbuntuHelp:Moho|Bahasa Melayu| [[::Moho/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/nl | • {{#if: UbuntuHelp:Moho|Nederlands| [[::Moho/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/no | • {{#if: UbuntuHelp:Moho|norsk| [[::Moho/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/oc | • {{#if: UbuntuHelp:Moho|occitan| [[::Moho/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/pl | • {{#if: UbuntuHelp:Moho|polski| [[::Moho/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/pt | • {{#if: UbuntuHelp:Moho|português| [[::Moho/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/ro | • {{#if: UbuntuHelp:Moho|română| [[::Moho/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/ru | • {{#if: UbuntuHelp:Moho|русский| [[::Moho/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/si | • {{#if: UbuntuHelp:Moho|සිංහල| [[::Moho/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/sq | • {{#if: UbuntuHelp:Moho|shqip| [[::Moho/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/sr | • {{#if: UbuntuHelp:Moho|српски / srpski| [[::Moho/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/sv | • {{#if: UbuntuHelp:Moho|svenska| [[::Moho/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/th | • {{#if: UbuntuHelp:Moho|ไทย| [[::Moho/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/tr | • {{#if: UbuntuHelp:Moho|Türkçe| [[::Moho/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/vi | • {{#if: UbuntuHelp:Moho|Tiếng Việt| [[::Moho/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/yue | • {{#if: UbuntuHelp:Moho|粵語| [[::Moho/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/zh | • {{#if: UbuntuHelp:Moho|中文| [[::Moho/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/zh-hans | • {{#if: UbuntuHelp:Moho|中文(简体)| [[::Moho/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Moho | UbuntuHelp:Moho | {{#if: | :}}Moho}}/zh-hant | • {{#if: UbuntuHelp:Moho|中文(繁體)| [[::Moho/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Moho|:Moho|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Moho/zh | | {{#ifexist: Moho/zh | | {{#ifeq: {{#titleparts:Moho|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Moho|1|-1|}} | zh | | }}
Introduction
Moho is an animation application made by Lost Marble. It has now changed it's name to "Anime Studio", but I don't have that since Moho serves me well. Moho (and Anime Studio) is a proprietary program, available for Windows, MacOSX and GNU/Linux. It is very simple to set up in Ubuntu.
Features
Moho is completely focused on 2D animation, and it is completely vector based (raster images, for instance those made in the GIMP, can be imported and manipulated, but not as much as the built-in vector system). The only area where it is significantly lacking is frame-by-frame work, but it boasts other features such as bones, which can use dynamic physics and inverse kinematics (if you know what these terms mean then you will know how much easier they make animating!). It also has limited support for 3D objects, and recommends Wings3D if you are interested in using these abilities (Wings3D is in Ubuntu's Universe repository). It has support for particle systems, layer effects like those of the GIMP, "onion skin" viewing and has an easy to use method of lipsynching which can be controlled externally with tools like Papagayo (which is Free Software and programmed in Python, also available from Lost Marble's site).
Getting Moho
Moho changed it's name to Anime Studio. Moho is/was distributed as a download which must be activated with a key to get out of the "demo mode". Demo mode adds a watermark to any rendered frames, and forces SWF output to be black and white.
Running Moho
Moho does not install itself, instead it is run from wherever you extract the zip archive. Once you have extracted it, make sure the path to the folder (and the folder name itself) does not contain any spaces, since this would stop the startup script from working. Then double clicking on the "moho" file should bring up a requester asking if you want to display the file or run it. Choose run, and Moho should come up and ask if you have a key. (If it doesn't work then right click on the moho
and moho.donotrunme
files in turn, selecting Properties and making sure "execute" is checked)
Making Life A Little Easier
This setup may work, but there are a few things you can do to integrate Moho into your Ubuntu system a little more.
Semi-Installing Moho
If you do want to "install" Moho then, for a single user system, you just need to make a simple shell script which will move into the Moho directory then execute Moho. This can be done by running the command:
gksudo gedit /usr/local/bin/moho
You will need to type your regular password for this command (if it doesn't work you can check RootSudo). In the text editor which appears you should put the following lines, adjusting the second line to point to the directory containing Moho:
#!/bin/bash cd /the/full/path/to/Moho ./moho
Save the file, then run this in a terminal:
sudo chmod 755 /usr/local/bin/moho
This command makes sure the new file is executable and readable by regular users.
If you want multiple users to be able to run Moho then you should put Moho's folder in a suitable location such as /usr/local/lib/moho
and create a new group to own it, then put those users to whom you want to give access to Moho into that group. That can then be followed by the commands above (taking into account whichever permissions you wish to implement) to create a system wide program.
Launching Moho Easily
Moho can now be run from a terminal by simply using the command moho
. This is nice and easy, but to make it even easier you can open up the Menu Editor by right-clicking on the Ubuntu logo next to "Applications". In there go onto the Graphics menu, then add a new entry. Put it's icon as the PNG file included in Moho's archive, put it's command as simply moho
and give it a name Moho and a suitable comment. After accepting your changes take a look in the Applications->Graphics menu and you should see Moho (if not try running killall gnome-panel
). Now Moho will not only appear in the menu, but it will also appear in utilities such as the Deskbar, and remember that you can drag Moho from the menu onto the desktop or panel to create extra launchers.
Moho On Ubuntu - Tips And Tricks
There are a few things to keep in mind when using Moho on Ubuntu (or any GNU/Linux system). The first one is sound. New versions of Moho no longer rely on Apple's Quicktime to handle sound internally, which is good news since the GNU/Linux version can now at least handle sound. However, it is still not perfect since Moho does not use a sound system capable of utilising ALSA, which means that Moho may need to be run without any other audio program running (the Enlightened Sound Daemon can sometimes sort this out itself, but is hit-and-miss). If you find that Moho doesn't give you sound in your previews then close the program, make sure nothing else is using sound (make sure you do not have a webpage open which uses Flash, since this is often the cause of sound problems) and maybe even stop any ESD processes using the command:
killall esd
Then restart Moho and you should have sound. (This also applies to Papagayo!) Moho's built-in vector tools can be a little awkward, and it would certainly be a very bad idea to use Moho for static images, when the likes of Inkscape offer better, easier vector drawing abilities, and are Free Software and already in Ubuntu. However, Inkscape cannot animate it's SVG images. If you are more comfortable drawing your models and scenes in Inkscape than Moho (which is probably quite likely), then you can save your Inkscape images in Adobe Illustrator format (making sure to save any parts which you want to keep seperate in Moho on their own, eg. seperate files for left leg, right leg, etc. if you want to animate these independantly), then import those files in Moho and they will appear as Moho-native vectors in their own layers. This is not foolproof, since colours can often get mangled, and the resolution of the vectors' control points can be very low, but Moho's tools are adequate at vector manipulation and new points can be added easily. An important point is to do with rendering and output. Moho cannot assume that your Ubuntu system has programs like Mencoder, VLC, Transcode or other video encoding programs, and this is a good thing too, since Ubuntu doesn't come with these programs by default. The problem comes when you DO install these programs, because they won't be used :( The most useful output formats are SWF (Flash animation) and PNG images. You will have to do a little fiddling with the output, whichever one you choose. If you use PNG then you may want to use MPlayer to combine them into a movie file with a command like:
mplayer mf://*.png -mf type=png:fps=YOUR_FRAME_RATE -vo yuv4mpeg -ao null -nosound
This will build the rendered PNG images, at YOUR_FRAME_RATE per second, into a movie file called stream.yuv (YUV is lossless, so it is a good choice as an intermediate file format) which you can then add sound to and convert to another (much smaller!) format (I would recommend using ffmpeg2theora). For SWF output I would highly recommend getting your hands on SWFTools. They are Free Software, but are not in Ubuntu yet (I have added them to the package candidates list though). A useful set of commands for adding a soundtrack to a Flash file (Moho can only output certain types of MP3 in SWFs, so I prefer this method) would be (NOTE: Add the "-d" option in the wav2swf command to make a sound event instead of a sound stream. This makes it work better in Free Software SWF players like Gnash):
wav2swf -r YOUR_FRAME_RATE -o soundtrack.swf -b YOUR_PREFERRED_BITRATE soundtrack.wav swfcombine -o soundtrack_sized.swf -dX YOUR_MOVIE'S_WIDTH -Y YOUR_MOVIE'S_HEIGHT soundtrack.swf swfcombine -Tzo movie_with_sound.swf movie.swf soundtrack_sized.swf
And combining multiple scenes into a final movie would be done with a command like:
swfcombine -mo final_movie.swf scene1.swf scene2.swf scene3.swf [...] sceneN.swf
This command can include as many files as you want.
SWFTools obviously have much more power than this, but sadly features like replacing specified movieclips/symbols with other SWF files (useful, for example, with avi2swf if you want to display a movie file on a TV screen in your movie) is useless with Moho, because it uses it's own file type and relies on the Ming library for SWF export, which makes giving symbols/movieclips specific names virtually impossible.
Also remember that SWF is still a closed format, and Lost Marble cannot extend it's functionality in any way. That means that many of Moho's features (like warping images with bones, for example) cannot be outputted to SWF, since SWF does not support any such capability. Also, many of Moho's features which can be exported to SWF, for example 3D camera movements/rotations, have to be exported on a frame-by-frame basis (unlike, for example, 2D movement, which just needs to tween between a couple of keyframes). This results in huge SWF files (SWF is mainly used on the Web, so this is not desirable) which can be very hard to render on slow machines, so beware. If the worst comes to the worst and your SWF output becomes too large and complex to handle, you can always make it into a regular movie then use avi2swf to embed that into an SWF file similar to the likes of YouTube
.
See Also
Moho Forum - The official forum for Moho and Papagayo Papagayo - A Free Software lip-sync tool for use with Moho Yolo - A Free Software alternative to Papagayo (but it does not offer any advantages as far as I can tell) Synfig - A Free Software animation program (not in Ubuntu yet, but it is a candidate) Ktoon - Ditto, but not quite as powerful/professional Flash4Linux - An attempt to copy Adobe's interactive slideshow program Flash SWF Format Specification (PDF) - May be useful to see exactly what SWF can handle SVG - Scalable Vector Graphics is an open standard for vector graphics. It is already used heavily throughout GNU/Linux systems (for icons, etc.) but also offers animation capabilities which are potentially far more powerful than SWF (however, there are few players for it's animation capabilities. Opera is probably the most complete, but Adobe has an old viewer, and KHTML supports it a little). SVG can also be scripted in any programming language, since it is an XML standard. You may want to keep your eye on it's adoption and development.