mirror of
https://github.com/DanielSWolf/rhubarb-lip-sync.git
synced 2026-11-21 12:25:08 +00:00
@@ -10,6 +10,6 @@ indent_size = 4
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{yml,yaml}]
|
||||
[*.{jsx,yml,yaml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
# Version history
|
||||
|
||||
## Unreleased
|
||||
|
||||
* **Fixed** After Effects script on macOS ([issue #77](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/77), [issue #128](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/128))
|
||||
* **Changed** the way you make Rhubarb available to After Effects on macOS. This used to be a `/usr/local/bin/` symlink but is now a `PATH` entry ([issue #143](https://github.com/DanielSWolf/rhubarb-lip-sync/issues/143)). For details, see the README file for Rhubarb for After Effects.
|
||||
|
||||
## Version 1.13.0
|
||||
|
||||
* **Improved** animation rules for "F" sound when using just the basic mouth shapes.
|
||||
|
||||
8
extras/AdobeAfterEffects/.prettierrc.yml
Normal file
8
extras/AdobeAfterEffects/.prettierrc.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
# Config file for Prettier, a JavaScript/TypeScript code formatter.
|
||||
|
||||
useTabs: false
|
||||
tabWidth: 2
|
||||
printWidth: 100
|
||||
singleQuote: true
|
||||
arrowParens: avoid
|
||||
trailingComma: none
|
||||
@@ -1,4 +1,15 @@
|
||||
= Animation script for Adobe After Effects
|
||||
= Rhubarb for After Effects
|
||||
:experimental:
|
||||
:imagesdir: ../../img
|
||||
:A: Ⓐ
|
||||
:B: Ⓑ
|
||||
:C: Ⓒ
|
||||
:D: Ⓓ
|
||||
:E: Ⓔ
|
||||
:F: Ⓕ
|
||||
:G: Ⓖ
|
||||
:H: Ⓗ
|
||||
:X: Ⓧ
|
||||
|
||||
The script in this directory generates After Effects compositions with mouth animation.
|
||||
|
||||
@@ -8,22 +19,69 @@ The script in this directory generates After Effects compositions with mouth ani
|
||||
|
||||
Download the archive file containing Rhubarb Lip Sync, then extract in a directory on your computer.
|
||||
|
||||
=== 2. Make Rhubarb available to After Effects
|
||||
=== 2. Add Rhubarb to the PATH environment variable
|
||||
|
||||
On *Windows*, add the Rhubarb directory (the directory containing `rhubarb.exe`) to your `PATH` environment variable.
|
||||
After Effects needs to know where to find Rhubarb Lip Sync.
|
||||
So you need to add the Rhubarb directory to your computer's PATH environment variable as follows:
|
||||
|
||||
On *OS X*, create a symbolic link to the executable (`rhubarb`) in `/usr/local/bin/`. You can do that by executing `ln -s /rhubarb-directory/rhubarb /usr/local/bin/` (make sure to replace `rhubarb-directory` with the actual directory).
|
||||
*On Windows:*
|
||||
|
||||
. *Copy the full path of the Rhubarb directory:*
|
||||
* In the File Explorer, press and hold the kbd:[Shift] key while right-clicking on the Rhubarb directory (the directory containing `rhubarb`, `README.adoc`, etc.).
|
||||
* In the context menu, select _Copy as path_.
|
||||
|
||||
. *Add the Rhubarb directory to the PATH variable:*
|
||||
* Press kbd:[Start] + kbd:[R] to open the Run dialog.
|
||||
* Type `sysdm.cpl` and press kbd:[Enter] to open the System Properties window.
|
||||
* In the System Properties window, go to the _Advanced_ tab and click the _Environment Variables..._ button.
|
||||
* In the _Environment Variables_ window, under _System variables_, select the _Path_ variable, then click _Edit..._.
|
||||
* In the Edit Environment Variable window, click _New_, then paste the path you copied earlier.
|
||||
* Click _OK_ to close all windows.
|
||||
* To make sure everything is working, open a new Command Prompt window by pressing kbd:[Start] + kbd:[R], typing `cmd`, and pressing kbd:[Enter]. Type `rhubarb --version` and press kbd:[Enter]. You should see the version number of Rhubarb Lip Sync.
|
||||
|
||||
*On macOS:*
|
||||
|
||||
. *Copy the full path of the Rhubarb directory:*
|
||||
* In the Finder app, right-click on the Rhubarb directory (the directory containing `rhubarb`, `README.adoc`, etc.).
|
||||
* While the context menu is open, press and hold the kbd:[Option] key. This will change some of the menu items.
|
||||
* Select _Copy [...] as Pathname_.
|
||||
|
||||
. *Open the Terminal app:*
|
||||
* Click on the Spotlight search icon (the little magnifying glass) at the top-right of your screen.
|
||||
* Into the search bar that opens, type "`terminal`", then press kbd:[Enter].
|
||||
|
||||
. *Add the Rhubarb directory to the PATH variable:*
|
||||
* In the Terminal window, type `touch ~/.zshrc` and confirm with kbd:[Enter].
|
||||
* Next, type `open -e ~/.zshrc` and confirm with kbd:[Enter]. The TextEdit app should open with a file.
|
||||
* If the file already contains text, move to the end of the file and add a new line.
|
||||
* Type `export PATH="`, press kbd:[Cmd] + kbd:[V] to paste the path you copied earlier, then type `:$PATH"`. +
|
||||
The resulting line should look something like `export PATH="/Users/Daniel/Rhubarb-Lip-Sync:$PATH"`.
|
||||
* Save the file and close TextEdit.
|
||||
* To make sure everything is working, close the terminal window, then open it again as described above. Type `rhubarb --version` and confirm with kbd:[Enter]. You should see the version number of Rhubarb Lip Sync.
|
||||
|
||||
=== 3. Install After Effects script
|
||||
|
||||
Copy (or symlink) the script file `Rhubarb Lip Sync.jsx` into your After Effects scripts directory.
|
||||
In After Effects, go to _File_ > _Scripts_ > _Install Script File..._, then select the script file `Rhubarb Lip Sync.jsx` from the `extras/AdobeAfterEffects` subdirectory of Rhubarb Lip Sync.
|
||||
|
||||
On *Windows*, that directory is usually `C:\Program Files\Adobe\Adobe After Effects <version>\Support Files\Scripts`.
|
||||
Older After Effects versions don't have this command, so you'll have to manually copy (or symlink) the script file into your After Effects scripts directory.
|
||||
|
||||
On *OS X*, that directory is usually `Applications/Adobe After Effects <version>/Scripts`.
|
||||
* On *Windows*, that directory is usually `C:\Program Files\Adobe\Adobe After Effects <version>\Support Files\Scripts`.
|
||||
* On *OS X*, that directory is usually `Applications/Adobe After Effects <version>/Scripts`.
|
||||
|
||||
=== 4. (Re-)start After Effects
|
||||
|
||||
== How to use
|
||||
|
||||
In After Effects, select _File > Scripts > Rhubarb Lip Sync.jsx_. That will open a dialog window where you can specify the audio file with the dialog recording and a number of other options. To get information about any input field, just hover above it with your mouse and you’ll see a tooltip.
|
||||
=== Create your mouth composition
|
||||
|
||||
To start, you need a composition containing all your mouth shapes.
|
||||
The first frame (`00:00`) should contain the {A} mouth shape, the second frame (`00:01`) should contain the {B} mouth shape, and so on.
|
||||
The optional mouth shapes {G}, {H}, and {X} belong at `00:06`, `00:07`, and `00:08`, respectively.
|
||||
|
||||
For your first experiments, check out the demo project in the `extras/AdobeAfterEffects/demo` directory.
|
||||
|
||||
image:after-effects-setup.png[]
|
||||
|
||||
=== Run Rhubarb for After Effects
|
||||
|
||||
In After Effects, select _File > Scripts > Rhubarb Lip Sync.jsx_. That will open a dialog window where you can specify the audio file with the dialog recording and a number of other options. To get information about any input field, just hover above it with your mouse and you'll see a tooltip.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
BIN
img/after-effects-setup.png
Normal file
BIN
img/after-effects-setup.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 215 KiB |
Reference in New Issue
Block a user