Core
Python API functions
Read time 40 minutesLast updated a day ago
cloneEntity
Clone an entity.Parameterscore.cloneEntity(entity) -> core.Entity
Type | Name | Description |
|---|---|---|
| Entity | entity | The entity to clone. |
Type | Name | Description |
|---|---|---|
| Entity | clonedEntity | The cloned entity. |
configureFunctionLogger
Parameterscore.configureFunctionLogger(functionName, enableFunction, enableParameters, enableExecutionTime)
Type | Name | Description |
|---|---|---|
| String | functionName | |
| Boolean | enableFunction | |
| Boolean | enableParameters | |
| Boolean | enableExecutionTime |
createEntity
Create an entity.Parameterscore.createEntity(type) -> core.Entity
Type | Name | Description |
|---|---|---|
| EntityType | type | The type of entity to create. |
Type | Name | Description |
|---|---|---|
| Entity | entity | The created entity id. |
deleteEntities
Delete a set of entities.Parameterscore.deleteEntities(entities)
Type | Name | Description |
|---|---|---|
| EntityList | entities | List of entity to delete. |
getEntitiesByType
Get all entities of a given type.Parameterscore.getEntitiesByType(type, includeUnsubscribed) -> core.EntityList
Type | Name | Description |
|---|---|---|
| EntityType | type | The type of entities to retrieve. |
| Boolean | includeUnsubscribed | Include unsubscribed entities. |
Type | Name | Description |
|---|---|---|
| EntityList | entities | The returned entity list. |
getRemainingSecondsBeforeLicenseTimeout
Get the seconds left before the app force-closes after the license server is disconnected.Returnscore.getRemainingSecondsBeforeLicenseTimeout() -> core.Double
Type | Name | Description |
|---|---|---|
| Double | time |
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.Returnscore.unsavedUserChanges() -> core.Bool
Type | Name | Description |
|---|---|---|
| Bool | hasChanged | Boolean checking if the project has been modified. |
DebugMessage
Desc
getEvent
Get EventDesc of an event.Parameters Returnscore.getEvent(moduleName, eventName) -> core.EventDesc
Type | Name | Description |
|---|---|---|
| EventDesc | event |
- core.getEvents
- core.getFunction
- core.getFunctions
- core.getGroup
- core.getGroups
- core.getModuleTypes
- core.getModules
- core.getModulesName
- core.getType
- core.getTypeAttributes
getEvents
Get events of a group.Parameters Returnscore.getEvents(moduleName, groupName) -> core.EventDescList
Type | Name | Description |
|---|---|---|
| EventDescList | eventDescList |
- core.getEvent
- core.getFunction
- core.getFunctions
- core.getGroup
- core.getGroups
- core.getModuleTypes
- core.getModules
- core.getModulesName
- core.getType
- core.getTypeAttributes
getFunction
Get FunctionDesc of a function.Parameters Returnscore.getFunction(moduleName, functionName) -> core.FunctionDesc
Type | Name | Description |
|---|---|---|
| FunctionDesc | functionDesc |
- core.getEvent
- core.getEvents
- core.getFunctions
- core.getGroup
- core.getGroups
- core.getModuleTypes
- core.getModules
- core.getModulesName
- core.getType
- core.getTypeAttributes
getFunctions
Get functions of a group.Parameters Returnscore.getFunctions(moduleName, groupName) -> core.FunctionDescList
Type | Name | Description |
|---|---|---|
| FunctionDescList | functions |
- core.getEvent
- core.getEvents
- core.getFunction
- core.getGroup
- core.getGroups
- core.getModuleTypes
- core.getModules
- core.getModulesName
- core.getType
- core.getTypeAttributes
getGroup
Get a group desc from a specific module.Parameters Returnscore.getGroup(moduleName, groupName) -> core.GroupDesc
Type | Name | Description |
|---|---|---|
| GroupDesc | group |
- core.getEvent
- core.getEvents
- core.getFunction
- core.getFunctions
- core.getGroups
- core.getModuleTypes
- core.getModules
- core.getModulesName
- core.getType
- core.getTypeAttributes
getGroups
Get all group desc of a module.Parameterscore.getGroups(moduleName) -> core.GroupDescList
Type | Name | Description |
|---|---|---|
| String | moduleName | Target module name. |
Type | Name | Description |
|---|---|---|
| GroupDescList | groups |
- core.getEvent
- core.getEvents
- core.getFunction
- core.getFunctions
- core.getGroup
- core.getModuleTypes
- core.getModules
- core.getModulesName
- core.getType
- core.getTypeAttributes
getModuleTypes
Get TypeDescList from a module name.Parameterscore.getModuleTypes(moduleName) -> core.TypeDescList
Type | Name | Description |
|---|---|---|
| String | moduleName | Target module name. |
Type | Name | Description |
|---|---|---|
| TypeDescList | typeDescList |
- core.getEvent
- core.getEvents
- core.getFunction
- core.getFunctions
- core.getGroup
- core.getGroups
- core.getModules
- core.getModulesName
- core.getType
- core.getTypeAttributes
getModules
Get all modules desc.Returnscore.getModules() -> core.ModuleDescList
Type | Name | Description |
|---|---|---|
| ModuleDescList | modules |
- core.getEvent
- core.getEvents
- core.getFunction
- core.getFunctions
- core.getGroup
- core.getGroups
- core.getModuleTypes
- core.getModulesName
- core.getType
- core.getTypeAttributes
getModulesName
Get all modules name.Returnscore.getModulesName() -> core.StringList
Type | Name | Description |
|---|---|---|
| StringList | modulesName |
- core.getEvent
- core.getEvents
- core.getFunction
- core.getFunctions
- core.getGroup
- core.getGroups
- core.getModuleTypes
- core.getModules
- core.getType
- core.getTypeAttributes
getType
Get TypeDesc from a type name.Parameters Returnscore.getType(moduleName, typeNameStr) -> core.TypeDesc
Type | Name | Description |
|---|---|---|
| TypeDesc | typeDesc |
- core.getEvent
- core.getEvents
- core.getFunction
- core.getFunctions
- core.getGroup
- core.getGroups
- core.getModuleTypes
- core.getModules
- core.getModulesName
- core.getTypeAttributes
getTypeAttributes
Get attributes TypeDesc from a type name.Parameters Returnscore.getTypeAttributes(moduleName, typeNameStr) -> core.StringPairList
Type | Name | Description |
|---|---|---|
| StringPairList | attributes |
- core.getEvent
- core.getEvents
- core.getFunction
- core.getFunctions
- core.getGroup
- core.getGroups
- core.getModuleTypes
- core.getModules
- core.getModulesName
- core.getType
UI
defineCaptchaCallback
Define a callback function to customize the captha which unlock automated functions in interactive products.Parameterscore.defineCaptchaCallback(callback)
Type | Name | Description |
|---|---|---|
| CaptchaCallback | callback | The callback function. |
database
entityExists
Returns true if the entity exists.Parameterscore.entityExists(entity) -> core.Boolean
Type | Name | Description |
|---|---|---|
| Entity | entity | The wanted entity. |
Type | Name | Description |
|---|---|---|
| Boolean | exists | True if it exists. |
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getEntityTypeString
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.load
- core.lockEntityRegistration
- core.save
- core.unlockEntityRegistration
getAllEntities
Returns all the entities on the database.Returnscore.getAllEntities() -> core.EntityList
Type | Name | Description |
|---|---|---|
| EntityList | entities | All entities. |
- core.entityExists
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getEntityTypeString
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.load
- core.lockEntityRegistration
- core.save
- core.unlockEntityRegistration
getCurrentPiXYZFile
Get current (loaded) Pixyz file path.Returnscore.getCurrentPiXYZFile() -> core.FilePath
Type | Name | Description |
|---|---|---|
| FilePath | fileName | The current Pixyz file. |
- core.entityExists
- core.getAllEntities
- core.getEntityType
- core.getEntityTypeString
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.load
- core.lockEntityRegistration
- core.save
- core.unlockEntityRegistration
getEntityType
Returns the type id of the entity.Parameterscore.getEntityType(entity) -> core.EntityType
Type | Name | Description |
|---|---|---|
| Entity | entity | The wanted entity. |
Type | Name | Description |
|---|---|---|
| EntityType | type | Type type of the entity. |
- core.entityExists
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityTypeString
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.load
- core.lockEntityRegistration
- core.save
- core.unlockEntityRegistration
getEntityTypeString
Returns the type name of the entity.Parameterscore.getEntityTypeString(entity) -> core.String
Type | Name | Description |
|---|---|---|
| Entity | entity | The wanted entity. |
Type | Name | Description |
|---|---|---|
| String | type | Name of the entity type. |
- core.entityExists
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.load
- core.lockEntityRegistration
- core.save
- core.unlockEntityRegistration
getTypeStats
Get the database stats.Returnscore.getTypeStats() -> core.IntListList
Type | Name | Description |
|---|---|---|
| IntListList | stats |
- core.entityExists
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getEntityTypeString
- core.isCurrentPiXYZFileModified
- core.load
- core.lockEntityRegistration
- core.save
- core.unlockEntityRegistration
isCurrentPiXYZFileModified
Return true, if the current (loaded) file has been modified since last load or save.Returnscore.isCurrentPiXYZFileModified() -> core.Boolean
Type | Name | Description |
|---|---|---|
| Boolean | modified | True if the file is modified. |
- core.entityExists
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getEntityTypeString
- core.getTypeStats
- core.load
- core.lockEntityRegistration
- core.save
- core.unlockEntityRegistration
load
Load a new scene.Parameterscore.load(fileName)
Type | Name | Description |
|---|---|---|
| FilePath | fileName | Path to load the file. |
- core.entityExists
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getEntityTypeString
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.lockEntityRegistration
- core.save
- core.unlockEntityRegistration
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()
- core.entityExists
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getEntityTypeString
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.load
- core.save
- core.unlockEntityRegistration
save
Save the scene.Parameterscore.save(fileName)
Type | Name | Description |
|---|---|---|
| OutputFilePath | fileName | Path to save the file. |
- core.entityExists
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getEntityTypeString
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.load
- core.lockEntityRegistration
- core.unlockEntityRegistration
unlockEntityRegistration
Unlock Entity registration.See also:core.unlockEntityRegistration()
- core.entityExists
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getEntityTypeString
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.load
- core.lockEntityRegistration
- core.save
license
addWantedToken
Add a license token to the list of wanted tokens. The wanted tokens list is saved on disk in program data and is used at initialization. Prefer using 'core.needToken' instead.Parameterscore.addWantedToken(tokenName)
Type | Name | Description |
|---|---|---|
| String | tokenName | Wanted token. |
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- 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
checkLicense
Verifies the validity of the current installed license to ensure compliance and access control.Returnscore.checkLicense() -> core.Boolean
Type | Name | Description |
|---|---|---|
| Boolean | valid | A Boolean value indicating whether the current installed license is valid (true) or invalid (false). |
- core.addWantedToken
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- 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
checkWebLogin
Check if authentification on the Web license API is sucessfull.Parameters Returnscore.checkWebLogin(login, password) -> core.Boolean
Type | Name | Description |
|---|---|---|
| Boolean | valid |
- core.addWantedToken
- core.checkLicense
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- 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
configureLicenseServer
Configure the license server to use to get floating licenses.Parameterscore.configureLicenseServer(address, port, flexLM=True)
Type | Name | Description |
|---|---|---|
| String | address | Server address. |
| UShort | port | Server port. |
| Boolean | flexLM | Enable FlexLM license server. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- 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
generateActivationCode
Create an activation code to generate an offline license.Parameterscore.generateActivationCode(filePath)
Type | Name | Description |
|---|---|---|
| OutputFilePath | filePath | Path to write the activation code. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- 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
generateDeactivationCode
Create an deactivation code to release the license from this machine.Parameterscore.generateDeactivationCode(filePath)
Type | Name | Description |
|---|---|---|
| OutputFilePath | filePath | Path to write the deactivation code. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- 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
getCurrentLicenseInfos
Get information on current installed license.Returnscore.getCurrentLicenseInfos() -> core.LicenseInfos
Type | Name | Description |
|---|---|---|
| LicenseInfos | licenseInfos |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getLicenseError
- 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
getLicenseError
Get errors from license check.Returns See also:core.getLicenseError() -> core.Boolean, core.String
- 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
getLicenseServer
Get current license server.Returnscore.getLicenseServer() -> core.String, core.UShort, core.Bool
Type | Name | Description |
|---|---|---|
| String | serverHost | Server host name or IP. |
| UShort | serverPort | Server port. |
| Bool | useFlexLM | Set to true if flexLM server. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
installLicense
Add a new license. You can use either an activation .bin file from the website or a .lic file.Parameterscore.installLicense(licensePath, user=False)
Type | Name | Description |
|---|---|---|
| FilePath | licensePath | License file path (.bin or .lic). |
| Boolean | user | Decide if the .lic license is installed only for this user or for all users. If false, Pixyz must be configured by running 'PiXYZFinishInstall' utility first (only once). |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
listOwnedTokens
Get the list of actually owned license tokens.Returnscore.listOwnedTokens() -> core.StringList
Type | Name | Description |
|---|---|---|
| StringList | ownedTokens | Owned token list. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
listTokens
Get the list of license tokens for this product.Parameterscore.listTokens(onlyMandatory=False) -> core.StringList
Type | Name | Description |
|---|---|---|
| Bool | onlyMandatory | If True, optional tokens will not be returned. |
Type | Name | Description |
|---|---|---|
| StringList | tokens | Token list. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
listWantedTokens
Get the list of license token configured to be requested at initialization.Returnscore.listWantedTokens() -> core.StringList
Type | Name | Description |
|---|---|---|
| StringList | tokens | Token list. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
needToken
Requests a license token for the current session. This step should be done after configuring license server. Throws an exception if the token is not available.Parameterscore.needToken(tokenName)
Type | Name | Description |
|---|---|---|
| String | tokenName | Token name. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
ownToken
Returns True if we own a token, without requesting it.Parameterscore.ownToken(tokenName) -> core.Boolean
Type | Name | Description |
|---|---|---|
| String | tokenName | Token name. |
Type | Name | Description |
|---|---|---|
| Boolean | owned | True if the token is owned. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
releaseToken
Release an optional license token.Parameterscore.releaseToken(tokenName)
Type | Name | Description |
|---|---|---|
| String | tokenName | Token name. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
releaseWebLicense
Release License owned by user WEB account.Parameterscore.releaseWebLicense(login, password, id)
Type | Name | Description |
|---|---|---|
| String | login | WEB account login. |
| Password | password | WEB account password. |
| Ident | id | WEB license id. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
removeWantedToken
Remove a license token from the list of wanted optional tokens.Parameterscore.removeWantedToken(tokenName)
Type | Name | Description |
|---|---|---|
| String | tokenName | Unwanted token. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.requestWebLicense
- core.retrieveWebLicenses
- core.tokenValid
requestWebLicense
Request License owned by user WEB account.Parameterscore.requestWebLicense(login, password, id)
Type | Name | Description |
|---|---|---|
| String | login | WEB account login. |
| Password | password | WEB account password. |
| Ident | id | WEB license id. |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.retrieveWebLicenses
- core.tokenValid
retrieveWebLicenses
Retrieves License owned by user WEB account.Parameters Returnscore.retrieveWebLicenses(login, password) -> core.WebLicenseInfoList
Type | Name | Description |
|---|---|---|
| WebLicenseInfoList | licenses |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.tokenValid
tokenValid
Returns True if a token is owned by the product, request will be done if missing.Parameterscore.tokenValid(tokenName) -> core.Bool
Type | Name | Description |
|---|---|---|
| String | tokenName | Token name. |
Type | Name | Description |
|---|---|---|
| Bool | valid |
- core.addWantedToken
- core.checkLicense
- core.checkWebLogin
- core.configureLicenseServer
- core.generateActivationCode
- core.generateDeactivationCode
- core.getCurrentLicenseInfos
- core.getLicenseError
- core.getLicenseServer
- core.installLicense
- core.listOwnedTokens
- core.listTokens
- core.listWantedTokens
- core.needToken
- core.ownToken
- core.releaseToken
- core.releaseWebLicense
- core.removeWantedToken
- core.requestWebLicense
- core.retrieveWebLicenses
parallel
parallelAddJob
Add a job to a parallel session.Parameterscore.parallelAddJob(session, jobCallback, dataPtr)
Type | Name | Description |
|---|---|---|
| ParallelSession | session | |
| ParallelCallback | jobCallback | |
| Ptr | dataPtr |
parallelFinish
Ends a parallel session after waiting for all jobs to finish.Parameterscore.parallelFinish(session)
Type | Name | Description |
|---|---|---|
| ParallelSession | session |
parallelStart
Starts a new parallel session.Parameterscore.parallelStart(progression=False, name="Parallel session", jobCount=-1) -> core.ParallelSession
Type | Name | Description |
|---|---|---|
| Boolean | progression | Enable progression for the parallel session. |
| String | name | Name of the parallel session. |
| Int | jobCount | Count of parallel jobs if known (for progression). |
Type | Name | Description |
|---|---|---|
| ParallelSession | session |
plugins
getModuleDescFromXML
Generate a ModuleDesc from an .xml description.Parameters Returnscore.getModuleDescFromXML(xmlPath, addToModules=True) -> core.ModuleDesc
Type | Name | Description |
|---|---|---|
| ModuleDesc | description |
removeModule
Remove a module added via getModuleDescFromXML.Parameterscore.removeModule(module)
Type | Name | Description |
|---|---|---|
| String | module | Module name. |
progress
popProgression
Leave current progression level.See also:core.popProgression()
pushProgression
Create a new progression level.Parameters See also:core.pushProgression(stepCount, progressName="")
stepProgression
Add a step to current progression level.Parameterscore.stepProgression(stepCount=1)
Type | Name | Description |
|---|---|---|
| Int | stepCount | Step count. |
properties
addCustomProperties
Add multiple custom property to entities that support custom properties.Parameterscore.addCustomProperties(entities, names, values=None, types=None)
Type | Name | Description |
|---|---|---|
| EntityList | entities | Entities that support custom properties. |
| StringList | names | Name of the custom property for each entity. |
| StringList | values | Value of the custom property for each entity. |
| PropertyTypeList | types | Type of the custom property for each entity. |
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
addCustomProperty
Add a custom property to an entity that support custom properties.Parameterscore.addCustomProperty(entity, name, value="", type=0)
Type | Name | Description |
|---|---|---|
| Entity | entity | An entity that support custom properties. |
| String | name | Name of the custom property. |
| String | value | Value of the custom property. |
| PropertyType | type | Type of the custom property. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
getModuleProperty
Returns the value of a module property.Parameters Returnscore.getModuleProperty(module, propertyName) -> core.String
Type | Name | Description |
|---|---|---|
| String | propertyValue | The property value. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
getModulePropertyInfo
Returns the value of a module property.Parameters Returnscore.getModulePropertyInfo(module, propertyName) -> core.PropertyInfo
Type | Name | Description |
|---|---|---|
| PropertyInfo | propertyInfo | The property info. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
getProperties
Get the property value on entities (if the property is not set on an entity, defaultValue is returned).Parameterscore.getProperties(entities, propertyName, defaultValue="") -> core.StringList
Type | Name | Description |
|---|---|---|
| EntityList | entities | List of entities. |
| String | propertyName | The property name. |
| String | defaultValue | Default value to return if the property does not exist on an entity. |
Type | Name | Description |
|---|---|---|
| StringList | values | Property value on each entity. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
getProperty
Get a property value as String on an entity (error if the property does not exist on the entity).Parameters Returnscore.getProperty(entity, propertyName) -> core.String
Type | Name | Description |
|---|---|---|
| String | value | The property value as String. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
getPropertyInfo
Get a property info on an entity (error if the property does not exist on the entity).Parameters Returnscore.getPropertyInfo(entity, propertyName) -> core.PropertyInfo
Type | Name | Description |
|---|---|---|
| PropertyInfo | propertyInfo | The property info. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
hasCustomProperty
Return true if the custom property was found on the occurrence.Parameterscore.hasCustomProperty(entityId, customPropertyName) -> core.Boolean
Type | Name | Description |
|---|---|---|
| Entity | entityId | An entity that support properties. |
| String | customPropertyName | Name of the custom property. |
Type | Name | Description |
|---|---|---|
| Boolean | propertyFound | True if the enity has the custom propery, else False. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
hasProperty
Return true if the property was found on the occurrence, will not throw any exception except if the entity does not exist.Parameterscore.hasProperty(entity, propertyName) -> core.Boolean
Type | Name | Description |
|---|---|---|
| Entity | entity | An entity that support properties. |
| String | propertyName | Name of the property. |
Type | Name | Description |
|---|---|---|
| Boolean | propertyFound | True if the entity has the property asked, else False. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
listEnumLabels
Returns the informations of a module property.Parameterscore.listEnumLabels(enumType) -> core.EnumPropertyInfo
Type | Name | Description |
|---|---|---|
| Int | enumType | The real enum type number (ie. The one return in subtype of PropertyInfo). |
Type | Name | Description |
|---|---|---|
| EnumPropertyInfo | enumPropertyInfo | The enum property info. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
listModuleProperties
Returns all the properties in the given module.Parameterscore.listModuleProperties(module) -> core.PropertyInfoList
Type | Name | Description |
|---|---|---|
| String | module | Name of the module. |
Type | Name | Description |
|---|---|---|
| PropertyInfoList | properties | List of module properties info. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
listProperties
Returns the names and values of the properties available on an entity.Parameterscore.listProperties(entity) -> core.PropertyInfoList
Type | Name | Description |
|---|---|---|
| Entity | entity | Entity to list. |
Type | Name | Description |
|---|---|---|
| PropertyInfoList | properties | List of available properties info. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
listPropertiesBatch
Returns the names and values of the properties available on multiple entities.Parameterscore.listPropertiesBatch(entities) -> core.PropertyInfoListList
Type | Name | Description |
|---|---|---|
| EntityList | entities | Entities to list. |
Type | Name | Description |
|---|---|---|
| PropertyInfoListList | properties | List of available properties info. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
removeCustomProperty
Remove a custom property from an entity that support custom properties.Parameterscore.removeCustomProperty(entity, name)
Type | Name | Description |
|---|---|---|
| Entity | entity | An entity that support custom properties. |
| String | name | Name of the custom property. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
restoreModulePropertyDefaultValue
Restore the default value of a module property.Parameters Returnscore.restoreModulePropertyDefaultValue(module, propertyName) -> core.String
Type | Name | Description |
|---|---|---|
| String | value | The property value as String. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
setModuleProperty
Set the value of a module property.Parameterscore.setModuleProperty(module, propertyName, propertyValue) -> core.String
Type | Name | Description |
|---|---|---|
| String | module | Name of the module. |
| String | propertyName | The property name. |
| String | propertyValue | The property value. |
Type | Name | Description |
|---|---|---|
| String | value | The property value as String. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
setProperties
Set multiple properties values on entities.Parameterscore.setProperties(entities, propertyNames, propertyValues)
Type | Name | Description |
|---|---|---|
| EntityList | entities | List of entities. |
| StringList | propertyNames | The property name for each entity. |
| StringList | propertyValues | The property value for each entity. |
- core.addCustomProperties
- 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
setProperty
Set a property value on an entity.Parameterscore.setProperty(entity, propertyName, propertyValue) -> core.String
Type | Name | Description |
|---|---|---|
| Entity | entity | The entity. |
| String | propertyName | The property name. |
| String | propertyValue | The property value. |
Type | Name | Description |
|---|---|---|
| String | value | The property value as String. |
- core.addCustomProperties
- 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.setProperties
- core.supportCustomProperties
- core.unsetProperty
supportCustomProperties
Return true if an entity support custom properties.Parameterscore.supportCustomProperties(entity) -> core.Boolean
Type | Name | Description |
|---|---|---|
| Entity | entity | An entity. |
Type | Name | Description |
|---|---|---|
| Boolean | support | True if the entity support custom properties, else False. |
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.unsetProperty
unsetProperty
Unset an entity's property.Parameters See also:core.unsetProperty(entity, propertyName)
- core.addCustomProperties
- 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.setProperties
- core.setProperty
- core.supportCustomProperties
system
availableMemory
Returns available memory.Returnscore.availableMemory() -> core.Long, core.Long, core.Long, core.Long
Type | Name | Description |
|---|---|---|
| Long | availVirt | Available virtual memory in bytes. |
| Long | totalVirt | Total virtual memory in bytes. |
| Long | availPhys | Available physical memory in bytes. |
| Long | totalPhys | Total physical memory in bytes. |
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getPixyzWebsiteURL
- core.getProductName
- core.getTempDirectory
- core.getVersion
- core.setCurrentThreadAsProcessThread
checkForUpdates
Check for software update.Returnscore.checkForUpdates() -> core.Bool, core.String, core.String, core.String
Type | Name | Description |
|---|---|---|
| Bool | newVersionAvailable | True if there is a new version available of this product. |
| String | newVersion | New version value. |
| String | newVersionLink | Link to download the new version. |
| String | htmlInfo | Html info associated with the new version. |
- core.availableMemory
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getPixyzWebsiteURL
- core.getProductName
- core.getTempDirectory
- core.getVersion
- core.setCurrentThreadAsProcessThread
clearOtherTemporaryDirectories
Remove all other session temporary directories (warning: make sure that no other instance of pixyz is running.See also:core.clearOtherTemporaryDirectories()
- core.availableMemory
- core.checkForUpdates
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getPixyzWebsiteURL
- core.getProductName
- core.getTempDirectory
- core.getVersion
- core.setCurrentThreadAsProcessThread
getCustomVersionTag
Get the Pixyz custom version tag.Returnscore.getCustomVersionTag() -> core.String
Type | Name | Description |
|---|---|---|
| String | customVersionTag |
- core.availableMemory
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getMemoryUsagePeak
- core.getPixyzWebsiteURL
- core.getProductName
- core.getTempDirectory
- core.getVersion
- core.setCurrentThreadAsProcessThread
getMemoryUsagePeak
Returns the memory usage peak of the current process in MB ( only available on windows yet ).Returnscore.getMemoryUsagePeak() -> core.Long
Type | Name | Description |
|---|---|---|
| Long | peakWorkingSet | Maximum physical memory used by the process until now (in MB). |
- core.availableMemory
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getPixyzWebsiteURL
- core.getProductName
- core.getTempDirectory
- core.getVersion
- core.setCurrentThreadAsProcessThread
getPixyzWebsiteURL
Get the Pixyz website URL.Returnscore.getPixyzWebsiteURL() -> core.String
Type | Name | Description |
|---|---|---|
| String | url |
- core.availableMemory
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getProductName
- core.getTempDirectory
- core.getVersion
- core.setCurrentThreadAsProcessThread
getProductName
Get the Pixyz product name.Returnscore.getProductName() -> core.String
Type | Name | Description |
|---|---|---|
| String | productName |
- core.availableMemory
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getPixyzWebsiteURL
- core.getTempDirectory
- core.getVersion
- core.setCurrentThreadAsProcessThread
getTempDirectory
Get the Pixyz temp directory (server side directory in case of remote access).Returnscore.getTempDirectory() -> core.String
Type | Name | Description |
|---|---|---|
| String | tmpDir |
- core.availableMemory
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getPixyzWebsiteURL
- core.getProductName
- core.getVersion
- core.setCurrentThreadAsProcessThread
getVersion
Get the Pixyz product version.Returnscore.getVersion() -> core.String
Type | Name | Description |
|---|---|---|
| String | version |
- core.availableMemory
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getPixyzWebsiteURL
- core.getProductName
- core.getTempDirectory
- core.setCurrentThreadAsProcessThread
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()
- core.availableMemory
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getPixyzWebsiteURL
- core.getProductName
- core.getTempDirectory
- core.getVersion
undo/redo
clearUndoRedo
Clear undo/redo history.See also:core.clearUndoRedo()
- core.endUndoRedoStep
- core.getRedoStack
- core.getRedoStepUserData
- core.getUndoStack
- core.getUndoStepUserData
- core.hasRecordingStep
- core.redo
- core.startUndoRedoStep
- core.stopProcess
- core.toggleUndoRedo
- core.undo
endUndoRedoStep
End current undo/redo step.Parameterscore.endUndoRedoStep(deleteIfEmpty=True)
Type | Name | Description |
|---|---|---|
| Boolean | deleteIfEmpty | If True, empty step with no modification will be deleted from the stack at the end. |
- core.clearUndoRedo
- core.getRedoStack
- core.getRedoStepUserData
- core.getUndoStack
- core.getUndoStepUserData
- core.hasRecordingStep
- core.redo
- core.startUndoRedoStep
- core.stopProcess
- core.toggleUndoRedo
- core.undo
getRedoStack
Get the history of actions stack.Returnscore.getRedoStack() -> core.StringList
Type | Name | Description |
|---|---|---|
| StringList | redoStack |
- core.clearUndoRedo
- core.endUndoRedoStep
- core.getRedoStepUserData
- core.getUndoStack
- core.getUndoStepUserData
- core.hasRecordingStep
- core.redo
- core.startUndoRedoStep
- core.stopProcess
- core.toggleUndoRedo
- core.undo
getRedoStepUserData
Get user data for undo step #index.Parameterscore.getRedoStepUserData(index) -> core.String
Type | Name | Description |
|---|---|---|
| UInt | index |
Type | Name | Description |
|---|---|---|
| String | userData |
- core.clearUndoRedo
- core.endUndoRedoStep
- core.getRedoStack
- core.getUndoStack
- core.getUndoStepUserData
- core.hasRecordingStep
- core.redo
- core.startUndoRedoStep
- core.stopProcess
- core.toggleUndoRedo
- core.undo
getUndoStack
Get the history of actions stack.Returnscore.getUndoStack() -> core.StringList
Type | Name | Description |
|---|---|---|
| StringList | undoStack |
- core.clearUndoRedo
- core.endUndoRedoStep
- core.getRedoStack
- core.getRedoStepUserData
- core.getUndoStepUserData
- core.hasRecordingStep
- core.redo
- core.startUndoRedoStep
- core.stopProcess
- core.toggleUndoRedo
- core.undo
getUndoStepUserData
Get user data for undo step #index.Parameterscore.getUndoStepUserData(index) -> core.String
Type | Name | Description |
|---|---|---|
| UInt | index |
Type | Name | Description |
|---|---|---|
| String | userData |
- core.clearUndoRedo
- core.endUndoRedoStep
- core.getRedoStack
- core.getRedoStepUserData
- core.getUndoStack
- core.hasRecordingStep
- core.redo
- core.startUndoRedoStep
- core.stopProcess
- core.toggleUndoRedo
- core.undo
hasRecordingStep
Has recording step.Returnscore.hasRecordingStep() -> core.Boolean
Type | Name | Description |
|---|---|---|
| Boolean | hasRecordingStep | True if there is recoding step, else False. |
- core.clearUndoRedo
- core.endUndoRedoStep
- core.getRedoStack
- core.getRedoStepUserData
- core.getUndoStack
- core.getUndoStepUserData
- core.redo
- core.startUndoRedoStep
- core.stopProcess
- core.toggleUndoRedo
- core.undo
redo
Redo some steps.Parameterscore.redo(count=1)
Type | Name | Description |
|---|---|---|
| UInt | count |
- core.clearUndoRedo
- core.endUndoRedoStep
- core.getRedoStack
- core.getRedoStepUserData
- core.getUndoStack
- core.getUndoStepUserData
- core.hasRecordingStep
- core.startUndoRedoStep
- core.stopProcess
- core.toggleUndoRedo
- core.undo
startUndoRedoStep
Start a new undo/redo step.Parameters See also:core.startUndoRedoStep(stepName, userData="")
- core.clearUndoRedo
- core.endUndoRedoStep
- core.getRedoStack
- core.getRedoStepUserData
- core.getUndoStack
- core.getUndoStepUserData
- core.hasRecordingStep
- core.redo
- core.stopProcess
- core.toggleUndoRedo
- core.undo
stopProcess
Stop process (works if there is recording step).See also:core.stopProcess()
- core.clearUndoRedo
- core.endUndoRedoStep
- core.getRedoStack
- core.getRedoStepUserData
- core.getUndoStack
- core.getUndoStepUserData
- core.hasRecordingStep
- core.redo
- core.startUndoRedoStep
- core.toggleUndoRedo
- core.undo
toggleUndoRedo
Toggle undo/redo.See also:core.toggleUndoRedo()
- core.clearUndoRedo
- core.endUndoRedoStep
- core.getRedoStack
- core.getRedoStepUserData
- core.getUndoStack
- core.getUndoStepUserData
- core.hasRecordingStep
- core.redo
- core.startUndoRedoStep
- core.stopProcess
- core.undo
undo
Undo some steps.Parameterscore.undo(count=1)
Type | Name | Description |
|---|---|---|
| UInt | count |
- core.clearUndoRedo
- core.endUndoRedoStep
- core.getRedoStack
- core.getRedoStepUserData
- core.getUndoStack
- core.getUndoStepUserData
- core.hasRecordingStep
- core.redo
- core.startUndoRedoStep
- core.stopProcess
- core.toggleUndoRedo
verbose
addConsoleVerbose
Add a console verbose level.Parameterscore.addConsoleVerbose(level)
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
- core.addLogFileVerbose
- core.addSessionLogFileVerbose
- core.configureInterfaceLogger
- core.getInterfaceLoggerConfiguration
- core.getLogFile
- core.hasConsoleVerbose
- core.log
- core.removeConsoleVerbose
- core.removeLogFileVerbose
- core.removeSessionLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
addLogFileVerbose
Add a log file verbose level.Parameterscore.addLogFileVerbose(level)
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
- core.addConsoleVerbose
- core.addSessionLogFileVerbose
- core.configureInterfaceLogger
- core.getInterfaceLoggerConfiguration
- core.getLogFile
- core.hasConsoleVerbose
- core.log
- core.removeConsoleVerbose
- core.removeLogFileVerbose
- core.removeSessionLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
addSessionLogFileVerbose
Add a session log file (lastSession{Id}.log) verbose level.Parameterscore.addSessionLogFileVerbose(level)
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
- core.addConsoleVerbose
- core.addLogFileVerbose
- core.configureInterfaceLogger
- core.getInterfaceLoggerConfiguration
- core.getLogFile
- core.hasConsoleVerbose
- core.log
- core.removeConsoleVerbose
- core.removeLogFileVerbose
- core.removeSessionLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
configureInterfaceLogger
Set new configuration for the Interface Logger.Parameterscore.configureInterfaceLogger(enableFunction=True, enableParameters=True, enableExecutionTime=True)
Type | Name | Description |
|---|---|---|
| Boolean | enableFunction | If true, the called function names will be print. |
| Boolean | enableParameters | If true, the called function parameters will be print (only if enableFunction=true too). |
| Boolean | enableExecutionTime | If true, the called functions execution times will be print. |
- core.addConsoleVerbose
- core.addLogFileVerbose
- core.addSessionLogFileVerbose
- core.getInterfaceLoggerConfiguration
- core.getLogFile
- core.hasConsoleVerbose
- core.log
- core.removeConsoleVerbose
- core.removeLogFileVerbose
- core.removeSessionLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
getInterfaceLoggerConfiguration
Get the current Interface Logger configuration.Returnscore.getInterfaceLoggerConfiguration() -> core.Boolean, core.Boolean, core.Boolean
Type | Name | Description |
|---|---|---|
| Boolean | functionEnabled | True if the called function names are printed. |
| Boolean | parametersEnabled | True if the called function parameters are printed. |
| Boolean | executionTimeEnabled | True if the called functions execution times are printed. |
- core.addConsoleVerbose
- core.addLogFileVerbose
- core.addSessionLogFileVerbose
- core.configureInterfaceLogger
- core.getLogFile
- core.hasConsoleVerbose
- core.log
- core.removeConsoleVerbose
- core.removeLogFileVerbose
- core.removeSessionLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
getLogFile
Get the path of the log file.Returnscore.getLogFile() -> core.OutputFilePath
Type | Name | Description |
|---|---|---|
| OutputFilePath | path | Path of the log file. |
- core.addConsoleVerbose
- core.addLogFileVerbose
- core.addSessionLogFileVerbose
- core.configureInterfaceLogger
- core.getInterfaceLoggerConfiguration
- core.hasConsoleVerbose
- core.log
- core.removeConsoleVerbose
- core.removeLogFileVerbose
- core.removeSessionLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
hasConsoleVerbose
Returns whether a console verbose level is present.Parameterscore.hasConsoleVerbose(level) -> core.Bool
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
Type | Name | Description |
|---|---|---|
| Bool | enabled | Whether the console verbose level is present. |
- core.addConsoleVerbose
- core.addLogFileVerbose
- core.addSessionLogFileVerbose
- core.configureInterfaceLogger
- core.getInterfaceLoggerConfiguration
- core.getLogFile
- core.log
- core.removeConsoleVerbose
- core.removeLogFileVerbose
- core.removeSessionLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
log
Log a message to Pixyz output.Parameters See also:core.log(message, level)
- core.addConsoleVerbose
- core.addLogFileVerbose
- core.addSessionLogFileVerbose
- core.configureInterfaceLogger
- core.getInterfaceLoggerConfiguration
- core.getLogFile
- core.hasConsoleVerbose
- core.removeConsoleVerbose
- core.removeLogFileVerbose
- core.removeSessionLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
removeConsoleVerbose
Remove a console verbose level.Parameterscore.removeConsoleVerbose(level)
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
- core.addConsoleVerbose
- core.addLogFileVerbose
- core.addSessionLogFileVerbose
- core.configureInterfaceLogger
- core.getInterfaceLoggerConfiguration
- core.getLogFile
- core.hasConsoleVerbose
- core.log
- core.removeLogFileVerbose
- core.removeSessionLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
removeLogFileVerbose
Remove a log file verbose level.Parameterscore.removeLogFileVerbose(level)
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
- core.addConsoleVerbose
- core.addLogFileVerbose
- core.addSessionLogFileVerbose
- core.configureInterfaceLogger
- core.getInterfaceLoggerConfiguration
- core.getLogFile
- core.hasConsoleVerbose
- core.log
- core.removeConsoleVerbose
- core.removeSessionLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
removeSessionLogFileVerbose
Remove a session log file (lastSession{Id}.log) verbose level.Parameterscore.removeSessionLogFileVerbose(level)
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
- core.addConsoleVerbose
- core.addLogFileVerbose
- core.addSessionLogFileVerbose
- core.configureInterfaceLogger
- core.getInterfaceLoggerConfiguration
- core.getLogFile
- core.hasConsoleVerbose
- core.log
- core.removeConsoleVerbose
- core.removeLogFileVerbose
- core.setCoreDumpFile
- core.setLogFile
setCoreDumpFile
Set the path of the core dump file that will be written when a crash occurs (default=none).
Parameterscore.setCoreDumpFile(path)
Type | Name | Description |
|---|---|---|
| OutputFilePath | path | Path of the core dump file. |
- core.addConsoleVerbose
- core.addLogFileVerbose
- core.addSessionLogFileVerbose
- core.configureInterfaceLogger
- core.getInterfaceLoggerConfiguration
- core.getLogFile
- core.hasConsoleVerbose
- core.log
- core.removeConsoleVerbose
- core.removeLogFileVerbose
- core.removeSessionLogFileVerbose
- core.setLogFile
setLogFile
Set the path of the log file.Parameterscore.setLogFile(path, keepHistory=False)
Type | Name | Description |
|---|---|---|
| OutputFilePath | path | Path of the log file. |
| Boolean | keepHistory | Keep session log history in new log file. |