Difference between revisions of "IC Python API:Joint Driven Morph"

From Reallusion Wiki!
Jump to: navigation, search
(Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Samples|RL Python Samples}} == Joint Driven Morph == {{#evt: service=youtube |id=https://www.youtube.com/watch?v=tBNyGtLi1dE&list=PL...")
 
m (Joint Driven Morph)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{TOC}}
+
__NOTOC__
 
{{Parent|IC_Python_API:RL_Python_Samples|RL Python Samples}}
 
{{Parent|IC_Python_API:RL_Python_Samples|RL Python Samples}}
  
Line 8: Line 8:
 
|id=https://www.youtube.com/watch?v=tBNyGtLi1dE&list=PLNV5zSFadPdnhNttpXa1YtstjTnFjA6qF&t=0s&index=3
 
|id=https://www.youtube.com/watch?v=tBNyGtLi1dE&list=PLNV5zSFadPdnhNttpXa1YtstjTnFjA6qF&t=0s&index=3
 
|alignment=right
 
|alignment=right
|description=Joint Driven Morph
 
|container=frame
 
 
}}
 
}}
  
 
This script can be used to drive morph targets via real-time rotation of bone joints. The character along with its bones and morphs are designated inside the script itself. Then every 100 milliseconds -about 1/10th of a second, the script will check for the rotational status of the associated bones and activate the subsequent morph targets accordingly. Once the joint morph connection is applied, one should see the activation of certain morph shapes by rotating the mapped joints in real-time.
 
This script can be used to drive morph targets via real-time rotation of bone joints. The character along with its bones and morphs are designated inside the script itself. Then every 100 milliseconds -about 1/10th of a second, the script will check for the rotational status of the associated bones and activate the subsequent morph targets accordingly. Once the joint morph connection is applied, one should see the activation of certain morph shapes by rotating the mapped joints in real-time.
  
===You Will Learn How to===
+
===Learn How to===
  
 
*Retrieve character data.
 
*Retrieve character data.
Line 25: Line 23:
 
*Joint Driven Morph Python script (main.py)
 
*Joint Driven Morph Python script (main.py)
  
===Steps to take:===
+
===Steps to Take===
  
 
#Open iClone and load the sample avatar provided in this example into the scene (Test.iAvatar).
 
#Open iClone and load the sample avatar provided in this example into the scene (Test.iAvatar).

Latest revision as of 00:51, 4 March 2019

Main article: RL Python Samples.

Joint Driven Morph

This script can be used to drive morph targets via real-time rotation of bone joints. The character along with its bones and morphs are designated inside the script itself. Then every 100 milliseconds -about 1/10th of a second, the script will check for the rotational status of the associated bones and activate the subsequent morph targets accordingly. Once the joint morph connection is applied, one should see the activation of certain morph shapes by rotating the mapped joints in real-time.

Learn How to

  • Retrieve character data.
  • Drive morph keys by changing attributes of another entity in the scene.

Required Files

GitHub Page

  • Example character (Test.iAvatar)
  • Joint Driven Morph Python script (main.py)

Steps to Take

  1. Open iClone and load the sample avatar provided in this example into the scene (Test.iAvatar).
  2. Load the Joint Driven Morph python script (main.py) into the project (Script > Load Python > ...).
  3. In the subsequent popup window, click on Apply Join Morph Connection to make the joint to morph connection.
  4. Go into the Edit Motion Layer Panel and click on the elbow joint and rotate it to test the morph activation (Modify > Edit Motion Layer).