Core
Python API functions
Read time 40 minutesLast updated 8 months ago
cloneEntity
Clone an entity.
core.cloneEntity(entity) -> core.Entity
Parameters
Type | Name | Description |
|---|---|---|
| Entity | entity | The entity to clone. |
Returns
Type | Name | Description |
|---|---|---|
| Entity | clonedEntity | The cloned entity. |
configureFunctionLogger
core.configureFunctionLogger(functionName, enableFunction, enableParameters, enableExecutionTime)
Parameters
Type | Name | Description |
|---|---|---|
| String | functionName | |
| Boolean | enableFunction | |
| Boolean | enableParameters | |
| Boolean | enableExecutionTime |
createEntity
Create an entity.
core.createEntity(type) -> core.Entity
Parameters
Type | Name | Description |
|---|---|---|
| EntityType | type | The type of entity to create. |
Returns
Type | Name | Description |
|---|---|---|
| Entity | entity | The created entity id. |
deleteEntities
Delete a set of entities.
core.deleteEntities(entities)
Parameters
Type | Name | Description |
|---|---|---|
| EntityList | entities | List of entity to delete. |
getEntitiesByType
Get all entities of a given type.
core.getEntitiesByType(type, includeUnsubscribed) -> core.EntityList
Parameters
Type | Name | Description |
|---|---|---|
| EntityType | type | The type of entities to retrieve. |
| Boolean | includeUnsubscribed | Include unsubscribed entities. |
Returns
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.
core.getRemainingSecondsBeforeLicenseTimeout() -> core.Double
Returns
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.
core.unsavedUserChanges() -> core.Bool
Returns
Type | Name | Description |
|---|---|---|
| Bool | hasChanged | Boolean checking if the project has been modified. |
DebugMessage
Desc
getEvent
Get EventDesc of an event.
core.getEvent(moduleName, eventName) -> core.EventDesc
Parameters
Returns
Type | Name | Description |
|---|---|---|
| EventDesc | event |
See also:
- 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.
core.getEvents(moduleName, groupName) -> core.EventDescList
Parameters
Returns
Type | Name | Description |
|---|---|---|
| EventDescList | eventDescList |
See also:
- 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.
core.getFunction(moduleName, functionName) -> core.FunctionDesc
Parameters
Returns
Type | Name | Description |
|---|---|---|
| FunctionDesc | functionDesc |
See also:
- 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.
core.getFunctions(moduleName, groupName) -> core.FunctionDescList
Parameters
Returns
Type | Name | Description |
|---|---|---|
| FunctionDescList | functions |
See also:
- 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.
core.getGroup(moduleName, groupName) -> core.GroupDesc
Parameters
Returns
Type | Name | Description |
|---|---|---|
| GroupDesc | group |
See also:
- 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.
core.getGroups(moduleName) -> core.GroupDescList
Parameters
Type | Name | Description |
|---|---|---|
| String | moduleName | Target module name. |
Returns
Type | Name | Description |
|---|---|---|
| GroupDescList | groups |
See also:
- 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.
core.getModuleTypes(moduleName) -> core.TypeDescList
Parameters
Type | Name | Description |
|---|---|---|
| String | moduleName | Target module name. |
Returns
Type | Name | Description |
|---|---|---|
| TypeDescList | typeDescList |
See also:
- 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.
core.getModules() -> core.ModuleDescList
Returns
Type | Name | Description |
|---|---|---|
| ModuleDescList | modules |
See also:
- 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.
core.getModulesName() -> core.StringList
Returns
Type | Name | Description |
|---|---|---|
| StringList | modulesName |
See also:
- 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.
core.getType(moduleName, typeNameStr) -> core.TypeDesc
Parameters
Returns
Type | Name | Description |
|---|---|---|
| TypeDesc | typeDesc |
See also:
- 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.
core.getTypeAttributes(moduleName, typeNameStr) -> core.StringPairList
Parameters
Returns
Type | Name | Description |
|---|---|---|
| StringPairList | attributes |
See also:
- 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.
core.defineCaptchaCallback(callback)
Parameters
Type | Name | Description |
|---|---|---|
| CaptchaCallback | callback | The callback function. |
database
entityExists
Returns true if the entity exists.
core.entityExists(entity) -> core.Boolean
Parameters
Type | Name | Description |
|---|---|---|
| Entity | entity | The wanted entity. |
Returns
Type | Name | Description |
|---|---|---|
| Boolean | exists | True if it exists. |
See also:
- 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.
core.getAllEntities() -> core.EntityList
Returns
Type | Name | Description |
|---|---|---|
| EntityList | entities | All entities. |
See also:
- 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.
core.getCurrentPiXYZFile() -> core.FilePath
Returns
Type | Name | Description |
|---|---|---|
| FilePath | fileName | The current Pixyz file. |
See also:
- 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.
core.getEntityType(entity) -> core.EntityType
Parameters
Type | Name | Description |
|---|---|---|
| Entity | entity | The wanted entity. |
Returns
Type | Name | Description |
|---|---|---|
| EntityType | type | Type type of the entity. |
See also:
- 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.
core.getEntityTypeString(entity) -> core.String
Parameters
Type | Name | Description |
|---|---|---|
| Entity | entity | The wanted entity. |
Returns
Type | Name | Description |
|---|---|---|
| String | type | Name of the entity type. |
See also:
- 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.
core.getTypeStats() -> core.IntListList
Returns
Type | Name | Description |
|---|---|---|
| IntListList | stats |
See also:
- 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.
core.isCurrentPiXYZFileModified() -> core.Boolean
Returns
Type | Name | Description |
|---|---|---|
| Boolean | modified | True if the file is modified. |
See also:
- 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.
core.load(fileName)
Parameters
Type | Name | Description |
|---|---|---|
| FilePath | fileName | Path to load the file. |
See also:
- 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.
core.lockEntityRegistration()
See also:
- core.entityExists
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getEntityTypeString
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.load
- core.save
- core.unlockEntityRegistration
save
Save the scene.
core.save(fileName)
Parameters
Type | Name | Description |
|---|---|---|
| OutputFilePath | fileName | Path to save the file. |
See also:
- core.entityExists
- core.getAllEntities
- core.getCurrentPiXYZFile
- core.getEntityType
- core.getEntityTypeString
- core.getTypeStats
- core.isCurrentPiXYZFileModified
- core.load
- core.lockEntityRegistration
- core.unlockEntityRegistration
unlockEntityRegistration
Unlock Entity registration.
core.unlockEntityRegistration()
See also:
- 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.
core.addWantedToken(tokenName)
Parameters
Type | Name | Description |
|---|---|---|
| String | tokenName | Wanted token. |
See also:
- 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.
core.checkLicense() -> core.Boolean
Returns
Type | Name | Description |
|---|---|---|
| Boolean | valid | A Boolean value indicating whether the current installed license is valid (true) or invalid (false). |
See also:
- 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.
core.checkWebLogin(login, password) -> core.Boolean
Parameters
Returns
Type | Name | Description |
|---|---|---|
| Boolean | valid |
See also:
- 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.
core.configureLicenseServer(address, port, flexLM=True)
Parameters
Type | Name | Description |
|---|---|---|
| String | address | Server address. |
| UShort | port | Server port. |
| Boolean | flexLM | Enable FlexLM license server. |
See also:
- 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.
core.generateActivationCode(filePath)
Parameters
Type | Name | Description |
|---|---|---|
| OutputFilePath | filePath | Path to write the activation code. |
See also:
- 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.
core.generateDeactivationCode(filePath)
Parameters
Type | Name | Description |
|---|---|---|
| OutputFilePath | filePath | Path to write the deactivation code. |
See also:
- 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.
core.getCurrentLicenseInfos() -> core.LicenseInfos
Returns
Type | Name | Description |
|---|---|---|
| LicenseInfos | licenseInfos |
See also:
- 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.
core.getLicenseError() -> core.Boolean, core.String
Returns
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
getLicenseServer
Get current license server.
core.getLicenseServer() -> core.String, core.UShort, core.Bool
Returns
Type | Name | Description |
|---|---|---|
| String | serverHost | Server host name or IP. |
| UShort | serverPort | Server port. |
| Bool | useFlexLM | Set to true if flexLM server. |
See also:
- 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.
core.installLicense(licensePath, user=False)
Parameters
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). |
See also:
- 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.
core.listOwnedTokens() -> core.StringList
Returns
Type | Name | Description |
|---|---|---|
| StringList | ownedTokens | Owned token list. |
See also:
- 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.
core.listTokens(onlyMandatory=False) -> core.StringList
Parameters
Type | Name | Description |
|---|---|---|
| Bool | onlyMandatory | If True, optional tokens will not be returned. |
Returns
Type | Name | Description |
|---|---|---|
| StringList | tokens | Token list. |
See also:
- 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.
core.listWantedTokens() -> core.StringList
Returns
Type | Name | Description |
|---|---|---|
| StringList | tokens | Token list. |
See also:
- 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.
core.needToken(tokenName)
Parameters
Type | Name | Description |
|---|---|---|
| String | tokenName | Token name. |
See also:
- 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.
core.ownToken(tokenName) -> core.Boolean
Parameters
Type | Name | Description |
|---|---|---|
| String | tokenName | Token name. |
Returns
Type | Name | Description |
|---|---|---|
| Boolean | owned | True if the token is owned. |
See also:
- 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.
core.releaseToken(tokenName)
Parameters
Type | Name | Description |
|---|---|---|
| String | tokenName | Token name. |
See also:
- 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.
core.releaseWebLicense(login, password, id)
Parameters
Type | Name | Description |
|---|---|---|
| String | login | WEB account login. |
| Password | password | WEB account password. |
| Ident | id | WEB license id. |
See also:
- 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.
core.removeWantedToken(tokenName)
Parameters
Type | Name | Description |
|---|---|---|
| String | tokenName | Unwanted token. |
See also:
- 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.
core.requestWebLicense(login, password, id)
Parameters
Type | Name | Description |
|---|---|---|
| String | login | WEB account login. |
| Password | password | WEB account password. |
| Ident | id | WEB license id. |
See also:
- 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.
core.retrieveWebLicenses(login, password) -> core.WebLicenseInfoList
Parameters
Returns
Type | Name | Description |
|---|---|---|
| WebLicenseInfoList | licenses |
See also:
- 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.
core.tokenValid(tokenName) -> core.Bool
Parameters
Type | Name | Description |
|---|---|---|
| String | tokenName | Token name. |
Returns
Type | Name | Description |
|---|---|---|
| Bool | valid |
See also:
- 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.
core.parallelAddJob(session, jobCallback, dataPtr)
Parameters
Type | Name | Description |
|---|---|---|
| ParallelSession | session | |
| ParallelCallback | jobCallback | |
| Ptr | dataPtr |
See also:
parallelFinish
Ends a parallel session after waiting for all jobs to finish.
core.parallelFinish(session)
Parameters
Type | Name | Description |
|---|---|---|
| ParallelSession | session |
See also:
parallelStart
Starts a new parallel session.
core.parallelStart(progression=False, name="Parallel session", jobCount=-1) -> core.ParallelSession
Parameters
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). |
Returns
Type | Name | Description |
|---|---|---|
| ParallelSession | session |
See also:
plugins
getModuleDescFromXML
Generate a ModuleDesc from an .xml description.
core.getModuleDescFromXML(xmlPath, addToModules=True) -> core.ModuleDesc
Parameters
Returns
Type | Name | Description |
|---|---|---|
| ModuleDesc | description |
See also:
removeModule
Remove a module added via getModuleDescFromXML.
core.removeModule(module)
Parameters
Type | Name | Description |
|---|---|---|
| String | module | Module name. |
See also:
progress
popProgression
Leave current progression level.
core.popProgression()
See also:
pushProgression
Create a new progression level.
core.pushProgression(stepCount, progressName="")
Parameters
See also:
stepProgression
Add a step to current progression level.
core.stepProgression(stepCount=1)
Parameters
Type | Name | Description |
|---|---|---|
| Int | stepCount | Step count. |
See also:
properties
addCustomProperties
Add multiple custom property to entities that support custom properties.
core.addCustomProperties(entities, names, values=None, types=None)
Parameters
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. |
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.setProperties
- core.setProperty
- core.supportCustomProperties
- core.unsetProperty
addCustomProperty
Add a custom property to an entity that support custom properties.
core.addCustomProperty(entity, name, value="", type=0)
Parameters
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. |
See also:
- 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.
core.getModuleProperty(module, propertyName) -> core.String
Parameters
Returns
Type | Name | Description |
|---|---|---|
| String | propertyValue | The property value. |
See also:
- 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.
core.getModulePropertyInfo(module, propertyName) -> core.PropertyInfo
Parameters
Returns
Type | Name | Description |
|---|---|---|
| PropertyInfo | propertyInfo | The property info. |
See also:
- 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).
core.getProperties(entities, propertyName, defaultValue="") -> core.StringList
Parameters
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. |
Returns
Type | Name | Description |
|---|---|---|
| StringList | values | Property value on each entity. |
See also:
- 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).
core.getProperty(entity, propertyName) -> core.String
Parameters
Returns
Type | Name | Description |
|---|---|---|
| String | value | The property value as String. |
See also:
- 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).
core.getPropertyInfo(entity, propertyName) -> core.PropertyInfo
Parameters
Returns
Type | Name | Description |
|---|---|---|
| PropertyInfo | propertyInfo | The property info. |
See also:
- 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.
core.hasCustomProperty(entityId, customPropertyName) -> core.Boolean
Parameters
Type | Name | Description |
|---|---|---|
| Entity | entityId | An entity that support properties. |
| String | customPropertyName | Name of the custom property. |
Returns
Type | Name | Description |
|---|---|---|
| Boolean | propertyFound | True if the enity has the custom propery, else False. |
See also:
- 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.
core.hasProperty(entity, propertyName) -> core.Boolean
Parameters
Type | Name | Description |
|---|---|---|
| Entity | entity | An entity that support properties. |
| String | propertyName | Name of the property. |
Returns
Type | Name | Description |
|---|---|---|
| Boolean | propertyFound | True if the entity has the property asked, else False. |
See also:
- 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.
core.listEnumLabels(enumType) -> core.EnumPropertyInfo
Parameters
Type | Name | Description |
|---|---|---|
| Int | enumType | The real enum type number (ie. The one return in subtype of PropertyInfo). |
Returns
Type | Name | Description |
|---|---|---|
| EnumPropertyInfo | enumPropertyInfo | The enum property info. |
See also:
- 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.
core.listModuleProperties(module) -> core.PropertyInfoList
Parameters
Type | Name | Description |
|---|---|---|
| String | module | Name of the module. |
Returns
Type | Name | Description |
|---|---|---|
| PropertyInfoList | properties | List of module properties info. |
See also:
- 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.
core.listProperties(entity) -> core.PropertyInfoList
Parameters
Type | Name | Description |
|---|---|---|
| Entity | entity | Entity to list. |
Returns
Type | Name | Description |
|---|---|---|
| PropertyInfoList | properties | List of available properties info. |
See also:
- 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.
core.listPropertiesBatch(entities) -> core.PropertyInfoListList
Parameters
Type | Name | Description |
|---|---|---|
| EntityList | entities | Entities to list. |
Returns
Type | Name | Description |
|---|---|---|
| PropertyInfoListList | properties | List of available properties info. |
See also:
- 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.
core.removeCustomProperty(entity, name)
Parameters
Type | Name | Description |
|---|---|---|
| Entity | entity | An entity that support custom properties. |
| String | name | Name of the custom property. |
See also:
- 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.
core.restoreModulePropertyDefaultValue(module, propertyName) -> core.String
Parameters
Returns
Type | Name | Description |
|---|---|---|
| String | value | The property value as String. |
See also:
- 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.
core.setModuleProperty(module, propertyName, propertyValue) -> core.String
Parameters
Type | Name | Description |
|---|---|---|
| String | module | Name of the module. |
| String | propertyName | The property name. |
| String | propertyValue | The property value. |
Returns
Type | Name | Description |
|---|---|---|
| String | value | The property value as String. |
See also:
- 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.
core.setProperties(entities, propertyNames, propertyValues)
Parameters
Type | Name | Description |
|---|---|---|
| EntityList | entities | List of entities. |
| StringList | propertyNames | The property name for each entity. |
| StringList | propertyValues | The property value for each entity. |
See also:
- 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.
core.setProperty(entity, propertyName, propertyValue) -> core.String
Parameters
Type | Name | Description |
|---|---|---|
| Entity | entity | The entity. |
| String | propertyName | The property name. |
| String | propertyValue | The property value. |
Returns
Type | Name | Description |
|---|---|---|
| String | value | The property value as String. |
See also:
- 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.
core.supportCustomProperties(entity) -> core.Boolean
Parameters
Type | Name | Description |
|---|---|---|
| Entity | entity | An entity. |
Returns
Type | Name | Description |
|---|---|---|
| Boolean | support | True if the entity support custom properties, else False. |
See also:
- 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.
core.unsetProperty(entity, propertyName)
Parameters
See also:
- 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.
core.availableMemory() -> core.Long, core.Long, core.Long, core.Long
Returns
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. |
See also:
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getPixyzWebsiteURL
- core.getProductName
- core.getTempDirectory
- core.getVersion
- core.setCurrentThreadAsProcessThread
checkForUpdates
Check for software update.
core.checkForUpdates() -> core.Bool, core.String, core.String, core.String
Returns
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. |
See also:
- 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.
core.clearOtherTemporaryDirectories()
See also:
- 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.
core.getCustomVersionTag() -> core.String
Returns
Type | Name | Description |
|---|---|---|
| String | customVersionTag |
See also:
- 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 ).
core.getMemoryUsagePeak() -> core.Long
Returns
Type | Name | Description |
|---|---|---|
| Long | peakWorkingSet | Maximum physical memory used by the process until now (in MB). |
See also:
- core.availableMemory
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getPixyzWebsiteURL
- core.getProductName
- core.getTempDirectory
- core.getVersion
- core.setCurrentThreadAsProcessThread
getPixyzWebsiteURL
Get the Pixyz website URL.
core.getPixyzWebsiteURL() -> core.String
Returns
Type | Name | Description |
|---|---|---|
| String | url |
See also:
- core.availableMemory
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getProductName
- core.getTempDirectory
- core.getVersion
- core.setCurrentThreadAsProcessThread
getProductName
Get the Pixyz product name.
core.getProductName() -> core.String
Returns
Type | Name | Description |
|---|---|---|
| String | productName |
See also:
- 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).
core.getTempDirectory() -> core.String
Returns
Type | Name | Description |
|---|---|---|
| String | tmpDir |
See also:
- core.availableMemory
- core.checkForUpdates
- core.clearOtherTemporaryDirectories
- core.getCustomVersionTag
- core.getMemoryUsagePeak
- core.getPixyzWebsiteURL
- core.getProductName
- core.getVersion
- core.setCurrentThreadAsProcessThread
getVersion
Get the Pixyz product version.
core.getVersion() -> core.String
Returns
Type | Name | Description |
|---|---|---|
| String | version |
See also:
- 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.
core.setCurrentThreadAsProcessThread()
See also:
- 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.
core.clearUndoRedo()
See also:
- 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.
core.endUndoRedoStep(deleteIfEmpty=True)
Parameters
Type | Name | Description |
|---|---|---|
| Boolean | deleteIfEmpty | If True, empty step with no modification will be deleted from the stack at the end. |
See also:
- 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.
core.getRedoStack() -> core.StringList
Returns
Type | Name | Description |
|---|---|---|
| StringList | redoStack |
See also:
- 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.
core.getRedoStepUserData(index) -> core.String
Parameters
Type | Name | Description |
|---|---|---|
| UInt | index |
Returns
Type | Name | Description |
|---|---|---|
| String | userData |
See also:
- 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.
core.getUndoStack() -> core.StringList
Returns
Type | Name | Description |
|---|---|---|
| StringList | undoStack |
See also:
- 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.
core.getUndoStepUserData(index) -> core.String
Parameters
Type | Name | Description |
|---|---|---|
| UInt | index |
Returns
Type | Name | Description |
|---|---|---|
| String | userData |
See also:
- 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.
core.hasRecordingStep() -> core.Boolean
Returns
Type | Name | Description |
|---|---|---|
| Boolean | hasRecordingStep | True if there is recoding step, else False. |
See also:
- 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.
core.redo(count=1)
Parameters
Type | Name | Description |
|---|---|---|
| UInt | count |
See also:
- 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.
core.startUndoRedoStep(stepName, userData="")
Parameters
See also:
- 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).
core.stopProcess()
See also:
- 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.
core.toggleUndoRedo()
See also:
- 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.
core.undo(count=1)
Parameters
Type | Name | Description |
|---|---|---|
| UInt | count |
See also:
- 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.
core.addConsoleVerbose(level)
Parameters
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
See also:
- 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.
core.addLogFileVerbose(level)
Parameters
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
See also:
- 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.
core.addSessionLogFileVerbose(level)
Parameters
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
See also:
- 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.
core.configureInterfaceLogger(enableFunction=True, enableParameters=True, enableExecutionTime=True)
Parameters
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. |
See also:
- 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.
core.getInterfaceLoggerConfiguration() -> core.Boolean, core.Boolean, core.Boolean
Returns
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. |
See also:
- 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.
core.getLogFile() -> core.OutputFilePath
Returns
Type | Name | Description |
|---|---|---|
| OutputFilePath | path | Path of the log file. |
See also:
- 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.
core.hasConsoleVerbose(level) -> core.Bool
Parameters
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
Returns
Type | Name | Description |
|---|---|---|
| Bool | enabled | Whether the console verbose level is present. |
See also:
- 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.
core.log(message, level)
Parameters
See also:
- 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.
core.removeConsoleVerbose(level)
Parameters
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
See also:
- 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.
core.removeLogFileVerbose(level)
Parameters
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
See also:
- 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.
core.removeSessionLogFileVerbose(level)
Parameters
Type | Name | Description |
|---|---|---|
| Verbose | level | Verbose level. |
See also:
- 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).
core.setCoreDumpFile(path)
Parameters
Type | Name | Description |
|---|---|---|
| OutputFilePath | path | Path of the core dump file. |
See also:
- 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.
core.setLogFile(path, keepHistory=False)
Parameters
Type | Name | Description |
|---|---|---|
| OutputFilePath | path | Path of the log file. |
| Boolean | keepHistory | Keep session log history in new log file. |
See also: