Class Core
- Namespace
Methods
cloneEntity
Clone an entity
core.cloneEntity(entity) -> core.Entity
Parameters
entity
EntityThe entity to clone
Returns
- Entity
The cloned entity
configureFunctionLogger
core.configureFunctionLogger(functionName, enableFunction, enableParameters, enableExecutionTime)
Parameters
createEntity
Create an entity
core.createEntity(type) -> core.Entity
Parameters
type
EntityTypeThe type of entity to create
Returns
- Entity
The created entity id
deleteEntities
Delete a set of entities
core.deleteEntities(entities)
Parameters
entities
EntityListList of entity to delete
resetSession
Clear all the current session (all unsaved work will be lost)
core.resetSession()
unsavedUserChanges
Returns true if the user has made changes to the project
core.unsavedUserChanges() -> core.Bool
Returns
- Bool
Boolean checking if the project has been modified
getEvent
get EventDesc of an event
See also:
core.getEvent(moduleName, eventName) -> core.EventDesc
Parameters
Returns
getEvents
get events of a group
See also:
core.getEvents(moduleName, groupName) -> core.EventDescList
Parameters
Returns
getFunction
get FunctionDesc of a function
See also:
core.getFunction(moduleName, functionName) -> core.FunctionDesc
Parameters
Returns
getFunctions
get functions of a group
See also:
core.getFunctions(moduleName, groupName) -> core.FunctionDescList
Parameters
Returns
getGroup
get a group desc from a specific module
See also:
core.getGroup(moduleName, groupName) -> core.GroupDesc
Parameters
Returns
getGroups
get all group desc of a module
See also:
core.getGroups(moduleName) -> core.GroupDescList
Parameters
moduleName
StringTarget module name
Returns
getModuleTypes
get TypeDescList from a module name
See also:
core.getModuleTypes(moduleName) -> core.TypeDescList
Parameters
moduleName
StringTarget module name
Returns
getModules
get all modules desc
See also:
core.getModules() -> core.ModuleDescList
Returns
getModulesName
get all modules name
See also:
core.getModulesName() -> core.StringList
Returns
getType
get TypeDesc from a type name
See also:
core.getType(moduleName, typeNameStr) -> core.TypeDesc
Parameters
Returns
getTypeAttributes
get attributes TypeDesc from a type name
See also:
core.getTypeAttributes(moduleName, typeNameStr) -> core.StringPairList
Parameters
Returns
softStopAsyncEventManager
Ask the async EventManager to join the main thread, enableEventManagerAsync must be enable
See also:
core.softStopAsyncEventManager()
lockProcessing
Lock the mutex that ensure no processing is done between lock/unlock
See also:
core.lockProcessing()
tryLockProcessing
Try to lock the mutex that ensure no processing is done between lock/unlock, returns true if the mutex has been locked, false if it was already locked
See also:
core.tryLockProcessing() -> core.Bool
Returns
- Bool
True if the mutex has been successfully locked
unlockProcessing
Unlock the mutex that ensure no processing is done between lock/unlock
See also:
core.unlockProcessing()
askString
Invite the user to enter a string
See also:
core.askString(msg, defaultValue) -> core.String
Parameters
Returns
- String
The string entered by the user
askYesNo
Ask a question which need a Yes/No answer
See also:
core.askYesNo(question, defaultValue) -> core.Boolean
Parameters
question
StringQuestion to display
defaultValue
BooleanDefault value (if interfactive mode is disabled)
Returns
- Boolean
True if the user say Yes, else False
choose
Invite the user to choose one value between multiple choice
See also:
core.choose(message, values, defaultValue) -> core.Int
Parameters
message
StringMessage to display
values
StringListPossible values to choose
defaultValue
IntDefault value index
Returns
- Int
Index of the chosen value in the values list
isInteractiveMode
Returns True if the script is in interactive mode, else returns false
See also:
core.isInteractiveMode() -> core.Boolean
Returns
- Boolean
True if interactive, else false
message
Display a message (or a MessageBox in GUI)
See also:
core.message(msg)
Parameters
msg
StringMessage to display
setInteractiveMode
Switch between interactive mode and non-interactive mode, UI functions will no ask user on non-interactive mode and will return default values
See also:
core.setInteractiveMode(interactive=True)
Parameters
interactive
BooleanTrue if you want to enter interactive mode, else False
entityExists
See also:
core.entityExists(entity) -> core.Boolean
Parameters
entity
EntityThe wanted entity
Returns
- Boolean
True if it exists.
getAllEntities
returns all the entities on the database
See also:
core.getAllEntities() -> core.EntityList
Returns
- EntityList
All entities
getCurrentPiXYZFile
Get current (loaded) Pixyz file path
See also:
core.getCurrentPiXYZFile() -> core.FilePath
Returns
- FilePath
The current Pixyz file
getEntityType
returns the type id of the entity
See also:
core.getEntityType(entity) -> core.EntityType
Parameters
entity
EntityThe wanted entity
Returns
- EntityType
Type type of the entity
getEntityTypeString
returns the type name of the entity
See also:
core.getEntityTypeString(entity) -> core.String
Parameters
entity
EntityThe wanted entity
Returns
- String
Name of the entity type
getTypeStats
Get the database stats
See also:
core.getTypeStats() -> core.IntListList
Returns
isCurrentPiXYZFileModified
Return true, if the current (loaded) file has been modified since last load or save
See also:
core.isCurrentPiXYZFileModified() -> core.Boolean
Returns
- Boolean
True if the file is modified
load
Load a new scene
See also:
core.load(fileName)
Parameters
fileName
FilePathPath to load the file
lockEntityRegistration
Lock Entity registration, use with Caution. All entities created after this call will not be saved on .pxz file and will not be listed as existing entities on the Database. Be careful to not references these entities with other registered entities
See also:
core.lockEntityRegistration()
save
Save the scene
See also:
core.save(fileName)
Parameters
fileName
OutputFilePathPath to save the file
unlockEntityRegistration
Unlock Entity registration
See also:
core.unlockEntityRegistration()
addWantedToken
Add a license token to the list of wanted optional tokens
See also:
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.addWantedToken(tokenName)
Parameters
tokenName
StringWanted token
checkLicense
check the current license
See also:
- core.addWantedToken
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.checkLicense() -> core.Boolean
Returns
checkWebLogin
Check if authentification on the Web license API is sucessfull
See also:
- core.addWantedToken
- core.checkLicense
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.checkWebLogin(login, password) -> core.Boolean
Parameters
Returns
configureLicenseServer
Configure the license server to use to get floating licenses
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.configureLicenseServer(address, port, flexLM=True)
Parameters
generateActivationCode
Create an activation code to generate an offline license
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.generateActivationCode(filePath)
Parameters
filePath
OutputFilePathPath to write the activation code
generateDeactivationCode
Create an deactivation code to release the license from this machine
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.generateDeactivationCode(filePath)
Parameters
filePath
OutputFilePathPath to write the deactivation code
getCurrentLicenseInfos
get information on current installed license
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.getCurrentLicenseInfos() -> core.LicenseInfos
Returns
getLicenseServer
Get current license server
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.getLicenseServer() -> core.String, core.UShort, core.Bool
Returns
- String
Server host name or IP
installLicense
install a new license
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.installLicense(licensePath)
Parameters
licensePath
FilePathPath of the license file
listOwnedTokens
Get the list of actually owned license tokens
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.listOwnedTokens() -> core.StringList
Returns
- StringList
Owned token list
listTokens
Get the list of license tokens for this product
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.listTokens(onlyMandatory) -> core.StringList
Parameters
onlyMandatory
BoolIf True, optional tokens will not be returned
Returns
- StringList
Token list
listWantedTokens
Get the list of license token configured to be requested at initialization
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.listWantedTokens() -> core.StringList
Returns
- StringList
Token list
needToken
Ensure that a license token is available, useful to be sure to own floatting licence tokens
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.needToken(tokenName)
Parameters
tokenName
StringToken name
ownToken
Returns True if we own a token, without requesting it
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.ownToken(tokenName) -> core.Boolean
Parameters
tokenName
StringToken name
Returns
- Boolean
True if the token is owned
releaseToken
Release an optional license token
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.releaseToken(tokenName)
Parameters
tokenName
StringToken name
releaseWebLicense
release License owned by user WEB account
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.releaseWebLicense(login, password, id)
Parameters
removeWantedToken
remove a license token from the list of wanted optional tokens
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
core.removeWantedToken(tokenName)
Parameters
tokenName
StringUnwanted token
requestWebLicense
request License owned by user WEB account
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.retrieveWebLicenses
- core.tokenValid
core.requestWebLicense(login, password, id)
Parameters
retrieveWebLicenses
Retrieves License owned by user WEB account
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.tokenValid
core.retrieveWebLicenses(login, password) -> core.WebLicenseInfoList
Parameters
Returns
tokenValid
Returns True if a token is owned by the product, request will be done if missing
See also:
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
core.tokenValid(tokenName) -> core.Bool
Parameters
tokenName
StringToken name
Returns
parallelAddJob
core.parallelAddJob(session, jobCallback, data)
Parameters
session
ParallelSessionjobCallback
ParallelCallbackdata
Ptr
parallelFinish
Ends a parallel session after waiting for all jobs to finish
See also:
core.parallelFinish(session)
Parameters
session
ParallelSession
parallelStart
core.parallelStart(progression, name, jobCount) -> core.ParallelSession
Parameters
progression
BooleanEnable progression for the parallel session
name
StringName of the parallel session
jobCount
IntCount of parallel jobs if known (for progression)
Returns
getOutputFilePath
Return a complete output file path for Pixyz Pipeline, this function is useful for online usage when you know where is the output directory
core.getOutputFilePath(fileName, data) -> core.OutputFilePath
Parameters
fileName
StringThe desired file name (suffix of the path)
data
StringOptional data associated with file
Returns
- OutputFilePath
The complete generated file path
getModuleDescFromXML
core.getModuleDescFromXML(xmlPath, addToModules) -> core.ModuleDesc
Parameters
Returns
removeModule
core.removeModule(module)
Parameters
module
StringModule name
popProgression
core.popProgression()
pushProgression
core.pushProgression(stepCount, progressName="")
Parameters
stepProgression
core.stepProgression(stepCount=1)
Parameters
stepCount
IntStep count
addCustomProperty
Add a custom property to an entity that support custom properties
See also:
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.addCustomProperty(entity, name, value="", type=0)
Parameters
entity
EntityAn entity that support custom properties
name
StringName of the custom property
value
StringValue of the custom property
type
PropertyTypeType of the custom property
getModuleProperty
Returns the value of a module property
See also:
- core.addCustomProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.getModuleProperty(module, propertyName) -> core.String
Parameters
Returns
- String
The property value
getModulePropertyInfo
Returns the value of a module property
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.getModulePropertyInfo(module, propertyName) -> core.PropertyInfo
Parameters
Returns
- PropertyInfo
The property info
getProperties
Get the property value on entities (if the property is not set on an entity, defaultValue is returned)
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.getProperties(entities, propertyName, defaultValue) -> core.StringList
Parameters
entities
EntityListList of entities
propertyName
StringThe property name
defaultValue
StringDefault value to return if the property does not exist on an entity
Returns
- StringList
Property value on each entity
getProperty
Get a property value as String on an entity (error if the property does not exist on the entity)
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.getProperty(entity, propertyName) -> core.String
Parameters
Returns
- String
The property value as String
getPropertyInfo
Get a property info on an entity (error if the property does not exist on the entity)
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.getPropertyInfo(entity, propertyName) -> core.PropertyInfo
Parameters
Returns
- PropertyInfo
The property info
hasCustomProperty
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.hasCustomProperty(entityId, customPropertyName) -> core.Boolean
Parameters
entityId
EntityAn entity that support properties
customPropertyName
StringName of the custom property
Returns
- Boolean
True if the enity has the custom propery, else False
hasProperty
Return true if the property was found on the occurrence, will not throw any exception except if the entity does not exist.
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.hasProperty(entity, propertyName) -> core.Boolean
Parameters
Returns
- Boolean
True if the entity has the property asked, else False
listEnumLabels
Returns the informations of a module property
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.listEnumLabels(enumType) -> core.EnumPropertyInfo
Parameters
enumType
IntThe real enum type number (ie. The one return in subtype of PropertyInfo)
Returns
- EnumPropertyInfo
The enum property info
listModuleProperties
Returns all the properties in the given module
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.listModuleProperties(module) -> core.PropertyInfoList
Parameters
module
StringName of the module
Returns
- PropertyInfoList
List of module properties info
listProperties
Returns the names and values of the properties available on an entity
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.listProperties(entity) -> core.PropertyInfoList
Parameters
entity
EntityEntity to list
Returns
- PropertyInfoList
List of available properties info
listPropertiesBatch
Returns the names and values of the properties available on multiple entities
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.listPropertiesBatch(entities) -> core.PropertyInfoListList
Parameters
entities
EntityListEntities to list
Returns
- PropertyInfoListList
List of available properties info
removeCustomProperty
Remove a custom property from an entity that support custom properties
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.removeCustomProperty(entity, name)
Parameters
restoreModulePropertyDefaultValue
Restore the default value of a module property
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.restoreModulePropertyDefaultValue(module, propertyName) -> core.String
Parameters
Returns
- String
The property value as String
setModuleProperty
Set the value of a module property
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
core.setModuleProperty(module, propertyName, propertyValue) -> core.String
Parameters
module
StringName of the module
propertyName
StringThe property name
propertyValue
StringThe property value
Returns
- String
The property value as String
setProperty
Set a property value on an entity
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.supportCustomProperties
- core.unsetProperty
core.setProperty(entity, propertyName, propertyValue) -> core.String
Parameters
entity
EntityThe entity
propertyName
StringThe property name
propertyValue
StringThe property value
Returns
- String
The property value as String
supportCustomProperties
Return true if an entity support custom properties
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.unsetProperty
core.supportCustomProperties(entity) -> core.Boolean
Parameters
entity
EntityAn entity
Returns
- Boolean
True if the entity support custom properties, else False
unsetProperty
Unset an entity's property
See also:
- core.addCustomProperty
- core.getModuleProperty
- core.getModulePropertyInfo
- core.getProperties
- core.getProperty
- core.getPropertyInfo
- core.hasCustomProperty
- core.hasProperty
- core.listEnumLabels
- core.listModuleProperties
- core.listProperties
- core.listPropertiesBatch
- core.removeCustomProperty
- core.restoreModulePropertyDefaultValue
- core.setModuleProperty
- core.setProperty
- core.supportCustomProperties
core.unsetProperty(entity, propertyName)
Parameters
availableMemory
returns available memory
See also:
core.availableMemory() -> core.Long, core.Long, core.Long, core.Long
Returns
- Long
Available virtual memory in bytes
checkForUpdates
check for software update
See also:
core.checkForUpdates() -> core.Bool, core.String, core.String
Returns
- Bool
True if there is a new version available of this product
clearOtherTemporaryDirectories
remove all other session temporary directories (warning: make sure that no other instance of pixyz is running
See also:
core.clearOtherTemporaryDirectories()
getCustomVersionTag
get the Pixyz custom version tag
See also:
core.getCustomVersionTag() -> core.String
Returns
getMemoryUsagePeak
Returns the memory usage peak of the current process in MB ( only available on windows yet )
See also:
core.getMemoryUsagePeak() -> core.Long
Returns
- Long
Maximum physical memory used by the process until now (in MB)
getPixyzWebsiteURL
get the Pixyz website URL
See also:
core.getPixyzWebsiteURL() -> core.String
Returns
getProductName
get the Pixyz product name
See also:
core.getProductName() -> core.String
Returns
getTempDirectory
get the Pixyz temp directory (server side directory in case of remote access)
See also:
core.getTempDirectory() -> core.String
Returns
getVersion
get the Pixyz product version
See also:
core.getVersion() -> core.String
Returns
pushAnalytic
push custom analytic event (Only for authorized products)
See also:
core.pushAnalytic(name, data="")
Parameters
removeDirectory
Remove a directory and all its contents
See also:
core.removeDirectory(path)
Parameters
path
DirectoryPathPath to the directory to remove
setCurrentThreadAsProcessThread
Set the process thread. Use this function when you want to get progress changed callbacks from another thread as the one you initialized Pixyz on.
See also:
core.setCurrentThreadAsProcessThread()
clearUndoRedo
Clear undo/redo history
See also:
core.clearUndoRedo()
endUndoRedoStep
End current undo/redo step
See also:
core.endUndoRedoStep()
getRedoStack
Get the history of actions stack
See also:
core.getRedoStack() -> core.StringList
Returns
getUndoStack
Get the history of actions stack
See also:
core.getUndoStack() -> core.StringList
Returns
hasRecordingStep
Has recording step
See also:
core.hasRecordingStep() -> core.Boolean
Returns
- Boolean
True if there is recoding step, else False
redo
redo some steps
See also:
core.redo(count=1)
Parameters
count
UInt
startUndoRedoStep
Start a new undo/redo step
See also:
core.startUndoRedoStep(stepName)
Parameters
stepName
String
stopProcess
Stop process (works if there is recording step)
See also:
core.stopProcess()
toggleUndoRedo
Toggle undo/redo
See also:
core.toggleUndoRedo()
undo
undo some steps
See also:
core.undo(count=1)
Parameters
count
UInt
getColorFromIndex
Returns a unique color associated with an index
core.getColorFromIndex(index) -> core.Color
Parameters
index
IntIndex of the color (index must be less than 2^24)
Returns
- Color
The unique color associated to the given index
addConsoleVerbose
add a console verbose level
See also:
core.addConsoleVerbose(level)
Parameters
level
VerboseVerbose level
addLogFileVerbose
add a log file verbose level
See also:
core.addLogFileVerbose(level)
Parameters
level
VerboseVerbose level
addSessionLogFileVerbose
add a session log file (lastSession.log) verbose level
See also:
core.addSessionLogFileVerbose(level)
Parameters
level
VerboseVerbose level
configureInterfaceLogger
Set new configuration for the Interface Logger
See also:
core.configureInterfaceLogger(enableFunction=True, enableParameters=True, enableExecutionTime=True)
Parameters
enableFunction
BooleanIf true, the called function names will be print
enableParameters
BooleanIf true, the called function parameters will be print (only if enableFunction=true too)
enableExecutionTime
BooleanIf true, the called functions execution times will be print
getInterfaceLoggerConfiguration
Get the current Interface Logger configuration
See also:
core.getInterfaceLoggerConfiguration() -> core.Boolean, core.Boolean, core.Boolean
Returns
- Boolean
True if the called function names are printed
getLogFile
get the path of the log file
See also:
core.getLogFile() -> core.OutputFilePath
Returns
- OutputFilePath
Path of the log file
log
log a message to Pixyz output
See also:
core.log(message, level)
Parameters
removeConsoleVerbose
remove a console verbose level
See also:
core.removeConsoleVerbose(level)
Parameters
level
VerboseVerbose level
removeLogFileVerbose
remove a log file verbose level
See also:
core.removeLogFileVerbose(level)
Parameters
level
VerboseVerbose level
removeSessionLogFileVerbose
remove a session log file (lastSession.log) verbose level
See also:
core.removeSessionLogFileVerbose(level)
Parameters
level
VerboseVerbose level
setCoreDumpFile
set the path of the core dump file that will be written when a crash occurs (default=none)
Warning
This function is tagged as EXPERIMENTAL.
See also:
core.setCoreDumpFile(path)
Parameters
path
OutputFilePathPath of the core dump file
setLogFile
set the path of the log file
See also:
core.setLogFile(path)
Parameters
path
OutputFilePathPath of the log file
AfterEntityPropertyChanged
def onAfterEntityPropertyChanged(entity, property, entityType):
pass
id = core.addAfterEntityPropertyChangedCallback(onAfterEntityPropertyChanged)
...
core.removeAfterEntityPropertyChangedCallback(id)
Parameters
entity
EntityEntity changed
property
StringProperty changed
entityType
IntType of the entity changed
AfterModulePropertyChanged
def onAfterModulePropertyChanged(module, property):
pass
id = core.addAfterModulePropertyChangedCallback(onAfterModulePropertyChanged)
...
core.removeAfterModulePropertyChangedCallback(id)
Parameters
AtExit
def onAtExit():
pass
id = core.addAtExitCallback(onAtExit)
...
core.removeAtExitCallback(id)
BeforeEntityPropertyChanged
def onBeforeEntityPropertyChanged(entity, property):
pass
id = core.addBeforeEntityPropertyChangedCallback(onBeforeEntityPropertyChanged)
...
core.removeBeforeEntityPropertyChangedCallback(id)
Parameters
BeforeModulePropertyChanged
def onBeforeModulePropertyChanged(module, property):
pass
id = core.addBeforeModulePropertyChangedCallback(onBeforeModulePropertyChanged)
...
core.removeBeforeModulePropertyChangedCallback(id)
Parameters
BeforeSessionReset
def onBeforeSessionReset():
pass
id = core.addBeforeSessionResetCallback(onBeforeSessionReset)
...
core.removeBeforeSessionResetCallback(id)
CurrentFileChanged
def onCurrentFileChanged():
pass
id = core.addCurrentFileChangedCallback(onCurrentFileChanged)
...
core.removeCurrentFileChangedCallback(id)
EnteringUnsafeMode
def onEnteringUnsafeMode():
pass
id = core.addEnteringUnsafeModeCallback(onEnteringUnsafeMode)
...
core.removeEnteringUnsafeModeCallback(id)
LeavingUnsafeMode
def onLeavingUnsafeMode():
pass
id = core.addLeavingUnsafeModeCallback(onLeavingUnsafeMode)
...
core.removeLeavingUnsafeModeCallback(id)
OnConsoleMessage
def onOnConsoleMessage(text, verboseLevel):
pass
id = core.addOnConsoleMessageCallback(onOnConsoleMessage)
...
core.removeOnConsoleMessageCallback(id)
Parameters
OnSessionReset
def onOnSessionReset():
pass
id = core.addOnSessionResetCallback(onOnSessionReset)
...
core.removeOnSessionResetCallback(id)
ProgressChanged
def onProgressChanged(progress):
pass
id = core.addProgressChangedCallback(onProgressChanged)
...
core.removeProgressChangedCallback(id)
Parameters
progress
IntCurrent progression
ProgressStepFinished
def onProgressStepFinished():
pass
id = core.addProgressStepFinishedCallback(onProgressStepFinished)
...
core.removeProgressStepFinishedCallback(id)
ProgressStepStart
def onProgressStepStart(stepName):
pass
id = core.addProgressStepStartCallback(onProgressStepStart)
...
core.removeProgressStepStartCallback(id)
Parameters
stepName
StringName of the started step
DebugEvent
def onDebugEvent(event_type):
pass
id = core.addDebugEventCallback(onDebugEvent)
...
core.removeDebugEventCallback(id)
Parameters
event_type
IntThe type of signal to emit
UndoRedoStackChanged
def onUndoRedoStackChanged():
pass
id = core.addUndoRedoStackChangedCallback(onUndoRedoStackChanged)
...
core.removeUndoRedoStackChangedCallback(id)