Difference between revisions of "IC Python API:Uses and Capabilities"

From Reallusion Wiki!
Jump to: navigation, search
m (v0.7.2)
m (v0.7.4)
Line 236: Line 236:
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
{|class= "wikitable"
 
{|class= "wikitable"
!scope="row"|RO::RCameraDofData* CCameraObject::GetDOFData()
+
!scope="row"|CCameraObject
|Get Camera Dof data.
+
|New <RO::RCameraDofData> CCameraObject::GetDOFData(): Get camera Dof data.
 
|-
 
|-
!scope="row"|RO::RICameraPtr RScene::GetCurrentCamera()
+
!scope="row"|RScene
|Get the camera currently used by the current IC.
+
|New <RO::RICameraPtr> RScene::GetCurrentCamera(): Get the camera currently used in the current scene.
 
|-
 
|-
!scope="row"|RO::RStatus RGlobal::GetScreenSize( int& nWidth, int& nHeight )
+
!scope="row"|RGlobal
|Get Export Render size.
+
|New <RO::RStatus> RGlobal::GetScreenSize( int& nWidth, int& nHeight ): Get Export Render size.
 
|-
 
|-
!scope="row"|RIObject::SetName History
+
!scope="row"|RIObject
|SetName will now be recorded into undo/redo history.
+
|Fixed RIObject::SetName: SetName will now be recorded into undo/redo history.
 
|-
 
|-
!scope="row"|RO::RStatus RScene::ClearSelectObjects()
+
!scope="row"|RScene
|Added the state of deselecting objects in the scene.
+
|<RO::RStatus> RScene::ClearSelectObjects(): Added the state of deselecting objects in the scene.
 
|-
 
|-
!scope="row"|float CCameraObject::GetAngleOfView( RO::RTime kTime ) const
+
!scope="row"|CCameraObject
|Get Iclone camera FOV.
+
|<float> CCameraObject::GetAngleOfView( RO::RTime kTime ) const: Get Iclone camera FOV.
 
|-
 
|-
!scope="row"|RO::RStatus CCameraObject::GetAperture( float& fWidth, float& fHeight )
+
!scope="row"|CCameraObject
|Get Filmback width and height.
+
|<RO::RStatus> CCameraObject::GetAperture( float& fWidth, float& fHeight ): Get Filmback width and height.
 
|-
 
|-
!scope="row"|Modify RIVisemeComponent::AddVisemeKey( RVisemeKey )
+
!scope="row"|RIVisemeComponent
|Pass in RVisemeKey instead.
+
|Modified RIVisemeComponent::AddVisemeKey( RVisemeKey ): Pass in RVisemeKey instead.
 
|-
 
|-
!scope="row"|Modify RIVisemeComponent::RemoveVisemesKey( RVisemeKey )
+
!scope="row"|RIVisemeComponent
|Pass in RVisemeKey instead.
+
|Modified RIVisemeComponent::RemoveVisemesKey( RVisemeKey ): Pass in RVisemeKey instead.
 
|-
 
|-
!scope="row"|Modify RIVisemeComponent::GetVisemeKey( RTime kTime, RVisemeKey& kKey )
+
!scope="row"|RIVisemeComponent
|Pass in RVisemeKey and Reference to retrieve data.
+
|Modified RIVisemeComponent::GetVisemeKey( RTime kTime, RVisemeKey& kKey ): Pass in RVisemeKey and Reference to retrieve data.
 
|-
 
|-
!scope="row"|Modify RIVisemeComponent::GetVisemeKeys()
+
!scope="row"|RIVisemeComponent
|Directly return std :: vector <RVisemeKey>.
+
|Modified RIVisemeComponent::GetVisemeKeys(): Directly return std :: vector <RVisemeKey>.
 
|-
 
|-
 
!scope="row"|Modify RIAvatar::GetGeneration
 
!scope="row"|Modify RIAvatar::GetGeneration

Revision as of 22:49, 25 December 2019

Main article: iClone Python API.

The iClone Python API helps you to extend and customize iClone, and more easily integrate it into a Python-based pipeline. It provides a bridge between iClone and Python libraries and Python tools. The Python SDK is built on top of the iClone C++ SDK, and you can access a subset of the iClone API from Python scripts and execute them in iClone.

The iClone Python API can do the following:

Character Prop Camera Light
Std(G5, CC, etc.) Non-Std Non-Human
Transformation (RTS) 7.4 7.4 7.4 7.4 7.4 7.4
Facial Expression 7.4 Mo-cap Module 7.4 Mo-cap Module - - - -
Morph Animation 7.4 Experimental 7.4 Experimental 7.4 Experimental 7.4 Experimental -
Material 7.4 Experimental 7.4 Experimental 7.4 Experimental 7.4 Experimental 7.4 Experimental
Parameters - - - - 7.4 Experimental 7.4 Experimental

Capabilities

As the iClone Python API continues to evolve, additional capabilities will be added over time. Below are lists of iClone Python API's current capabilities categorized by version number. The lists below are by no means exhaustive.

v0.7

[Expand]
iC 7.4x

v0.7.1

[Expand]
iC 7.4x ( 01/17/2019 - 01/31/2019 )

v0.7.2

[Expand]
iC 7.4x ( 02/15/2019 - 02/27/2019 )

v0.7.4

[Expand]
iC 7.5 ( 04/08/2019 - 07/01/2019 )

v0.7.5

[Expand]
iC 7.6 (07/05/2019 - 07/29/2019)

Limitations

As the iClone Python API continues to evolve, limitations may expand or contract over time. Below are lists of iClone Python API's currently known limitations. This list is not exhaustive.

Inoperable Assets

The following items can not be manipulated and acted upon with Python scripting:

  • Particle FX (iClone & PopcornFX)
  • SpeedTrees
  • Substance Materials
  • Textures Images
  • Constraints: Path, Spring, LookAt, Link, Physics, etc.
  • Physics (Soft & Rigid)
  • IK end-effectors (control attached props instead to drive IK reach)
  • Mesh level components: vertices, edges, faces, etc.
  • Preview camera

Unsupported Operations

The following operations are not available via Python scripting:

  • Saving iClone formats: iProjects, iAvatars, iProps, etc.
  • Pixel operations: multiply, add, overlay, etc.
  • Image processing: Brightness, Hue, Saturation, Sharpen, Soften, Blend, etc.
  • Render parameter settings (Project settings can not be changed)
  • Facial lip-sync keying
  • Preference settings
  • Attach/Detach: changing object parent-child relation
  • Align motion/character root alignment
  • Modeling operations: manipulation of mesh components