IC8 Python API

From Reallusion Wiki!
Revision as of 19:33, 30 November 2022 by Chuck (RL) (Talk | contribs) (Created page with "{{TOC}} {{Parent|Main_Page|Main Page}} == Scripting in iClone == Scripting can be a powerful part of your arsenal for dealing with 3D art production. Whether you are looki...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Main article: Main Page.

Scripting in iClone

Scripting can be a powerful part of your arsenal for dealing with 3D art production. Whether you are looking for a way to automate some parts of your workflow or develop more advanced toolkits and plugins, scripting can offer something for everyone. iClone Python API gives access to the robust low-level implementations hidden within iClone while abstracting its complexity to a manageable level.

Why Python?

Python is a general-purpose language, which means it can be used to build just about any program — a process made easy with the right tools and code libraries. Professionally, Python is great for backend web development, data analysis, artificial intelligence, and scientific computing. Many developers have also used Python to build productivity tools, games, and desktop apps, so there are plenty of resources to help you learn how to create those as well.

Python is easy to pick up for experienced programmers coming from other languages and easy to learn for beginners and novices. Which can also explain its wide-spread support with 3D software with the likes of Autodesk 3dsMax, Autodesk Maya, Maxon Cinema4d, Blender, etc.

Reallusion cannot be held responsible for any damages to your code or project schedule as a result of your study and use of this documentation or correspondence with our SDK support team. Reallusion is not obliged to make any changes to the SDK at your request. When using this reference or inquiring for support, you do so at your own risk.

Module & Class Documentation

iC8 Python Modules
iC8 Python Modules - Ordered List
iC8 Python Class Members
iC8 Python Enumerations

Getting Started

iClone Conventions

World Axis: Z up, -Y forward, Right-handed Coordinate system
Rotational System: Quaternion, Matrix3 or Euler Angle ( Radians )
Scale Units: 1 equals to 100% scale.
Time Units: 1 equals to 1 millisecond and 1,000 equals to 1 second.

User Interface

iClone 8 upgrades the Python version from 3.6 to 3.8 and Qt from version 5.6 to 5.15.2. Since Qt5.15.2 has made a lot of adjustments in modules and methods, if you use Pyside2-related functions, you need to make corresponding modifications in iClone8 to execute correctly, otherwise, a syntax error message will appear in the Console Log and cannot be loaded correctly.

1 from shiboken2 import wrapInstance
2 QtCore.QStringListModel

For more information, see the Qt for Python Documentation.

See Also

Checking Program Compatibility
Dealing with Custom FPS
Removing Bone Animation
End Effector Animation
Facial Animation
Smart Content Manager

External Resources

Python.org
Qt for Python (PySide2)
Reallusion GitHub

Release Cycles

The Python APIs are continuously being expanded which lends to shorter release cycles that expose features in the early to intermediate stages of development. This strategy provides instantaneous feedback for developing features while providing insights into user requirements. Feature releases come in two forms:

  • Early Access Features - We may deprecate this functionality at our discretion. However, we support backward compatibility for assets, and this feature's API should be stable.
  • Experimental Features - We do not support backward compatibility for assets, the API for this feature is subject to change, and we may remove functionality at our discretion.