IC Python API:Smooth Camera Follow
From Reallusion Wiki!
Revision as of 02:16, 11 April 2019 by Chuck (RL) (Talk | contribs)
- Main article: RL Python Samples.
Smooth Camera Follow
This script lets the user pick a camera/view and a prop/target to follow. The camera will always be facing the direction of the target prop with delay as an adjustable factor. The Offset values creates a distance between the view and the target. Use the Delay value to create a lag between the view and the target.
Learn How to
- Drive the motion of the camera according to the animation of a prop.
- Populate drop down menus/combo boxes with elements from the scene.
- Set timer and event callbacks and attach commands.
Required Files
- iClone scene with camera and animated prop
- Smooth Camera Follow Python script
- Extensions Python script
Steps to Take
- Unzip the contents of Smooth Camera Follow.zip into the iClone install directory ...\Bin64\OpenPlugin.
- Load the script into the project from the menu: Plugins > Python Samples > Smooth Camera Follow.
- Follow the instructions in the subsequent dialog window.
Modules Used
main.py
- RLPy.REventCallback.__init__()
- RLPy.RMatrix3()
- RLPy.REventHandler.UnregisterCallback()
- RLPy.RGlobal.SetTime()
- RLPy.RGlobal.GetStartTime()
- RLPy.RQuaternion()
- RLPy.RTransform()
- RLPy.RGlobal.IsPlaying()
- RLPy.RGlobal.GetTime()
- RLPy.RMath.Min()
- RLPy.RGlobal.Stop()
- RLPy.REventHandler.RegisterCallback()
- RLPy.RGlobal.Play()
- RLPy.RGlobal.GetEndTime()
- RLPy.RUi.ShowMessageBox()
- RLPy.RUi.AddMenu()
- RLPy.RUi.CreateRDockWidget()
- RLPy.RVector3()