IC Python API:RLPy RApplication

From Reallusion Wiki!
Revision as of 01:21, 26 March 2019 by Chuck (RL) (Talk | contribs) (Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules|Modules}} == Detailed Description == This class providing application related API. <span style="background:#ffcccc">( Experime...")

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

Detailed Description

This class providing application related API.

( Experimental Class )
# Get product name
product_name = RLPy.RApplication.GetProductName()
print(product_name)

# Get product version
product_version = RLPy.RApplication.GetProductVersion()
print(product_version)

if product_version < (8,0,0):
print("iClone 8 is still in development.")

# Get product major version
product_major_version = RLPy.RApplication.GetProductMajorVersion()
print(product_major_version)

# Get product minor version
product_minor_version = RLPy.RApplication.GetProductMinorVersion()
print(product_minor_version)

# Get api version
api_version = RLPy.RApplication.GetApiVersion()
print(api_version)

if api_version < (2,0,0):
print("API 2.0 is still in development.")

# Get api major version
api_major_version = RLPy.RApplication.GetApiMajorVersion()
print(api_major_version)

# Get api minor version
api_minor_version = RLPy.RApplication.GetApiMinorVersion()
print(api_minor_version)

# Get program path
program_path = RLPy.RApplication.GetProgramPath()
print(program_path)

# Get default project path
default_project_path = RLPy.RApplication.GetDefaultProjectPath()
print(default_project_path)

# Get template data path
template_data_path = RLPy.RApplication.GetTemplateDataPath()
print(template_data_path)

# Get custom data path
custom_data_path = RLPy.RApplication.GetCustomDataPath()
print(custom_data_path)

# Get shared template data path
shared_template_data_path = RLPy.RApplication.GetSharedTemplateDataPath()
print(shared_template_data_path)

# Get shared custom data path
shared_custom_data_path = RLPy.RApplication.GetSharedCustomDataPath()
print(shared_custom_data_path)

Member Functions

GetApiMajorVersion

RLPy.RApplication.GetApiMajorVersion ( )

Get API major version. ( Experimental API )

Returns

API major version - int

GetApiMinorVersion

RLPy.RApplication.GetApiMinorVersion ( )

Get API minor version. ( Experimental API )

Returns

API minor version - int

GetApiVersion

RLPy.RApplication.GetApiVersion ( )

Get API version. ( Experimental API )

Returns

API version(major, minor, subversion) - int

GetCustomDataPath

RLPy.RApplication.GetCustomDataPath ( )

Get custom data path. ( Experimental API )

Returns

Custom data path - string

GetDefaultProjectPath

RLPy.RApplication.GetDefaultProjectPath ( )

Get default project path. ( Experimental API )

Returns

Default project path - string

GetProductMajorVersion

RLPy.RApplication.GetProductMajorVersion ( )

Get product major version. ( Experimental API )

Returns

Product major version - int

GetProductMinorVersion

RLPy.RApplication.GetProductMinorVersion ( )

Get product minor version. ( Experimental API )

Returns

Product minor version - int

GetProductName

RLPy.RApplication.GetProductName ( )

Get product name. ( Experimental API )

Returns

Product name - string

GetProductVersion

RLPy.RApplication.GetProductVersion ( )

Get product version. ( Experimental API )

Returns

Product version(major, minor, subversion) - int

GetProgramPath

RLPy.RApplication.GetProgramPath ( )

Get program path. ( Experimental API )

Returns

Program path - string

GetSharedCustomDataPath

RLPy.RApplication.GetSharedCustomDataPath ( )

Get shared custom data path. ( Experimental API )

Returns

Shared custom data path - string

GetSharedTemplateDataPath

RLPy.RApplication.GetSharedTemplateDataPath ( )

Get shared template data path. ( Experimental API )

Returns

Shared template data path - string

GetTemplateDataPath

RLPy.RApplication.GetTemplateDataPath ( )

Get template data path. ( Experimental API )

Returns

Template data path - string