Difference between revisions of "IC Python API:PopcornFX Sequencer"
From Reallusion Wiki!
Chuck (RL) (Talk | contribs) m (→Steps to Take) |
Chuck (RL) (Talk | contribs) m (→Course Prerequisites) |
||
Line 11: | Line 11: | ||
== Course Prerequisites == | == Course Prerequisites == | ||
+ | You should familiarize yourself with the following fundamental articles before you proceed: | ||
+ | |||
+ | {|class="wikitable | ||
+ | !Link | ||
+ | !Purpose | ||
+ | |- | ||
+ | |[[ iC_Python_API:Table_View | Table View ]] | ||
+ | |Create a table view -suitable for listing similar objects. | ||
+ | |- | ||
+ | |[[ iC_Python_API:Tree_View | Tree View ]] | ||
+ | |Create tree view -suitable for listing hierarchical objects. | ||
+ | |- | ||
+ | |[[ iC_Python_API:Plugin_Window | Plugin Window ]] | ||
+ | |Boilerplate for creating proper plugin user interfaces. | ||
+ | |- | ||
+ | |[[ iC_Python_API:Loading_PFX | Loading PFX ]] | ||
+ | |Learn how to load PopcornFX files by name. | ||
+ | |- | ||
+ | |[[ iC_Python_API:Handling_JSON | Handling JSON ]] | ||
+ | |Learn to load and parse saved JSON data. | ||
+ | |} | ||
== Learn How to == | == Learn How to == |
Revision as of 22:09, 22 December 2019
- Main article: RL Python Samples.
Demo Video
Description
Popcorn Script Creator can be used to easily manage particle emit time and loop status. User can drag/drop the list items to change the emit order, set delay time for emit, set loop status or set the custom life cycle for each particle. Press the Apply button to deploy the particles to the scene and apply the custom settings.
Course Prerequisites
You should familiarize yourself with the following fundamental articles before you proceed:
Link | Purpose |
---|---|
Table View | Create a table view -suitable for listing similar objects. |
Tree View | Create tree view -suitable for listing hierarchical objects. |
Plugin Window | Boilerplate for creating proper plugin user interfaces. |
Loading PFX | Learn how to load PopcornFX files by name. |
Handling JSON | Learn to load and parse saved JSON data. |
Learn How to
- Use PopcornFX related API.
- Handle AP event callbacks to update UI.
- Use Python dictionary to store settings for each particle.
Required Files
- PopcornFX Sequencer and Extensions Python script files.
- Installed PopcornFX particles, either from embed or content packs.
Usage Instructions
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.RScene.FindObjects()
- RLPy.RUi.GetMainWindow()
- RLPy.RUi.AddMenu()
- RLPy.RUi.ShowMessageBox()
- RLPy.REventHandler.RegisterCallback()
- RLPy.RGlobal.SetTime()
- RLPy.RTime()
- RLPy.RGlobal.Play()
- RLPy.RScene.SelectObject()
- RLPy.RGlobal.Stop()