Difference between revisions of "IC Python API:Audio Driven"
From Reallusion Wiki!
Chuck (RL) (Talk | contribs) m (→main.py) |
Chuck (RL) (Talk | contribs) m (→APIs Used) |
||
Line 43: | Line 43: | ||
− | + | == APIs Used == | |
You can research the following references for the APIs deployed in this code. | You can research the following references for the APIs deployed in this code. | ||
− | + | === main.py === | |
<div style="column-count:4; -moz-column-count:4; -webkit-column-count:4"> | <div style="column-count:4; -moz-column-count:4; -webkit-column-count:4"> | ||
Line 74: | Line 74: | ||
</div> | </div> | ||
− | + | === AD_Extensions.py === | |
<div style="column-count:4; -moz-column-count:4; -webkit-column-count:4"> | <div style="column-count:4; -moz-column-count:4; -webkit-column-count:4"> |
Revision as of 23:14, 25 June 2019
- Main article: RL Python Samples.
Demo Video
Description
This script lets the user pick an audio file in wave format and apply an interpretation of it in movement to a selection of props.
Course Prerequisites
Make sure to install Numpy and Scipy Python modules by following the instructions here.
You should familiarize yourself with the following fundamental articles before you proceed:
Learn How to
- Deal with audio files and data.
- Create complex and responsive user interface elements.
Required Files
- iClone scene with one or more props.
- An audio file in wave (*.wav) format.
- Audio Driven Python script.
- Audio Driven Extensions Python script.
You can download this plugin from the Reallusion Marketplace. To acquire and view the source code, please visit Reallusion GitHub.
Steps to Take
Code Flow
APIs Used
You can research the following references for the APIs deployed in this code.
main.py
- RLPy.REventCallback.__init__()
- RLPy.RDialogCallback.__init__()
- RLPy.REventHandler.UnregisterCallback()
- RLPy.REventHandler.RegisterCallback()
- RLPy.RUi.CreateRDialog()
- RLPy.RAudio.CreateAudioObject()
- RLPy.RGlobal.GetFps()
- RLPy.RScene.FindObject()
- RLPy.RScene.RemoveObject()
- RLPy.RTransformKey()
- RLPy.RGlobal.GetTime()
- RLPy.RTime.GetFrameIndex()
- RLPy.RTransform()
- RLPy.RTime()
- RLPy.RTime.IndexedFrameTime()
- RLPy.RAudio.LoadAudioToObject()
- RLPy.RGlobal.Play()
- RLPy.RGlobal.GetStartTime()
- RLPy.RRgb()
- RLPy.RKey()
- RLPy.RUi.GetMainWindow()
- RLPy.RUi.AddMenu()