Class Scene
- Namespace
Methods
addComponent
Add a component to an occurrence
scene.addComponent(occurrence, componentType) -> scene.ComponentParameters
- occurrenceOccurrence
- The occurrence to add the new component 
- componentTypeComponentType
- Type of the component 
Returns
- Component
- The new component added to occurrence 
addComponents
Add a components to each occurrence in the array
scene.addComponents(occurrences, componentType) -> scene.ComponentListParameters
- occurrencesOccurrenceList
- Occurrences that need the component to be added 
- componentTypeComponentType
- Type of the component 
Returns
- ComponentList
- Component that were added or retrieved 
addInParentInstances
Add an instance of prototype's child as child in current occurrence recursively
scene.addInParentInstances(root)Parameters
- rootOccurrence
- The occurrence to test. 
cleanUnusedImages
Remove unused images from texture library
scene.cleanUnusedImages() -> core.IntReturns
- Int
- The number of texture deleted by the clean 
cleanUnusedMaterials
Remove unused materials from material library
scene.cleanUnusedMaterials(cleanImages) -> core.IntParameters
- cleanImagesBoolean
- Call cleanUnusedImages if true 
Returns
- Int
- The number of material deleted by the clean 
computeSubTreeChecksum
Compute the checksum of a sub-tree
scene.computeSubTreeChecksum(root) -> core.StringParameters
- rootOccurrence
- Occurrence to compute 
Returns
configureFunctionLogger
scene.configureFunctionLogger(functionName, enableFunction, enableParameters, enableExecutionTime)Parameters
convertMaterialsToColor
Convert all materials to materials with a color pattern, trying to keep the visual aspect as similar as possible
scene.convertMaterialsToColor(materials=[])Parameters
- materialsMaterialList
- Materials to merge (merge all materials if empty) 
convertMaterialsToPBR
Convert all materials to materials with a PBR pattern, trying to keep the visual aspect as similar as possible
scene.convertMaterialsToPBR(materials=[])Parameters
- materialsMaterialList
- Materials to merge (merge all materials if empty) 
createHierarchicalClusters
Reorganize a sub tree with hierarchical clustering
scene.createHierarchicalClusters(root, childrenCountByNode=2, minFitting=-1)Parameters
- rootOccurrence
- Root of the sub-tree to reorganize 
- childrenCountByNodeInt
- Order of the hierarchical tree 
- minFittingCoeff
- Minimal fitting coefficient to allow 2 nodes to be merged/clustered 
createOBBMesh
scene.createOBBMesh(occurrence) -> scene.OccurrenceParameters
- occurrenceOccurrence
Returns
- Occurrence
- The create occurrence 
createOccurrence
Create a new occurrence
scene.createOccurrence(name, parent) -> scene.OccurrenceParameters
- nameString
- Name of the new occurrence 
- parentOccurrence
- Create the occurrence as a child of parent, if not set the parent will be root 
Returns
- Occurrence
- Created occurrence 
createOccurrenceFromSelection
Create a new occurrence and add the given occurrences as children
scene.createOccurrenceFromSelection(name, children, parent, keepMaterialAssignment) -> scene.OccurrenceParameters
- nameString
- Name of the new occurrence 
- childrenOccurrenceList
- Add given occurrence as children (if any) 
- parentOccurrence
- If defined, the new occurrence will be created as a child of this parent. Else if children are defined, the first common parent of children will be used as a parent for this new occurrence. Last resort will be to use the root as parent 
- keepMaterialAssignmentBoolean
- If defined, material assignation will be updated to keep the visual same aspect 
Returns
- Occurrence
- Created occurrence 
createOccurrenceFromText
Creates an occurrence from string
scene.createOccurrenceFromText(text, font, fontSize, color, heigth3D) -> scene.OccurrenceParameters
- textString
- The occurrence's name 
- fontString
- The font to use 
- fontSizeInt
- The font size 
- colorColorAlpha
- The occurrence color 
- heigth3DDouble
- 3D height of text 
Returns
createOccurrences
Create one new occurrence under each given parent
scene.createOccurrences(name, parents) -> scene.OccurrenceListParameters
- nameString
- Name of the new occurrence 
- parentsOccurrenceList
- Create the occurrences as a child of each parent. If empty, one occurrence will be created with root as parent 
Returns
- OccurrenceList
- Created occurrences 
createPartsFromMeshes
Create a set of Parts given meshes and occurrences
scene.createPartsFromMeshes(occurrences, meshes) -> scene.PartListParameters
- occurrencesOccurrenceList
- The occurrence which will contains the part component of the mesh at the same index 
- meshesMeshList
- List of mesh to create part, if the mesh is invalid (e.g 0) no part will be created and 0 will be returned in the parts list at this index 
Returns
- PartList
- List of created parts components, if there is no mesh at an index, no part is created and the identifier is 0 
createSceneFromMeshes
Create a scene tree with a list of meshes, all meshes becomes part occurrences with the same root. The same mesh Id can be used several times to handle create instances (prototypes)
scene.createSceneFromMeshes(meshes, matrices, centerPartPivots) -> scene.OccurrenceParameters
- meshesMeshList
- List of input meshes 
- matricesMatrix4List
- List of matrices of input meshes (if empty Identity will be used) 
- centerPartPivotsBoolean
- If True, the input meshes will be centered in their local coordinate system and the translation will be set as part matrix. If you want to rollback the meshes to their initial pivots use 'resetPartTransform' function 
Returns
- Occurrence
- The created root occurrence 
deleteComponentByType
Delete component from type
scene.deleteComponentByType(componentType, occurrence, followPrototypes=True)Parameters
- componentTypeComponentType
- Type of the component 
- occurrenceOccurrence
- The occurrence to remove components from 
- followPrototypesBool
- If true and if the component is not set on the occurrence, try to find it on its prototyping chain 
deleteComponentsByType
Delete all components on subtree from type
scene.deleteComponentsByType(componentType, rootOccurrence)Parameters
- componentTypeComponentType
- Type of the component 
- rootOccurrenceOccurrence
- The root occurrence to remove components from 
deleteEmptyOccurrences
Delete all empty assemblies
scene.deleteEmptyOccurrences(root=0)Parameters
- rootOccurrence
- Root occurrence for the process 
deleteOccurrences
Delete a liste of occurrences
scene.deleteOccurrences(occurrences)Parameters
- occurrencesOccurrenceList
- Occurrences to delete 
generateOctaViews
scene.generateOctaViews(radius, XFrames, YFrames, hemi) -> scene.OccurrenceParameters
Returns
- Occurrence
- The created Occurrence 
generateOctree
Generate a loose octree from the given sub-tree
scene.generateOctree(occurrence, maxDepth, looseFactor) -> scene.OccurrenceParameters
- occurrenceOccurrence
- Root occurrence of the sub-tree 
- maxDepthInt
- Defines the depth maximum of the octree 
- looseFactorDouble
- Defines the loose factor of the octree 
Returns
getAABB
Returns the axis aligned bounding box of a list of scene paths
scene.getAABB(occurrences) -> geom.AABBParameters
- occurrencesOccurrenceList
- List of occurrences to retrieve the AABB 
Returns
- AABB
- The axis aligned bounding box of all given occurrences 
getActiveMaterial
Get the active material on occurrence
scene.getActiveMaterial(occurrence) -> material.MaterialParameters
- occurrenceOccurrence
- The occurrence 
Returns
- Material
- The material 
getActivePropertyValue
Get the value of a property on the first parent that own it
scene.getActivePropertyValue(occurrence, propertyName, cacheProperty) -> core.StringParameters
- occurrenceOccurrence
- An occurrence 
- propertyNameString
- Property name 
- cachePropertyBoolean
- If true, the property will be copied on all ancestor of occurrence below the property owner to speed up future calls 
Returns
- String
- Property value 
getActivePropertyValues
Get the value of a property on the first parent that own it for each given occurrence
scene.getActivePropertyValues(occurrences, propertyName, cacheProperty) -> core.StringListParameters
- occurrencesOccurrenceList
- List of occurrences 
- propertyNameString
- Property name 
- cachePropertyBoolean
- If true, the property will be copied on all ancestor of occurrence below the property owner to speed up future calls 
Returns
- StringList
- Property value for each occurrence 
getAncestors
Returns the list of ancestors for one occurrence
scene.getAncestors(occurrence) -> scene.OccurrenceListParameters
- occurrenceOccurrence
- The occurrence to test. 
Returns
- OccurrenceList
- The list of ancestors. 
getComponent
Returns a component on an occurrence
scene.getComponent(occurrence, componentType, followPrototypes) -> scene.ComponentParameters
- occurrenceOccurrence
- The occurrence 
- componentTypeComponentType
- Type of the component 
- followPrototypesBool
- If true and if the component is not set on the occurrence, try to find it on its prototyping chain 
Returns
- Component
- The component 
getComponentByOccurrence
Returns one component of the specified type by occurrence if it exists
scene.getComponentByOccurrence(occurrences, componentType, followPrototypes) -> scene.ComponentListParameters
- occurrencesOccurrenceList
- The occurrences list 
- componentTypeComponentType
- Type of the component 
- followPrototypesBool
- If true and if the component is not set on the occurrence, try to find it on its prototyping chain 
Returns
- ComponentList
- List of component synchronized with occurrences 
getComponentOccurrence
Get the occurrence that own a component
scene.getComponentOccurrence(component) -> scene.OccurrenceParameters
- componentComponent
- The component 
Returns
- Occurrence
- The occurrence 
getComponentType
Get the type of a component
scene.getComponentType(component) -> scene.ComponentTypeParameters
- componentComponent
- The component 
Returns
- ComponentType
- Type of the component 
getGlobalMatrix
Returns the global matrix on an occurrence
scene.getGlobalMatrix(occurrence) -> geom.Matrix4Parameters
- occurrenceOccurrence
- Occurrence to get the global matrix 
Returns
- Matrix4
- The global matrix of the occurrence 
getGlobalVisibility
Returns the global visibility of a given occurrence
scene.getGlobalVisibility(occurrence) -> core.BooleanParameters
- occurrenceOccurrence
- Occurrence to get the global visibility 
Returns
- Boolean
- True if the occurrence is visible, else False 
getLocalMatrix
Returns the local matrix on an occurrence
scene.getLocalMatrix(occurrence) -> geom.Matrix4Parameters
- occurrenceOccurrence
- Node to get the local matrix 
Returns
- Matrix4
- The node local matrix 
getMBB
Returns the Minimum Bounding Box of a list of scene paths
scene.getMBB(occurrences) -> geom.MBBParameters
- occurrencesOccurrenceList
- List of occurrences to retrieve the AABB 
Returns
- MBB
- The minimum bounding box of all given occurrences 
getMaterialsFromSubtree
scene.getMaterialsFromSubtree(occurrence) -> material.MaterialListParameters
- occurrenceOccurrence
- Root occurrence of the subtree on which to get the materials and images 
Returns
- MaterialList
- The retrieved materials 
getOBB
Returns the Oriented Bounding Box of a list of scene paths (works only on meshes, fast method, not the Minimum Volume Box)
scene.getOBB(occurrences) -> geom.OBBParameters
- occurrencesOccurrenceList
- List of occurrences to retrieve the AABB 
Returns
- OBB
- The oriented bounding box of all given occurrences 
getOccurrenceActiveMaterial
Returns the active material on a given occurrence
scene.getOccurrenceActiveMaterial(occurrence) -> material.MaterialParameters
- occurrenceOccurrence
- Occurrence to get the active material 
Returns
- Material
- The active material of the occurrence 
getOccurrenceName
Returns the name of an occurrence
scene.getOccurrenceName(occurrence) -> core.StringParameters
- occurrenceOccurrence
- The occurrence to get the name 
Returns
- String
- The occurrence name 
getOccurrencesWithComponent
Recursively get all the occurrences containing a component of the specified type
scene.getOccurrencesWithComponent(componentType, fromOcc) -> scene.OccurrenceListParameters
- componentTypeComponentType
- The component type 
- fromOccOccurrence
- Source occurrence of the recursion 
Returns
- OccurrenceList
- Result occurrences 
getPartActiveShape
Returns the active shape of a part
scene.getPartActiveShape(part) -> scene.ShapeParameters
- partPart
- The part 
Returns
- Shape
- The active shape of a part 
getPartOccurrences
Recursively get all the occurrences containing a part component
scene.getPartOccurrences(fromOcc) -> scene.OccurrenceListParameters
- fromOccOccurrence
- Source occurrence of the recursion 
Returns
- OccurrenceList
- Result occurrences 
getPartShapeType
Get the part's shape type
scene.getPartShapeType(part) -> scene.ShapeTypeParameters
- partPart
- The part to test 
Returns
- ShapeType
- Shape's type 
getPolygonCount
Returns the number of polygon in the parts meshes
scene.getPolygonCount(occurrences, asTriangleCount, countOnceEachInstance, countHidden) -> core.ULongParameters
- occurrencesOccurrenceList
- The part occurrences 
- asTriangleCountBool
- If true count the equivalent of triangles for each polygon 
- countOnceEachInstanceBool
- If true ignore multiple instance of each tessellation 
- countHiddenBool
- If true, also count hidden components 
Returns
- ULong
- The number of polygons 
getSubTreeStats
Returns some stats of a sub tree
scene.getSubTreeStats(roots) -> core.ULong, core.ULong, core.ULong, core.ULong, core.ULong, core.ULong, core.ULong, core.ULong, core.ULong, core.ULongParameters
- rootsOccurrenceList
- The root occurrences to get stats on. 
Returns
- ULong
- Number of parts in the sub-tree (instances are counted once) 
getVertexCount
Returns the number of vertices in the parts meshes
scene.getVertexCount(occurrences, countOnceEachInstance, countHidden, countPoints, countMergedVertices) -> core.ULongParameters
- occurrencesOccurrenceList
- The part occurrences 
- countOnceEachInstanceBool
- If true ignore multiple instance of each tessellation 
- countHiddenBool
- If true, also count hidden components 
- countPointsBool
- If true, also count points (for points cloud) 
- countMergedVerticesBool
- If true count all merged vertices in each tessellation 
Returns
- ULong
- The number of vertices 
getViewpointsFromCavities
Returns viewpoints from model cavities
scene.getViewpointsFromCavities(voxelSize, minCavityVolume) -> geom.Point3List, geom.Point3ListParameters
- voxelSizeDistance
- Precision for cavities detection 
- minCavityVolumeDistance
- Minimum volume for a cavity to be returned 
Returns
- Point3List
- List of viewpoint positions 
hasComponent
Returns True if the given occurrence has the given component type
scene.hasComponent(occurrence, componentType, followPrototypes) -> core.BooleanParameters
- occurrenceOccurrence
- The occurrence 
- componentTypeComponentType
- Type of the component 
- followPrototypesBool
- If true and if the component is not set on the occurrence, try to find it on its prototyping chain 
Returns
hide
Hide the given occurrence
scene.hide(occurrence)Parameters
- occurrenceOccurrence
- The occurrence to hide 
inverseVisibility
Inverse the visibility of the given occurrence
scene.inverseVisibility(occurrence)Parameters
- occurrenceOccurrence
- The occurrence 
isAncestorOf
Test if the occurrences are ancestors to one another.
scene.isAncestorOf(occurrence1, occurrence2) -> core.BoolParameters
- occurrence1Occurrence
- First occurrence to test. 
- occurrence2Occurrence
- Second occurrence to test. 
Returns
- Bool
- If occurrences are ancestor to one another. 
listComponent
List all components on a type on the whole tree
scene.listComponent(componentType) -> scene.ComponentListParameters
- componentTypeComponentType
- The component type 
Returns
- ComponentList
- The component list of the type chosen 
listComponents
List all components on an occurrence
scene.listComponents(occurrence, followPrototypes) -> scene.ComponentListParameters
- occurrenceOccurrence
- The occurrence to list the components 
- followPrototypesBool
- If true list also components owned by the prototype 
Returns
- ComponentList
- The components owned by the occurrence 
mergeImages
Merge all equivalent images (i.e. with same pixels)
scene.mergeImages(images) -> core.IntParameters
- imagesImageList
- Images to merge (merge all images if empty) 
Returns
- Int
- The number of texture after the merge 
mergeMaterials
Merge all equivalent materials (i.e. with same appearance)
scene.mergeMaterials(materials, evaluateNames) -> core.IntParameters
- materialsMaterialList
- Materials to merge (merge all materials if empty) 
- evaluateNamesBoolean
- If true, materials names will be taken into consideration (on top of other properties). It means that materials having same properties but different names won't be merged together. 
Returns
- Int
- The number of material after the merge 
removeMaterials
Recursively remove all materials
scene.removeMaterials(roots)Parameters
- rootsOccurrenceList
- If specified, remove materials only from the given occurrences and their descendants 
renameLongOccurrenceName
truncate names of occurrence with too long names
scene.renameLongOccurrenceName(maxLength=128)Parameters
- maxLengthInt
- Maximum name length 
replaceMaterial
Replace a material by another everywhere it is used
scene.replaceMaterial(originalMaterial, newMaterial, occurrences)Parameters
- originalMaterialMaterial
- The material to replace everywhere 
- newMaterialMaterial
- The new material to set in place of originalMaterial 
- occurrencesOccurrenceList
- The occurrences on which replacing the materials 
resizeTextures
Resizes the textures from a selection of occurrences (resizes all textures used by these occurrences), or from a selection of textures
scene.resizeTextures(inputMode, resizeMode, replaceTextures=True)Parameters
- inputModeResizeTexturesInputMode
- Defines if the textures to resize are textures used by a selection of Occurrences, or a selection among the textures available in the scene 
- resizeModeResizeTexturesResizeMode
- Defines if the textures are resized following a ratio or following a maximum size/resolution (only textures above the defined maximum are downsized) 
- replaceTexturesBool
- If True, overwrites textures from the selection 
setComponentOccurrence
Move a component to an occurrence
scene.setComponentOccurrence(component, occurrence)Parameters
- componentComponent
- The component 
- occurrenceOccurrence
- The occurrence 
setDefaultVariant
Set the default variant
scene.setDefaultVariant()setOccurrenceMaterial
Set the material on a occurrence
scene.setOccurrenceMaterial(occurrence, material)Parameters
- occurrenceOccurrence
- Occurrence to set the material 
- materialMaterial
- The new occurrence material 
setOccurrenceName
Returns the name of an occurrence
scene.setOccurrenceName(occurrence, name)Parameters
- occurrenceOccurrence
- The occurrence to get the name 
- nameString
- The occurrence name 
show
Show the given occurrence
scene.show(occurrence)Parameters
- occurrenceOccurrence
- The occurrence to show 
showOnly
Show only the given occurrence
scene.showOnly(occurrence)Parameters
- occurrenceOccurrence
- The occurrence to show 
transferCADMaterialsOnPartOccurrences
Set all materials on part occurrences
scene.transferCADMaterialsOnPartOccurrences(rootOccurrence)Parameters
- rootOccurrenceOccurrence
- Root occurrence 
transferMaterialsOnPatches
Take the first instance material and set it one the mesh patches
scene.transferMaterialsOnPatches(rootOccurrence)Parameters
- rootOccurrenceOccurrence
- Root occurrence 
createCapsule
Create a new capsule
See also:
scene.createCapsule(radius, height, subdivisionLatitude, subdivisionLongitude, generateUV) -> scene.OccurrenceParameters
- radiusDouble
- Radius of the Capsule 
- heightDouble
- Height of the Capsule (excluding the two size of half spheres) 
- subdivisionLatitudeInt
- Subdivision of the Capsule on the Latitude 
- subdivisionLongitudeInt
- Subdivision of the Capsule (two half spheres) on the Longitude 
- generateUVBoolean
- Generation of the UV 
Returns
- Occurrence
- The created Occurrence 
createCone
Create a new cone
See also:
scene.createCone(bottomRadius, height, sides, generateUV) -> scene.OccurrenceParameters
- bottomRadiusDouble
- Radius of the bottom of the cone 
- heightDouble
- Height of the cone 
- sidesInt
- Number of sides of the cone 
- generateUVBoolean
- Generation of the UV 
Returns
- Occurrence
- The created Occurrence 
createCube
Create a new cube
See also:
scene.createCube(sizeX, sizeY, sizeZ, subdivision, generateUV) -> scene.OccurrenceParameters
- sizeXDouble
- Size of the Cube on the x axis 
- sizeYDouble
- Size of the Cube on the y axis 
- sizeZDouble
- Size of the Cube on the z axis 
- subdivisionInt
- Subdivision of the Cube on all the axis 
- generateUVBoolean
- Generation of the UV 
Returns
- Occurrence
- The created Occurrence 
createCylinder
Create a new cylinder
See also:
scene.createCylinder(radius, height, sides, generateUV) -> scene.OccurrenceParameters
- radiusDouble
- Radius of the Cylinder 
- heightDouble
- Height of the Cylinder 
- sidesInt
- Number of Sides of the Cylinder 
- generateUVBoolean
- Generation of the UV 
Returns
- Occurrence
- The created Occurrence 
createImmersion
Create a new bagel klein
See also:
scene.createImmersion(radius, subdivisionX, subdivisionY) -> scene.OccurrenceParameters
- radiusDouble
- Radius of the Immersion 
- subdivisionXInt
- Subdivision of the Immersion on the Latitude 
- subdivisionYInt
- Subdivision of the Immersion on the Longitude 
Returns
- Occurrence
- The created Occurrence 
createPlane
Create a new plane
See also:
scene.createPlane(sizeY, sizeX, subdivisionX, subdivisionY, generateUV) -> scene.OccurrenceParameters
- sizeYDouble
- Size of the Plane on the y axis 
- sizeXDouble
- Size of the Plane on the x axis 
- subdivisionXInt
- Subdivision of the Plane on the x axis 
- subdivisionYInt
- Subdivision of the Plane on the y axis 
- generateUVBoolean
- Generation of the UV 
Returns
- Occurrence
- The created Occurrence 
createSphere
Create a new sphere
See also:
scene.createSphere(radius, subdivisionLatitude, subdivisionLongitude, generateUV) -> scene.OccurrenceParameters
- radiusDouble
- Radius of the Sphere 
- subdivisionLatitudeInt
- Subdivision of the Sphere on the Latitude 
- subdivisionLongitudeInt
- Subdivision of the Sphere on the Longitude 
- generateUVBoolean
- Generation of the UV 
Returns
- Occurrence
- The created Occurrence 
createTorus
Create a new torus
See also:
scene.createTorus(majorRadius, minorRadius, subdivisionLatitude, subdivisionLongitude) -> scene.OccurrenceParameters
- majorRadiusDouble
- Major Radius 
- minorRadiusDouble
- Minor Radius 
- subdivisionLatitudeInt
- Subdivision of the Torus on the Latitude 
- subdivisionLongitudeInt
- Subdivision of the Torus on the Longitude 
Returns
- Occurrence
- The created Occurrence 
findDuplicatedPartOccurrences
Get duplicated parts
See also:
- scene.findOccurrencesByMaterial
- scene.findOccurrencesByMetadata
- scene.findOccurrencesByMetadataValue
- scene.findOccurrencesByProperty
- scene.findPartOccurrencesByActiveMaterial
- scene.findPartOccurrencesByMaximumSize
- scene.findPartOccurrencesByMinimumNumberOfInstances
- scene.findPartOccurrencesByVisibleMaterial
scene.findDuplicatedPartOccurrences(root, acceptVolumeRatio, acceptPolycountRatio, acceptAABBAxisRatio, acceptAABBCenterDistance) -> scene.OccurrenceListParameters
- rootOccurrence
- Root occurrence for the process 
- acceptVolumeRatioReal
- If the ratio of volumes of two part is lower than acceptVolumeRatio, they will be considered duplicated 
- acceptPolycountRatioReal
- If the ratio of polygon counts of two part is lower than acceptPolycountRatio, they will be considered duplicated 
- acceptAABBAxisRatioReal
- If the ratio of AABB axis of two part is lower than acceptAABBAxisRatio, they will be considered duplicated 
- acceptAABBCenterDistanceDistance
- If the ratio of AABB centers of two part is lower than acceptAABBCenterRatio, they will be considered duplicated 
Returns
- OccurrenceList
- Duplicated part occurrences 
findOccurrencesByMaterial
get occurrences for which the property "Material" is the given material
See also:
- scene.findDuplicatedPartOccurrences
- scene.findOccurrencesByMetadata
- scene.findOccurrencesByMetadataValue
- scene.findOccurrencesByProperty
- scene.findPartOccurrencesByActiveMaterial
- scene.findPartOccurrencesByMaximumSize
- scene.findPartOccurrencesByMinimumNumberOfInstances
- scene.findPartOccurrencesByVisibleMaterial
scene.findOccurrencesByMaterial(material) -> scene.OccurrenceListParameters
- materialMaterial
- A material 
Returns
- OccurrenceList
- The list of occurrences meeting the criteria 
findOccurrencesByMetadata
Returns all occurrences which a metadata property value matches the given regular expression (ECMAScript)
See also:
- scene.findDuplicatedPartOccurrences
- scene.findOccurrencesByMaterial
- scene.findOccurrencesByMetadataValue
- scene.findOccurrencesByProperty
- scene.findPartOccurrencesByActiveMaterial
- scene.findPartOccurrencesByMaximumSize
- scene.findPartOccurrencesByMinimumNumberOfInstances
- scene.findPartOccurrencesByVisibleMaterial
scene.findOccurrencesByMetadata(property, regex, roots, caseInsensitive) -> scene.OccurrenceListParameters
- propertyString
- Property name 
- regexRegex
- Regular expression (ECMAScript) 
- rootsOccurrenceList
- If specified, restrict the search from the given roots 
- caseInsensitiveBool
- If True, the regex will be insensitive to upper and lower cases 
Returns
- OccurrenceList
- Occurrences which matches the given regular expression 
findOccurrencesByMetadataValue
Returns all occurrences with a metadata value matching the given regular expression (ECMAScript)
See also:
- scene.findDuplicatedPartOccurrences
- scene.findOccurrencesByMaterial
- scene.findOccurrencesByMetadata
- scene.findOccurrencesByProperty
- scene.findPartOccurrencesByActiveMaterial
- scene.findPartOccurrencesByMaximumSize
- scene.findPartOccurrencesByMinimumNumberOfInstances
- scene.findPartOccurrencesByVisibleMaterial
scene.findOccurrencesByMetadataValue(regex, roots, caseInsensitive) -> scene.OccurrenceListParameters
- regexRegex
- Regular expression (ECMAScript) 
- rootsOccurrenceList
- If specified, restrict the search from the given roots 
- caseInsensitiveBool
- If True, the regex will be insensitive to upper and lower cases 
Returns
- OccurrenceList
- Occurrences which matches the given regular expression 
findOccurrencesByProperty
Returns all occurrences which a property value matches the given regular expression (ECMAScript)
See also:
- scene.findDuplicatedPartOccurrences
- scene.findOccurrencesByMaterial
- scene.findOccurrencesByMetadata
- scene.findOccurrencesByMetadataValue
- scene.findPartOccurrencesByActiveMaterial
- scene.findPartOccurrencesByMaximumSize
- scene.findPartOccurrencesByMinimumNumberOfInstances
- scene.findPartOccurrencesByVisibleMaterial
scene.findOccurrencesByProperty(property, regex, roots, caseInsensitive) -> scene.OccurrenceListParameters
- propertyString
- Property name 
- regexRegex
- Regular expression (ECMAScript) 
- rootsOccurrenceList
- If specified, restrict the search from the given roots 
- caseInsensitiveBool
- If True, the regex will be insensitive to upper and lower cases 
Returns
- OccurrenceList
- Occurrences which matches the given regular expression 
findPartOccurrencesByActiveMaterial
Find all part occurrence with a given material as active material (i.e. as seen in the rendering)
See also:
- scene.findDuplicatedPartOccurrences
- scene.findOccurrencesByMaterial
- scene.findOccurrencesByMetadata
- scene.findOccurrencesByMetadataValue
- scene.findOccurrencesByProperty
- scene.findPartOccurrencesByMaximumSize
- scene.findPartOccurrencesByMinimumNumberOfInstances
- scene.findPartOccurrencesByVisibleMaterial
scene.findPartOccurrencesByActiveMaterial(material, roots) -> scene.OccurrenceListParameters
- materialMaterial
- A material 
- rootsOccurrenceList
- If specified, restrict the search from the given roots 
Returns
- OccurrenceList
- Occurrences of parts with the given material as active material 
findPartOccurrencesByMaximumSize
Get part occurrences by size
See also:
- scene.findDuplicatedPartOccurrences
- scene.findOccurrencesByMaterial
- scene.findOccurrencesByMetadata
- scene.findOccurrencesByMetadataValue
- scene.findOccurrencesByProperty
- scene.findPartOccurrencesByActiveMaterial
- scene.findPartOccurrencesByMinimumNumberOfInstances
- scene.findPartOccurrencesByVisibleMaterial
scene.findPartOccurrencesByMaximumSize(roots, maxDiagLength, maxSize, getHidden) -> scene.OccurrenceListParameters
- rootsOccurrenceList
- Roots occurrences for the process 
- maxDiagLengthDistance
- If the diagonal axis of the bounding box is less than maxDiagLength, part will be filtered. -1 to ignore 
- maxSizeDistance
- If the longer axis of the box is less than maxLength, part will be filtered. -1 to ignore 
- getHiddenBoolean
- If true, hidden part occurrences meeting the criteria will be filtered as well 
Returns
- OccurrenceList
- The list of occurrences meeting the criteria 
findPartOccurrencesByMinimumNumberOfInstances
get part occurrences with more than "minInstanciationCount" occurrence on the scene
See also:
scene.findPartOccurrencesByMinimumNumberOfInstances(minInstanciationCount) -> scene.OccurrenceListParameters
- minInstanciationCountInt
- Min occurrence count 
Returns
- OccurrenceList
- The list of occurrences meeting the criteria 
findPartOccurrencesByVisibleMaterial
get part occurrences for which the given material is visible in the viewer
See also:
- scene.findDuplicatedPartOccurrences
- scene.findOccurrencesByMaterial
- scene.findOccurrencesByMetadata
- scene.findOccurrencesByMetadataValue
- scene.findOccurrencesByProperty
- scene.findPartOccurrencesByActiveMaterial
- scene.findPartOccurrencesByMaximumSize
- scene.findPartOccurrencesByMinimumNumberOfInstances
scene.findPartOccurrencesByVisibleMaterial(material) -> scene.OccurrenceListParameters
- materialMaterial
- A material 
Returns
- OccurrenceList
- The list of occurrences meeting the criteria 
findPartOccurrencesInAABB
find part occurrences in the scene in a given axis aligned bounding box
See also:
scene.findPartOccurrencesInAABB(aabb) -> scene.OccurrenceListParameters
- aabbAABB
- The axis aligned bounding box 
Returns
- OccurrenceList
- Occurrences found in the given axis aligned bounded box 
findPartOccurrencesInBox
scene.findPartOccurrencesInBox(box, strictlyIncludes) -> scene.OccurrenceListParameters
- boxExtendedBox
- The extension box 
- strictlyIncludesBoolean
- If false, parts only need to intersect the box to be selected 
Returns
- OccurrenceList
- Part occurrences contained in the box 
createSubTree
Create a complete scene tree
See also:
scene.createSubTree(tree, root, replaceRoot) -> scene.OccurrenceListParameters
- treePackedTree
- rootOccurrence
- Specify the root occurrence of the scene 
- replaceRootBool
- If true, the root occurrence will be replaced by the root of the given tree, else it will be added as a child 
Returns
- OccurrenceList
- Create occurrences (equivalent to tree.occurrences) 
getChildren
Get the children of an occurrence
See also:
scene.getChildren(occurrence) -> scene.OccurrenceListParameters
- occurrenceOccurrence
- The occurrence 
Returns
- OccurrenceList
- Children occurrences 
getCurrentVariantRoot
Get the current active root. Returns active variant's root if one or global root.
See also:
scene.getCurrentVariantRoot() -> scene.OccurrenceReturns
- Occurrence
- The active variant root occurrence or global root if no active variant. 
getOccurrenceAncestors
See also:
scene.getOccurrenceAncestors(occurrence) -> scene.OccurrenceListParameters
- occurrenceOccurrence
- The occurrence to find ancestors 
Returns
- OccurrenceList
- List of ancestors (start with the root and end with occurrence parent). Empty if occurrence is a root 
getOccurrencesAncestors
See also:
scene.getOccurrencesAncestors(occurrences) -> scene.OccurrenceListListParameters
- occurrencesOccurrenceList
- The list of occurrences to find ancestors 
Returns
- OccurrenceListList
- For each given occurrence, the list of ancestors (start with the root and end with occurrence parent). Empty if occurrence is a root 
getParent
Get the parent of an occurrence
See also:
scene.getParent(occurrence) -> scene.OccurrenceParameters
- occurrenceOccurrence
- The occurrence 
Returns
- Occurrence
- The parent occurrence 
getRoot
Get the root occurrence of the product structure
See also:
scene.getRoot() -> scene.OccurrenceReturns
- Occurrence
- The root occurrence 
getSubTree
Returns a packed version of the whole scene tree
See also:
scene.getSubTree(root, visibilityMode, depth) -> scene.PackedTreeParameters
- rootOccurrence
- Specify the root of the returned scene 
- visibilityModeVisibilityMode
- The visibility mode 
- depthInt
- Maximum depth 
Returns
moveOccurrences
Move an occurrence, adjusting the transformation to keep objects at the same place in the world space
See also:
scene.moveOccurrences(occurrences, destination, insertBefore=0)Parameters
- occurrencesOccurrenceList
- The occurrences to move 
- destinationOccurrence
- Destination occurrence (the new parent) 
- insertBeforeOccurrence
- Occurrence before witch to move, if null append to destination children 
setParent
Set the parent of an occurrence
See also:
scene.setParent(occurrence, parent, addInParentInstances=False, insertBefore, worldPositionStays=False)Parameters
- occurrenceOccurrence
- The occurrence 
- parentOccurrence
- The parent occurrence 
- addInParentInstancesBoolean
- If True, each occurrence whose prototype is the target parent will generate a child whose prototype is the occurrence itself 
- insertBeforeOccurrence
- Add before this child occurrence in the children list of the parent occurrence 
- worldPositionStaysBoolean
- If true, the parent-relative position, scale and rotation are modified such that the object keeps the same world space position, rotation and scale as before. 
addLightComponent
scene.addLightComponent(occurrence, lightType, color, power, cutOff) -> scene.ComponentParameters
- occurrenceOccurrence
- The occurrence to add the new component 
- lightTypeLightType
- The type of the light 
- colorColor
- Color of the light 
- powerDouble
- The power of the light 
- cutOffAngle
- The cutoff angle of the light 
Returns
- Component
- The new component added to occurrence 
createLight
scene.createLight(name, lightType, color, power, cutOff, parent) -> scene.OccurrenceParameters
- nameString
- Name of the light 
- lightTypeLightType
- The type of the light 
- colorColor
- Color of the light 
- powerDouble
- The power of the light 
- cutOffAngle
- The cutoff angle of the light 
- parentOccurrence
- The parent of the light occurrence 
Returns
- Occurrence
- The light created 
addMetadata
Add a new metadata property to a metadata component
See also:
scene.addMetadata(metadata, name, value)Parameters
- metadataMetadata
- The metadata component 
- nameString
- The new property name 
- valueString
- The new property value 
addMetadataBlock
Add a new metadata property to a metadata component
See also:
scene.addMetadataBlock(metadata, names, values)Parameters
- metadataMetadata
- The metadata component 
- namesStringList
- The new properties names 
- valuesStringList
- The new properties values 
createMetadatasFromDefinitions
Create Metadata components from definitions
See also:
scene.createMetadatasFromDefinitions(occurrences, definitions) -> scene.MetadataListParameters
- occurrencesOccurrenceList
- List of occurrences to add the metadata components 
- definitionsMetadataDefinitionList
- List of metadata definition 
Returns
- MetadataList
- List of metadata components created from definitions (if definition is empty no component is created) 
getMetadata
Get a metadata property value from a metadata component
See also:
scene.getMetadata(metadata, name) -> core.StringParameters
Returns
- String
- The property value 
getMetadatasDefinitions
Returns definition of Metadata components
See also:
scene.getMetadatasDefinitions(metadatas) -> scene.MetadataDefinitionListParameters
- metadatasMetadataList
- List of metadata component to retrieve definition 
Returns
- MetadataDefinitionList
- List of metadata definition for each given metadata component 
removeMetadata
Remove a property from a metadata
See also:
scene.removeMetadata(metadata, name)Parameters
configureOoC
Set and configure an Out of Core component implementation
Warning
This function is tagged as EXPERIMENTAL.
See also:
scene.configureOoC(ooc, implementationType, implementationParameters)Parameters
- oocOoCComponent
- An OoC component 
- implementationTypeString
- An implementation type (see listOoCImplementations) 
- implementationParametersString
- Depends of implementation type 
getOoCConfiguration
Get the current configuration of an Out of Core component
Warning
This function is tagged as EXPERIMENTAL.
See also:
scene.getOoCConfiguration(ooc) -> core.String, core.StringParameters
- oocOoCComponent
- An OoC component 
Returns
- String
- The implementation type of the given ooc 
listOoCImplementations
Warning
This function is tagged as EXPERIMENTAL.
See also:
scene.listOoCImplementations() -> core.StringListReturns
- StringList
- All available Out of Core implementation types 
loadOoC
Ask an Out of Core component to load its sub-scene
Warning
This function is tagged as EXPERIMENTAL.
See also:
scene.loadOoC(ooc)Parameters
- oocOoCComponent
- An OoC component 
unloadOoC
Ask an Out of Core component to unload its sub-scene
Warning
This function is tagged as EXPERIMENTAL.
See also:
scene.unloadOoC(ooc)Parameters
- oocOoCComponent
- An OoC component 
getSubpartMaterial
Get a subpart material assignment according to overrides on the scene tree with SubpartMaterial components
See also:
scene.getSubpartMaterial(occurrence, subpartIndex) -> material.MaterialParameters
- occurrenceOccurrence
- The Occurrence 
- subpartIndexUInt
- The subpart index 
Returns
- Material
- The assigned material 
listActiveShapeMaterials
list all the materials used in the part shape
See also:
scene.listActiveShapeMaterials(part) -> material.MaterialListParameters
- partPart
- The part which contains sub materials 
Returns
- MaterialList
- Used materials 
listSubpartMaterials
list all the materials used in the part shape or overrided with a SubpartMaterial component
See also:
scene.listSubpartMaterials(occurrence) -> material.MaterialListParameters
- occurrenceOccurrence
- The occurrence which contains sub materials 
Returns
- MaterialList
- Used materials 
listSubpartVariantMaterials
list all the materials variants in subpart
See also:
scene.listSubpartVariantMaterials(occurrence) -> scene.VariantMaterialListParameters
- occurrenceOccurrence
- The occurrence which contains variants 
Returns
- VariantMaterialList
- List of variant and materials 
setSubpartMaterial
Set a subpart material assignment using a SubpartMaterial component
See also:
scene.setSubpartMaterial(occurrence, subpartIndex, material)Parameters
- occurrenceOccurrence
- The Occurrence 
- subpartIndexUInt
- The subpart index 
- materialMaterial
- The material 
setSubpartVariantMaterials
set materials in variant
See also:
scene.setSubpartVariantMaterials(occurrence, variantMaterials)Parameters
- occurrenceOccurrence
- The occurrence which contains variants 
- variantMaterialsVariantMaterialList
- List of variant and materials 
setSubpartVariantMaterialsList
set all the materials list in variants
See also:
scene.setSubpartVariantMaterialsList(variants, materialListList) -> scene.VariantMaterialListParameters
- variantsVariantList
- The part which contains variants 
- materialListListMaterialListList
- The part which contains the list of material variant list 
Returns
- VariantMaterialList
- List of variant and materials 
transferSubpartMaterialsOnPatches
Assign SubpartMaterialComponent materials on the occurrence's part shapes. This might affect other Part in the scene if not singularized before.
See also:
scene.transferSubpartMaterialsOnPatches(occurrence)Parameters
- occurrenceOccurrence
- The occurrence which has sub materials assigned 
createAlternativeTree
scene.createAlternativeTree(name, root) -> scene.AlternativeTreeParameters
- nameString
- The name of the new alternative tree 
- rootOccurrence
- The root occurrence 
Returns
- AlternativeTree
- The new alternative tree 
getAlternativeTreeRoot
Returns the root occurrence associated with the given AlternativeTree
See also:
scene.getAlternativeTreeRoot(tree) -> scene.OccurrenceParameters
- treeAlternativeTree
- Targeted alternative tree 
Returns
- Occurrence
- The root occurrence 
listAlternativeTrees
Returns all the available alternative trees
See also:
scene.listAlternativeTrees() -> scene.AlternativeTreeListReturns
- AlternativeTreeList
- All alternative trees 
addAnimation
Add an animation in Animation library
See also:
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.addAnimation(animation)Parameters
- animationAnimation
- Animation to add 
addKeyframe
Adds a keyframe in the curve
See also:
- scene.addAnimation
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.addKeyframe(channel, time, value) -> scene.KeyframeParameters
- channelAnimChannel
- The channel one wants to add a keyframe in 
- timeAnimationTime
- The time 
- valueDouble
- The value 
Returns
- Keyframe
- The corresponding keyframe 
addKeyframeFromCurrentPosition
Adds keyframes in a given AnimChannel based on current position
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.addKeyframeFromCurrentPosition(channel, time)Parameters
- channelAnimChannel
- The channel one wants to add a keyframe in 
- timeAnimationTime
- The time 
animatesThisOccurrence
Does this Animation animates this Occurrence - or one of its parents (thus animating it indirectly) ?
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.animatesThisOccurrence(animation, occurrence) -> core.BoolParameters
- animationAnimation
- The Animation 
- occurrenceOccurrence
- The supposedly animated occurrence 
Returns
- Bool
- The answer to this question 
bakeAnimation
Baking soda
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.bakeAnimation(animation, occurrence, end, interval)Parameters
- animationAnimation
- The Animation 
- occurrenceOccurrence
- The occurrence 
- endOccurrence
- The parent occurrence 
- intervalAnimationTime
- The interval 
createAnimation
Creates an animation, need to use addAnimation when animation is filled
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.createAnimation(name) -> scene.AnimationParameters
- nameString
- Name of the animation 
Returns
- Animation
- The created animation 
createSkeletonMesh
Create a skeleton mesh from a joint component tree
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.createSkeletonMesh(root) -> scene.OccurrenceParameters
- rootOccurrence
- Root joint component node 
Returns
- Occurrence
- New occurrence containing the skeleton mesh 
decimateAnimChannelBySegment
Decimates by segment a given AnimChannel
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.decimateAnimChannelBySegment(channel, precision)Parameters
- channelAnimChannel
- The channel 
- precisionDouble
- The precision 
deleteAnimation
Deletes an animation
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.deleteAnimation(animation)Parameters
- animationAnimation
- The created animation 
deleteEmptyAnimation
Delete all animation that contain 0 keyframes
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.deleteEmptyAnimation()displayAllKeyframesFromAnimChannel
Displays info on the selected AnimChannel
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.displayAllKeyframesFromAnimChannel(channel)Parameters
- channelAnimChannel
- The channel 
displayAllKeyframesFromAnimation
Displays info on the selected animation
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.displayAllKeyframesFromAnimation(animation)Parameters
- animationAnimation
- The animation 
displayValueFromAnimChannelAtTime
Displays the value
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.displayValueFromAnimChannelAtTime(channel, time, defaultValue=False)Parameters
- channelAnimChannel
- The channel 
- timeAnimationTime
- The time 
- defaultValueBool
- Show default instead ? 
getAnimChannelIfExists
Returns the main AnimChannel of an Occurrence according to a given Animation
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getAnimChannelIfExists(animation, occurrence) -> scene.AnimChannelParameters
- animationAnimation
- The Animation 
- occurrenceOccurrence
- The Occurrence 
Returns
- AnimChannel
- The channel 
getAnimChannelInfo
get an animation channel informations
Warning
This function is tagged as EXPERIMENTAL.
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getAnimChannelInfo(channel) -> scene.AnimChannelInfoParameters
- channelAnimChannel
- Animation to get info of 
Returns
getAnimChannelOccurrence
Returns the Occurrence related to a given AnimChannel
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getAnimChannelOccurrence(channel) -> scene.OccurrenceParameters
- channelAnimChannel
- The channel 
Returns
- Occurrence
- The corresponding occurrence 
getAnimationComponentPropertyBinderLists
packs all animation-related info in an object
Warning
This function is tagged as EXPERIMENTAL.
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getAnimationComponentPropertyBinderLists(animationComponent) -> scene.AnimPropertyBinderListParameters
- animationComponentAnimationComponent
- Animation to get info of 
Returns
getAnimationInfo
packs all animation-related info in an object
Warning
This function is tagged as EXPERIMENTAL.
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getAnimationInfo(animation) -> scene.AnimationInfoParameters
- animationAnimation
- Animation to get info of 
Returns
getAnimationPropertyBinderLists
packs all animation-related info in an object
Warning
This function is tagged as EXPERIMENTAL.
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getAnimationPropertyBinderLists(animation) -> scene.AnimPropertyBinderListParameters
- animationAnimation
- Animation to get info of 
Returns
getJointDefinition
Get joint definition from id
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getJointDefinition(joint) -> scene.JointDefinitionParameters
- jointJoint
- Id of the joint 
Returns
- JointDefinition
- The jointDefinition matching the id provided 
getJointDefinitions
Get joint definition from id
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getJointDefinitions(joints) -> scene.JointDefinitionListParameters
- jointsJointList
- Ids of joints 
Returns
- JointDefinitionList
- An array of all jointDefinition matching joint provided 
getKeyframeParentAnimChannel
Returns the parent AnimChannel of a given Keyframe
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getKeyframeParentAnimChannel(keyframe) -> scene.AnimChannelParameters
- keyframeKeyframe
- The keyframe one wants the parent of 
Returns
- AnimChannel
- The Parent 
getKeyframes
Returns a list of all keyframes of a simple animChannel
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getKeyframes(channel) -> scene.KeyframeListParameters
- channelAnimChannel
- The channel one wants to extract the keyframs from 
Returns
- KeyframeList
- The list of keyframes 
getMainChannel
Returns the main AnimChannel of a given AnimChannel
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getMainChannel(channel) -> scene.AnimChannelParameters
- channelAnimChannel
- The channel one wants the main of 
Returns
- AnimChannel
- The corresponding main Channel 
getOccurrenceJoint
Returns the Joint assigned to an occurrence if any
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getOccurrenceJoint(occurrence) -> polygonal.JointParameters
- occurrenceOccurrence
- The occurrence 
Returns
- Joint
- The joint assigned to the given occurrence 
getParentChannel
Returns (if exists) the parent AnimChannel of a given AnimChannel
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getParentChannel(channel) -> scene.AnimChannelParameters
- channelAnimChannel
- The channel one wants the parent of 
Returns
- AnimChannel
- The corresponding parent Channel 
getSubChannel
Returns the subchannel of a given name from an AnimChannel
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getSubChannel(channel, name) -> scene.AnimChannelParameters
- channelAnimChannel
- The channel one wants the subchannel of 
- nameString
- The name of the subchannel 
Returns
- AnimChannel
- The corresponding subchannel 
getSubChannels
Returns all the sub channel of an AnimChannel
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.getSubChannels(channel) -> scene.AnimChannelListParameters
- channelAnimChannel
- The channel one wants the subchannel of 
Returns
- AnimChannelList
- The list of direct sub channels 
linkPropertyToAnimation
Creates a Binder in an Animation stack to animate an entity's property
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.linkPropertyToAnimation(animation, entity, propertyName) -> scene.AnimChannelParameters
- animationAnimation
- The Animation stack where to put a animated property 
- entityEntity
- The entity object to animate 
- propertyNameString
- The name of the property to animate 
Returns
- AnimChannel
- The main channel of the binder 
listAnimations
List all Animations from the scene
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.listAnimations() -> scene.AnimationListReturns
- AnimationList
- The list containing animations 
listMainChannels
List all main AnimChannel from a given Animation
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.listMainChannels(animation) -> scene.AnimChannelListParameters
- animationAnimation
- The Animation one wants to list the channels from 
Returns
- AnimChannelList
- The list containing the AnimChannels 
makeDefaultKeyframe
Creates keyframes with the default values of the channel at time 0
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.moveAnimation
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.makeDefaultKeyframe(channel)Parameters
- channelAnimChannel
- The channel 
moveAnimation
Moving animation
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.removeKeyframe
- scene.unlinkPropertyToAnimation
scene.moveAnimation(animation, target, newParent, interval)Parameters
- animationAnimation
- The Animation 
- targetOccurrence
- The target occurrence 
- newParentOccurrence
- The new parent occurrence 
- intervalAnimationTime
- The interval 
removeKeyframe
Removes a keyframe in the curve
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.unlinkPropertyToAnimation
scene.removeKeyframe(channel, time)Parameters
- channelAnimChannel
- The channel one wants to remove a keyframe from 
- timeAnimationTime
- The time 
unlinkPropertyToAnimation
Unlinks a binder
See also:
- scene.addAnimation
- scene.addKeyframe
- scene.addKeyframeFromCurrentPosition
- scene.animatesThisOccurrence
- scene.bakeAnimation
- scene.createAnimation
- scene.createSkeletonMesh
- scene.decimateAnimChannelBySegment
- scene.deleteAnimation
- scene.deleteEmptyAnimation
- scene.displayAllKeyframesFromAnimChannel
- scene.displayAllKeyframesFromAnimation
- scene.displayValueFromAnimChannelAtTime
- scene.getAnimChannelIfExists
- scene.getAnimChannelInfo
- scene.getAnimChannelOccurrence
- scene.getAnimationComponentPropertyBinderLists
- scene.getAnimationInfo
- scene.getAnimationPropertyBinderLists
- scene.getJointDefinition
- scene.getJointDefinitions
- scene.getKeyframeParentAnimChannel
- scene.getKeyframes
- scene.getMainChannel
- scene.getOccurrenceJoint
- scene.getParentChannel
- scene.getSubChannel
- scene.getSubChannels
- scene.linkPropertyToAnimation
- scene.listAnimations
- scene.listMainChannels
- scene.makeDefaultKeyframe
- scene.moveAnimation
- scene.removeKeyframe
scene.unlinkPropertyToAnimation(animation, entity, propertyName)Parameters
- animationAnimation
- The Animation stack where to put a animated property 
- entityEntity
- The entity object to animate 
- propertyNameString
- The name of the property to animate 
getBRepInfos
See also:
scene.getBRepInfos() -> core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Double, core.Int, core.IntReturns
- Int
- The part count 
getTessellationInfos
See also:
scene.getTessellationInfos(root) -> core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.Int, core.IntParameters
- rootOccurrence
- Occurrence tree root 
Returns
- Int
- The part count 
scene.print(root=0)Parameters
- rootOccurrence
- Occurrence tree root 
addFilterToLibrary
Add a filter to the filters library
See also:
- scene.evaluateExpression
- scene.evaluateExpressionOnOccurrences
- scene.evaluateExpressionOnSubTree
- scene.exportFilterLibrary
- scene.findFilterByName
- scene.getFilterExpression
- scene.getFilterFromLibrary
- scene.getFilteredOccurrences
- scene.importFilterLibrary
- scene.listFilterLibrary
- scene.removeFilterFromLibrary
scene.addFilterToLibrary(name, expr) -> core.IdentParameters
- nameString
- Name of the filter 
- exprFilterExpression
- The filter expression 
Returns
- Ident
- Identifier of the created filter 
evaluateExpression
Evaluate the given filter expression
See also:
- scene.addFilterToLibrary
- scene.evaluateExpressionOnOccurrences
- scene.evaluateExpressionOnSubTree
- scene.exportFilterLibrary
- scene.findFilterByName
- scene.getFilterExpression
- scene.getFilterFromLibrary
- scene.getFilteredOccurrences
- scene.importFilterLibrary
- scene.listFilterLibrary
- scene.removeFilterFromLibrary
scene.evaluateExpression(filter) -> core.StringParameters
- filterFilterExpression
- The filter expression 
Returns
- String
- Result of the given expression 
evaluateExpressionOnOccurrences
evaluate the given filter expression on all occurrences under the given occurrence and returns the result
See also:
scene.evaluateExpressionOnOccurrences(occurrences, filter) -> core.StringListParameters
- occurrencesOccurrenceList
- Occurrences on which to evaluate the expression 
- filterFilterExpression
- The filter expression 
Returns
- StringList
- The evaluation of the expression on the occurrence at the same index in given occurrences 
evaluateExpressionOnSubTree
evaluate the given filter expression on all occurrences under the given occurrence and returns the result
See also:
scene.evaluateExpressionOnSubTree(filter, fromOcc) -> scene.OccurrenceList, core.StringListParameters
- filterFilterExpression
- The filter expression 
- fromOccOccurrence
- Source occurrence of the recursion 
Returns
exportFilterLibrary
Export filters from a given file
See also:
- scene.addFilterToLibrary
- scene.evaluateExpression
- scene.evaluateExpressionOnOccurrences
- scene.evaluateExpressionOnSubTree
- scene.findFilterByName
- scene.getFilterExpression
- scene.getFilterFromLibrary
- scene.getFilteredOccurrences
- scene.importFilterLibrary
- scene.listFilterLibrary
- scene.removeFilterFromLibrary
scene.exportFilterLibrary(file)Parameters
- fileFilePath
- File path to export 
findFilterByName
Returns the first filter in the filter library with the given name
See also:
- scene.addFilterToLibrary
- scene.evaluateExpression
- scene.evaluateExpressionOnOccurrences
- scene.evaluateExpressionOnSubTree
- scene.exportFilterLibrary
- scene.getFilterExpression
- scene.getFilterFromLibrary
- scene.getFilteredOccurrences
- scene.importFilterLibrary
- scene.listFilterLibrary
- scene.removeFilterFromLibrary
scene.findFilterByName(name) -> scene.FilterParameters
- nameString
- Name of the filter to retrieve (case sensitive) 
Returns
- Filter
- The retrieved filter 
getFilterExpression
Returns the filter expression (string) from a filter id stored in the library
See also:
- scene.addFilterToLibrary
- scene.evaluateExpression
- scene.evaluateExpressionOnOccurrences
- scene.evaluateExpressionOnSubTree
- scene.exportFilterLibrary
- scene.findFilterByName
- scene.getFilterFromLibrary
- scene.getFilteredOccurrences
- scene.importFilterLibrary
- scene.listFilterLibrary
- scene.removeFilterFromLibrary
scene.getFilterExpression(filterId) -> scene.FilterExpressionParameters
- filterIdIdent
- Identifier of the filter to fetch 
Returns
- FilterExpression
- Filter expression 
getFilterFromLibrary
Retrieve a filter from the library with its identifier
See also:
- scene.addFilterToLibrary
- scene.evaluateExpression
- scene.evaluateExpressionOnOccurrences
- scene.evaluateExpressionOnSubTree
- scene.exportFilterLibrary
- scene.findFilterByName
- scene.getFilterExpression
- scene.getFilteredOccurrences
- scene.importFilterLibrary
- scene.listFilterLibrary
- scene.removeFilterFromLibrary
scene.getFilterFromLibrary(filterId) -> scene.FilterParameters
- filterIdIdent
- Identifier of the filter to retrieve 
Returns
- Filter
- The retrieved filter 
getFilteredOccurrences
Recursively get all the occurrences validating the given filter expression
See also:
- scene.addFilterToLibrary
- scene.evaluateExpression
- scene.evaluateExpressionOnOccurrences
- scene.evaluateExpressionOnSubTree
- scene.exportFilterLibrary
- scene.findFilterByName
- scene.getFilterExpression
- scene.getFilterFromLibrary
- scene.importFilterLibrary
- scene.listFilterLibrary
- scene.removeFilterFromLibrary
scene.getFilteredOccurrences(filter, fromOcc) -> scene.OccurrenceListParameters
- filterFilterExpression
- The filter expression 
- fromOccOccurrence
- Source occurrence of the recursion 
Returns
- OccurrenceList
- Result occurrences 
importFilterLibrary
Import filters from a given file
See also:
- scene.addFilterToLibrary
- scene.evaluateExpression
- scene.evaluateExpressionOnOccurrences
- scene.evaluateExpressionOnSubTree
- scene.exportFilterLibrary
- scene.findFilterByName
- scene.getFilterExpression
- scene.getFilterFromLibrary
- scene.getFilteredOccurrences
- scene.listFilterLibrary
- scene.removeFilterFromLibrary
scene.importFilterLibrary(file)Parameters
- fileFilePath
- File containing the filter library 
listFilterLibrary
Returns all the filter stored in the filter library
See also:
- scene.addFilterToLibrary
- scene.evaluateExpression
- scene.evaluateExpressionOnOccurrences
- scene.evaluateExpressionOnSubTree
- scene.exportFilterLibrary
- scene.findFilterByName
- scene.getFilterExpression
- scene.getFilterFromLibrary
- scene.getFilteredOccurrences
- scene.importFilterLibrary
- scene.removeFilterFromLibrary
scene.listFilterLibrary() -> scene.FilterListReturns
- FilterList
- All the filters stored in the filter library 
removeFilterFromLibrary
Remove a filter from the filters library
See also:
- scene.addFilterToLibrary
- scene.evaluateExpression
- scene.evaluateExpressionOnOccurrences
- scene.evaluateExpressionOnSubTree
- scene.exportFilterLibrary
- scene.findFilterByName
- scene.getFilterExpression
- scene.getFilterFromLibrary
- scene.getFilteredOccurrences
- scene.importFilterLibrary
- scene.listFilterLibrary
scene.removeFilterFromLibrary(filterId)Parameters
- filterIdIdent
- Identifier of the filter to remove 
isolate
Enter isolate mode by isolating a subset of the scene for process, export, viewer, ...
See also:
scene.isolate(occurrences)Parameters
- occurrencesOccurrenceList
- Occurrences to isolate 
unisolate
scene.unisolate()findPartOccurrencesWithUnstitchedFaces
Find all the occurrences with unstitched faces
See also:
scene.findPartOccurrencesWithUnstitchedFaces(root) -> scene.OccurrenceListParameters
- rootOccurrence
- Root occurrence 
Returns
- OccurrenceList
- Unstitched faces occurrences 
mergeOccurrencesByTreeLevel
Merge all parts over maxLevel level
See also:
- scene.findPartOccurrencesWithUnstitchedFaces
- scene.mergePartOccurrences
- scene.mergePartOccurrencesByAssemblies
- scene.mergePartOccurrencesByFinalAssemblies
- scene.mergePartOccurrencesByMaterials
- scene.mergePartOccurrencesByName
- scene.mergePartOccurrencesByRegions
- scene.mergePartOccurrencesWithOpenShells
scene.mergeOccurrencesByTreeLevel(roots, maxLevel=5, mergeHiddenPartsMode=2)Parameters
- rootsOccurrenceList
- Roots occurrences for the process 
- maxLevelInt
- Maximum tree level 
- mergeHiddenPartsModeMergeHiddenPartsMode
- Hidden parts handling mode, Destroy them, make visible or merge separately 
mergePartOccurrences
Merge a set of parts
See also:
- scene.findPartOccurrencesWithUnstitchedFaces
- scene.mergeOccurrencesByTreeLevel
- scene.mergePartOccurrencesByAssemblies
- scene.mergePartOccurrencesByFinalAssemblies
- scene.mergePartOccurrencesByMaterials
- scene.mergePartOccurrencesByName
- scene.mergePartOccurrencesByRegions
- scene.mergePartOccurrencesWithOpenShells
scene.mergePartOccurrences(partOccurrences, mergeHiddenPartsMode) -> scene.OccurrenceListParameters
- partOccurrencesOccurrenceList
- Occurrence of the parts to merge 
- mergeHiddenPartsModeMergeHiddenPartsMode
- Hidden parts handling mode, Destroy them, make visible or merge separately 
Returns
- OccurrenceList
- Resulting merged occurrences 
mergePartOccurrencesByAssemblies
Merge all parts under each assembly together
See also:
scene.mergePartOccurrencesByAssemblies(roots, mergeHiddenPartsMode=2)Parameters
- rootsOccurrenceList
- Roots occurrences for the process (will not be removed) 
- mergeHiddenPartsModeMergeHiddenPartsMode
- Hidden parts handling mode, Destroy them, make visible or merge separately 
mergePartOccurrencesByFinalAssemblies
Merge final level (occurrences with only occurrence with part component as children)
See also:
scene.mergePartOccurrencesByFinalAssemblies(roots, mergeHiddenPartsMode=2, CollapseToParent=True)Parameters
- rootsOccurrenceList
- Roots occurrences for the process (will not be removed) 
- mergeHiddenPartsModeMergeHiddenPartsMode
- Hidden parts handling mode, Destroy them, make visible or merge separately 
- CollapseToParentBoolean
- If true, final level unique merged part will replace it's parent 
mergePartOccurrencesByMaterials
Merge a set of parts by materials
See also:
scene.mergePartOccurrencesByMaterials(partOccurrences, mergeNoMaterials, mergeHiddenPartsMode, combineMeshes) -> scene.OccurrenceListParameters
- partOccurrencesOccurrenceList
- Occurrence of the parts to merge 
- mergeNoMaterialsBoolean
- If true, merge all parts with no active material together, else do not merge them 
- mergeHiddenPartsModeMergeHiddenPartsMode
- Hidden parts handling mode, Destroy them, make visible or merge separately 
- combineMeshesBoolean
- If true, explode and remerge the input parts by visible materials 
Returns
- OccurrenceList
- Resulting merged occurrences 
mergePartOccurrencesByName
Merge all parts by occurrences names
See also:
- scene.findPartOccurrencesWithUnstitchedFaces
- scene.mergeOccurrencesByTreeLevel
- scene.mergePartOccurrences
- scene.mergePartOccurrencesByAssemblies
- scene.mergePartOccurrencesByFinalAssemblies
- scene.mergePartOccurrencesByMaterials
- scene.mergePartOccurrencesByRegions
- scene.mergePartOccurrencesWithOpenShells
scene.mergePartOccurrencesByName(root=0, mergeHiddenPartsMode=2)Parameters
- rootOccurrence
- Root occurrence of the subtree to process 
- mergeHiddenPartsModeMergeHiddenPartsMode
- Hidden parts handling mode, Destroy them, make visible or merge separately 
mergePartOccurrencesByRegions
Merge all parts within the same area.
See also:
- scene.findPartOccurrencesWithUnstitchedFaces
- scene.mergeOccurrencesByTreeLevel
- scene.mergePartOccurrences
- scene.mergePartOccurrencesByAssemblies
- scene.mergePartOccurrencesByFinalAssemblies
- scene.mergePartOccurrencesByMaterials
- scene.mergePartOccurrencesByName
- scene.mergePartOccurrencesWithOpenShells
scene.mergePartOccurrencesByRegions(roots, mergeBy, strategy) -> scene.OccurrenceListParameters
- rootsOccurrenceList
- Roots occurrences for the process (will not be removed) 
- mergeByMergeByRegionsStrategy
- Number: number of output parts (or regions of parts)\nSize: diagonal size of output regions 
- strategyMergeStrategy
- Choose the regions merging strategy 
Returns
- OccurrenceList
- Resulting merged occurrences 
mergePartOccurrencesWithOpenShells
Merge occurrences that contain only openShell as CAD entities
See also:
scene.mergePartOccurrencesWithOpenShells(root) -> scene.OccurrenceListParameters
- rootOccurrence
- Root of the main assembly to merge 
Returns
- OccurrenceList
- List of the merged occurrence that contained only openShell 
applyTransformation
apply a transformation to the local matrix of an occurrence
See also:
scene.applyTransformation(occurrence, matrix)Parameters
- occurrenceOccurrence
- Occurrence to apply the matrix on 
- matrixMatrix4
- Transformation to matrix 
createSymmetry
Create symmetries from selection
See also:
scene.createSymmetry(occurrences, plane)Parameters
- occurrencesOccurrenceList
- Selection of occurrences 
- planeAxisPlane
- Symmetry plane 
rotate
Modify the local matrix of the scene node to apply a rotation
See also:
scene.rotate(occurrence, axis, angle)Parameters
- occurrenceOccurrence
- Occurrence to rotate 
- axisVector3
- Axis of rotation 
- angleAngle
- Angle of rotation 
setLocalMatrix
change the local matrix on an occurrence
See also:
scene.setLocalMatrix(occurrence, matrix)Parameters
- occurrenceOccurrence
- Occurrence to set the local matrix 
- matrixMatrix4
- The new occurrence local matrix 
getPartMesh
Return the mesh of the TesselatedShape
See also:
scene.getPartMesh(part) -> polygonal.MeshParameters
- partPart
- The part component 
Returns
- Mesh
- The mesh of the tessellated shape of the part 
getPartModel
Return the model of the BRepShape
See also:
scene.getPartModel(part) -> cad.ModelParameters
- partPart
- The part component 
Returns
- Model
- The model of the BRep shape of the part 
getPartsMeshes
Return the meshes of the TesselatedShape for each given parts if any
See also:
scene.getPartsMeshes(parts) -> polygonal.MeshListParameters
- partsPartList
- The list of part component 
Returns
- MeshList
- The list of mesh of the tessellated shape of each part 
getPartsModels
Return the models of the BRepShape for each given parts if any
See also:
scene.getPartsModels(parts) -> cad.ModelListParameters
- partsPartList
- The list of part component 
Returns
- ModelList
- The list of models of the BRep shape of each part 
getPartsTransforms
Returns the transform matrix of each given parts
See also:
scene.getPartsTransforms(parts) -> geom.Matrix4ListParameters
- partsPartList
- The parts to retrieve transform 
Returns
- Matrix4List
- The transform matrix of each part 
getPartsTransformsIndexed
Returns the transform matrix of each given parts (indexed mode)
See also:
scene.getPartsTransformsIndexed(parts) -> core.IntList, geom.Matrix4ListParameters
- partsPartList
- The parts to retrieve transform 
Returns
- IntList
- The transform matrix index for each parts (0 for Identity) 
setPartMesh
Add a mesh to a part (create a TessellatedShape on the part)
See also:
scene.setPartMesh(part, mesh)Parameters
setPartModel
Add a model to a part (create a BRepShape on the part)
See also:
scene.setPartModel(part, model)Parameters
setPartsTransforms
Set the transform matrix of each given parts
See also:
scene.setPartsTransforms(parts, transforms)Parameters
- partsPartList
- The parts to retrieve transform 
- transformsMatrix4List
- The transform matrix of each part 
setPartsTransformsIndexed
Set the transform matrix of each given parts (indexed mode)
See also:
scene.setPartsTransformsIndexed(parts, indices, transforms)Parameters
- partsPartList
- The parts to retrieve transform 
- indicesIntList
- The transform matrix index for each parts 
- transformsMatrix4List
- The list of transform matrices 
getPartialLoadingStatus
Get the current status of a partial loading component
See also:
scene.getPartialLoadingStatus(component) -> scene.PartialLoad_StatusParameters
- componentReferencedDataComponent
- Referenced Data component 
Returns
- PartialLoad_Status
- The current status 
setReferencedDataComponentParent
Defines which referenced data is parent to the given component
See also:
scene.setReferencedDataComponentParent(component, parent)Parameters
- componentReferencedDataComponent
- The referenced data component to alter 
- parentReferencedDataComponent
- The parent 
setReferencedDataComponentPath
Defines which path the refereced data is at
See also:
scene.setReferencedDataComponentPath(component, filePath)Parameters
- componentReferencedDataComponent
- The referenced data component to alter 
- filePathString
- The filepath 
alignPivotPointToWorld
Re-orient the Pivot Point straight to world origin (the grid)
See also:
scene.alignPivotPointToWorld(occurrences, applyToChildren=False)Parameters
- occurrencesOccurrenceList
- The occurrences to modify 
- applyToChildrenBool
- If True, all the pivot of the descending occurrences from occurrence will be affected 
movePivotPointToOccurrenceCenter
Move the pivot point of each occurrence listed in the function input, to the center of its bounding box (and of its children if the parameter is True)
See also:
scene.movePivotPointToOccurrenceCenter(occurrences, applyToChildren=False)Parameters
- occurrencesOccurrenceList
- Occurrences (or the roots occurrences if recursively=True) 
- applyToChildrenBool
- If True, all the pivot of the descending occurrences from occurrence will be affected 
movePivotPointToOrigin
Move the pivot point of an occurrence (and its descendants if recursively) to the origin (0,0,0)
See also:
scene.movePivotPointToOrigin(occurrence, applyToChildren=False)Parameters
- occurrenceOccurrence
- The occurrence (or the root occurrence if recursively=True) 
- applyToChildrenBool
- If True, all the pivot of the descending occurrences from occurrence will be affected 
movePivotPointToSelectionCenter
Move the pivot point of all given occurrences to the center of all occurrences
See also:
scene.movePivotPointToSelectionCenter(occurrences)Parameters
- occurrencesOccurrenceList
- The occurrences to modify 
movePivotPointToTargetedOccurrenceCenter
Move the pivot point of each occurrence listed in the function input, to the center of the targeted occurrence Center (and of its children if the parameter is True)
See also:
scene.movePivotPointToTargetedOccurrenceCenter(occurrences, target, applyToChildren=False)Parameters
- occurrencesOccurrenceList
- The occurrence (or the root occurrence if recursively=True) 
- targetOccurrence
- The target occurrence 
- applyToChildrenBool
- If True, all the pivot of the descending occurrences from occurrence will be affected 
setPivotOnly
Set the pivot of an occurrence to the given transformation matrix, the geometry will not be moved (warning: do not confuse with property Transform which actually move the occurrence)
See also:
scene.setPivotOnly(occurrence, pivot)Parameters
- occurrenceOccurrence
- The occurrence to move the pivot 
- pivotMatrix4
- The new transformation matrix for the occurrence (pivot) 
addAnnotationGroup
add a Annotation Group to the pmi component
See also:
- scene.addMeshToAnnotation
- scene.convertPMIToOccurrences
- scene.createAnnotationFromDefinition
- scene.getAnnotationDefinition
- scene.getAnnotationGroups
- scene.getAnnotations
- scene.getOccurrenceAnnotationDefinitions
- scene.getProductViewDefinition
- scene.getProductViewDefinitions
- scene.setAnnotationToGroup
scene.addAnnotationGroup(component, name) -> scene.AnnotationGroupParameters
- componentPMIComponent
- Component to add the Annotation Group 
- nameString
- Name of the annotation group 
Returns
- AnnotationGroup
- Annotation group created 
addMeshToAnnotation
add a mesh and its material to a annotation
See also:
scene.addMeshToAnnotation(annotation, material, staticmesh)Parameters
- annotationAnnotation
- materialMaterial
- staticmeshStaticMesh
convertPMIToOccurrences
Convert each PMI component into a set of occurrences with mesh geometries
See also:
scene.convertPMIToOccurrences(occurrences, convertVisibility=False)Parameters
- occurrencesOccurrenceList
- Occurrence selection 
- convertVisibilityBoolean
- If True, the visibility will be converted (useful to select a specific view/variant), else all occurrences will be visible 
createAnnotationFromDefinition
See also:
scene.createAnnotationFromDefinition(definition) -> scene.AnnotationParameters
- definitionAnnotationDefinition
- Annotation definition 
Returns
getAnnotationDefinition
get definition of given annotation
See also:
scene.getAnnotationDefinition(annotation) -> scene.AnnotationDefinitionParameters
- annotationAnnotation
Returns
getAnnotationGroups
Returns the list of the AnnotationGroup from a PMIComponent
See also:
scene.getAnnotationGroups(pmiComponent) -> scene.AnnotationGroupListParameters
- pmiComponentComponent
- The pmi component 
Returns
- AnnotationGroupList
- List of AnnotationGroup 
getAnnotations
Returns the list of the Annotation from a AnnotationGroup
See also:
- scene.addAnnotationGroup
- scene.addMeshToAnnotation
- scene.convertPMIToOccurrences
- scene.createAnnotationFromDefinition
- scene.getAnnotationDefinition
- scene.getAnnotationGroups
- scene.getOccurrenceAnnotationDefinitions
- scene.getProductViewDefinition
- scene.getProductViewDefinitions
- scene.setAnnotationToGroup
scene.getAnnotations(group) -> scene.AnnotationListParameters
- groupAnnotationGroup
- The AnnotationGroup 
Returns
- AnnotationList
- List of Annotation 
getOccurrenceAnnotationDefinitions
get all annotations definition of given occurrence
See also:
scene.getOccurrenceAnnotationDefinitions(occurrence) -> scene.AnnotationDefinitionListParameters
- occurrenceOccurrence
Returns
getProductViewDefinition
get productview definition
See also:
scene.getProductViewDefinition(view) -> scene.ProductViewDefinitionParameters
- viewVariant
- The product view 
Returns
getProductViewDefinitions
get all productviews definitions
See also:
scene.getProductViewDefinitions() -> scene.ProductViewDefinitionListReturns
setAnnotationToGroup
set Annotation to a Annotation Group
See also:
scene.setAnnotationToGroup(annotation, group)Parameters
- annotationAnnotation
- groupAnnotationGroup
cleanInstances
Clean prototypes and instances (lonely instances, overriding their prototypes hierarchies...).
See also:
scene.cleanInstances(removeUselessInstances=True, removeHierarchyOverridingInstances=False, occurrence=0)Parameters
- removeUselessInstancesBoolean
- Remove instances where they are not needed (prototype referenced once, ...) 
- removeHierarchyOverridingInstancesBoolean
- Remove instances overriding their prototypes sub-hierarchies. 
- occurrenceOccurrence
- Root occurrence for the process 
getDirectInstances
Returns all the occurrences prototyping the given occurrence
See also:
scene.getDirectInstances(prototype) -> scene.OccurrenceListParameters
- prototypeOccurrence
- The prototype occurrence 
Returns
- OccurrenceList
- The instances 
getInstances
Get occurrences sharing the same prototype as the given one
See also:
scene.getInstances(occurrence) -> scene.OccurrenceListParameters
- occurrenceOccurrence
- Reference part occurrence 
Returns
- OccurrenceList
- The list of occurrences sharing the same prototype 
getPrototype
Returns the prototype of an occurrence
See also:
scene.getPrototype(occurrence) -> scene.OccurrenceParameters
- occurrenceOccurrence
- The occurrence 
Returns
- Occurrence
- The prototype (if any) 
prototypeSubTree
Create occurrences that prototype the given occurrence and all its subtree
See also:
scene.prototypeSubTree(prototype) -> scene.OccurrenceParameters
- prototypeOccurrence
- The root occurrence of the sub-tree to prototype 
Returns
- Occurrence
- The root occurrence of the prototyped sub-tree 
setPrototype
Sets the prototype of an occurrence
See also:
scene.setPrototype(occurrence, prototype)Parameters
- occurrenceOccurrence
- The occurrence 
- prototypeOccurrence
- The prototype 
clearSelection
Clear the current selection
See also:
scene.clearSelection()deleteSelection
Delete all selected occurrences, and/or sub-occurrence elements
See also:
scene.deleteSelection()explodeSelection
For each occurrence, create a new occurrence with the selected sub-occurrence elements and remove them from the original occurrence
See also:
scene.explodeSelection()getSelectedOccurrences
Returns all the selected occurrences
See also:
scene.getSelectedOccurrences(keepAncestors) -> scene.OccurrenceListParameters
- keepAncestorsBoolean
- If True, occurrences with ancestors selected will be remove from the list 
Returns
- OccurrenceList
- The list of selected occurrences 
invertOrientationSelection
Invert the orientation of each selected item (occurrences and/or sub-occurrence elements
See also:
scene.invertOrientationSelection()invertSelection
Replace the selection by all unselected part occurrences
See also:
scene.invertSelection()select
Add occurrences to selection
See also:
scene.select(occurrences)Parameters
- occurrencesOccurrenceList
- Occurrences to add to the selection 
separateSelection
Separate all polygons form their original parts into a new one
See also:
scene.separateSelection() -> scene.OccurrenceReturns
- Occurrence
- The new occurrence created 
unselect
Remove occurrences to selection
See also:
scene.unselect(occurrence)Parameters
- occurrenceOccurrenceList
- Occurrences to remove from the selection 
compress
Compress a sub-tree by removing occurrence containing only one Child or empty, and by removing useless instances (see removeUselessInstances)
See also:
scene.compress(occurrence) -> scene.OccurrenceParameters
- occurrenceOccurrence
- Root occurrence for the process 
Returns
- Occurrence
- The resulting occurrences of compression 
convertToOldSchoolVisibility
Modify the visible properties of the sub-tree to look like old school visibility (only hidden/inherited)
See also:
scene.convertToOldSchoolVisibility(root=0)Parameters
- rootOccurrence
- Root occurrence 
getHiddenPartOccurrences
Get hidden part occurrences
See also:
scene.getHiddenPartOccurrences() -> scene.OccurrenceListReturns
- OccurrenceList
- The list of hidden occurrences (visibility status) 
getVisiblePartOccurrences
Get visible part occurrences
See also:
scene.getVisiblePartOccurrences() -> scene.OccurrenceListReturns
- OccurrenceList
- The list of visible part occurrences (visibility status) 
makeInstanceUnique
Singularize all instances on the sub-tree of an occurrence
See also:
scene.makeInstanceUnique(occurrences=0, keepOnlyPartInstances=False)Parameters
- occurrencesOccurrenceList
- Root occurrence for the process 
- keepOnlyPartInstancesBoolean
- If true, instances of part will not be singularized 
rake
Set the same parent to all descending parts (all parts will be singularized)
See also:
scene.rake(occurrence=0, keepInstances=False)Parameters
- occurrenceOccurrence
- Root occurrence for the process 
- keepInstancesBoolean
- If false, the part will be singularized 
removeSymmetryMatrices
Remove symmetry matrices (apply matrices on geometries on nodes under an occurrence with a symmetry matrix
See also:
scene.removeSymmetryMatrices(occurrence=0)Parameters
- occurrenceOccurrence
- Root occurrence for the process 
resetPartTransform
Set all part transformation matrices to identity in a sub-tree, transformation will be applied to the shapes
See also:
scene.resetPartTransform(root=0)Parameters
- rootOccurrence
- Root occurrence for the process 
resetTransform
Set all transformation matrices to identity in a sub-tree.
See also:
scene.resetTransform(root, recursive=True, keepInstantiation=True, keepPartTransform=False)Parameters
- rootOccurrence
- Root occurrence for the process 
- recursiveBoolean
- If False, transformation will be applied only on the root and its components 
- keepInstantiationBoolean
- If False, all occurrences will be singularized 
- keepPartTransformBoolean
- If False, transformation will be applied to the shapes (BRepShape points or TessellatedShape vertices) 
createRayProber
Creates a ray prober
See also:
scene.createRayProber() -> core.IdentReturns
createSphereProber
Creates a sphere prober
See also:
scene.createSphereProber() -> core.IdentReturns
rayCast
See also:
scene.rayCast(ray, root) -> scene.RayHitParameters
- rayRay
- The ray to cast 
- rootOccurrence
- The root occurrence to cast from 
Returns
- RayHit
- Information of the first ray hit 
rayCastAll
See also:
scene.rayCastAll(ray, root) -> scene.RayHitListParameters
- rayRay
- The ray to cast 
- rootOccurrence
- The root occurrence to cast from 
Returns
- RayHitList
- Information of the first ray hit 
updateRayProber
Updates the designed ray prober
See also:
scene.updateRayProber(proberID, ray)Parameters
updateSphereProber
Updates the designed sphere prober
See also:
scene.updateSphereProber(proberID, sphereCenter, sphereRadius)Parameters
- proberIDIdent
- The sphere prober Id 
- sphereCenterVector3
- The new prober center 
- sphereRadiusDouble
- The new prober radius 
getMultipleOccurrenceUserData
Batch version of getOccurrenceUserData
See also:
scene.getMultipleOccurrenceUserData(userDataId, occurrences) -> core.PtrListParameters
- userDataIdOccurrenceUserData
- UserData identifier provided by subscribeToOccurrenceUserData 
- occurrencesOccurrenceList
- Occurrences that store the user data 
Returns
- PtrList
- User data stored for each given occurrence 
getOccurrenceUserData
Set or replace a userdata stored on an occurrence
See also:
- scene.getMultipleOccurrenceUserData
- scene.hasMultipleOccurrenceUserData
- scene.hasOccurrenceUserData
- scene.setMultipleOccurrenceUserData
- scene.setOccurrenceUserData
- scene.subscribeToOccurrenceUserData
- scene.unsetMultipleOccurrenceUserData
- scene.unsetOccurrenceUserData
- scene.unsubscribeFromOccurrenceUserData
scene.getOccurrenceUserData(userDataId, occurrence) -> core.PtrParameters
- userDataIdOccurrenceUserData
- UserData identifier provided by subscribeToOccurrenceUserData 
- occurrenceOccurrence
- Occurrence that store the user data 
Returns
- Ptr
- User data stored in the given occurrence 
hasMultipleOccurrenceUserData
Batch version of hasOccurrenceUserData
See also:
scene.hasMultipleOccurrenceUserData(userDataId, occurrences) -> core.BoolListParameters
- userDataIdOccurrenceUserData
- UserData identifier provided by subscribeToOccurrenceUserData 
- occurrencesOccurrenceList
- Occurrences that potentially store the user data 
Returns
- BoolList
- Returns an array of bool that are true if a userdata is stored on the occurrence at the same index for the given userDataId 
hasOccurrenceUserData
Set or replace a userdata stored on an occurrence
See also:
- scene.getMultipleOccurrenceUserData
- scene.getOccurrenceUserData
- scene.hasMultipleOccurrenceUserData
- scene.setMultipleOccurrenceUserData
- scene.setOccurrenceUserData
- scene.subscribeToOccurrenceUserData
- scene.unsetMultipleOccurrenceUserData
- scene.unsetOccurrenceUserData
- scene.unsubscribeFromOccurrenceUserData
scene.hasOccurrenceUserData(userDataId, occurrence) -> core.BoolParameters
- userDataIdOccurrenceUserData
- UserData identifier provided by subscribeToOccurrenceUserData 
- occurrenceOccurrence
- Occurrence that potentially store the user data 
Returns
- Bool
- Returns true if a userdata is stored on this occurrence for the given userDataId 
setMultipleOccurrenceUserData
Batch version of setOccurrenceUserData
See also:
scene.setMultipleOccurrenceUserData(userDataId, occurrences, userDataList)Parameters
- userDataIdOccurrenceUserData
- UserData identifier provided by subscribeToOccurrenceUserData 
- occurrencesOccurrenceList
- Occurrences that will store the user data 
- userDataListPtrList
- User data to store on each occurrence 
setOccurrenceUserData
Set or replace a userdata stored on an occurrence
See also:
- scene.getMultipleOccurrenceUserData
- scene.getOccurrenceUserData
- scene.hasMultipleOccurrenceUserData
- scene.hasOccurrenceUserData
- scene.setMultipleOccurrenceUserData
- scene.subscribeToOccurrenceUserData
- scene.unsetMultipleOccurrenceUserData
- scene.unsetOccurrenceUserData
- scene.unsubscribeFromOccurrenceUserData
scene.setOccurrenceUserData(userDataId, occurrence, userData)Parameters
- userDataIdOccurrenceUserData
- UserData identifier provided by subscribeToOccurrenceUserData 
- occurrenceOccurrence
- Occurrence that will store the user data 
- userDataPtr
- User data to store in the given occurrence 
subscribeToOccurrenceUserData
subscribe to occurrence user data. multiple different userdata can be stored on the same occurrences if subscribeToOccurrenceUserData is called multiple times
See also:
scene.subscribeToOccurrenceUserData() -> scene.OccurrenceUserDataReturns
- OccurrenceUserData
- UserData identifier to pass to setUserData/getUserData functions 
unsetMultipleOccurrenceUserData
Batch version of unsetOccurrenceUserData
See also:
scene.unsetMultipleOccurrenceUserData(userDataId, occurrences)Parameters
- userDataIdOccurrenceUserData
- UserData identifier provided by subscribeToOccurrenceUserData 
- occurrencesOccurrenceList
- Occurrences that will store the user data 
unsetOccurrenceUserData
Unset the userdata stored on an occurrence
See also:
- scene.getMultipleOccurrenceUserData
- scene.getOccurrenceUserData
- scene.hasMultipleOccurrenceUserData
- scene.hasOccurrenceUserData
- scene.setMultipleOccurrenceUserData
- scene.setOccurrenceUserData
- scene.subscribeToOccurrenceUserData
- scene.unsetMultipleOccurrenceUserData
- scene.unsubscribeFromOccurrenceUserData
scene.unsetOccurrenceUserData(userDataId, occurrence)Parameters
- userDataIdOccurrenceUserData
- UserData identifier provided by subscribeToOccurrenceUserData 
- occurrenceOccurrence
- Occurrence that will store the user data 
unsubscribeFromOccurrenceUserData
See also:
scene.unsubscribeFromOccurrenceUserData(userDataId)Parameters
- userDataIdOccurrenceUserData
- UserData identifier to unsubscribe 
addVariant
Create a new variant
See also:
scene.addVariant(name) -> scene.VariantParameters
- nameString
- The name of the new variant 
Returns
- Variant
- The new variant 
duplicateVariant
Create a new variant which is a copy of an existing variant
See also:
scene.duplicateVariant(variant, name) -> scene.VariantParameters
Returns
- Variant
- The created variant 
getVariantComponentsDefinitions
Returns the definitions of multiple variant components
See also:
scene.getVariantComponentsDefinitions(variantComponents) -> scene.VariantDefinitionListListParameters
- variantComponentsVariantComponentList
- The list of variant components to retrieve definitions 
Returns
- VariantDefinitionListList
- For each variant component, returns one list of variant definition (one by variant) 
getVariantTree
Get the alternative tree used by this variant
See also:
scene.getVariantTree(variant) -> scene.AlternativeTreeParameters
- variantVariant
- The variant 
Returns
- AlternativeTree
- The alternative tree used by this variant 
listVariants
Returns all the available variants
See also:
scene.listVariants() -> scene.VariantListReturns
- VariantList
- All variants 
removeVariant
Remove a variant
See also:
scene.removeVariant(variant)Parameters
- variantVariant
- The variant to remove 
setCurrentVariant
Change the current variant used
See also:
scene.setCurrentVariant(variant)Parameters
- variantVariant
- The variant to enable (can be null) 
setVariantTree
Set the alternative tree to use for this variant
See also:
scene.setVariantTree(variant, tree)Parameters
- variantVariant
- The variant to modify 
- treeAlternativeTree
- The alternative tree to use for this variant 
SceneChanged
def onSceneChanged(eventType, occurrence, child):
    pass
id = scene.addSceneChangedCallback(onSceneChanged)
...
scene.removeSceneChangedCallback(id)Parameters
- eventTypeSceneChangeType
- Type of change 
- occurrenceOccurrence
- Occurrence concerned by change 
- childOccurrence
- Child occurrence for child insertion/removal 
AnimationAdded
def onAnimationAdded(animation):
    pass
id = scene.addAnimationAddedCallback(onAnimationAdded)
...
scene.removeAnimationAddedCallback(id)Parameters
- animationAnimation
- Added animation 
AnimationChanged
def onAnimationChanged(animation):
    pass
id = scene.addAnimationChangedCallback(onAnimationChanged)
...
scene.removeAnimationChangedCallback(id)Parameters
- animationAnimation
- Changed Animation 
AnimationCleared
def onAnimationCleared():
    pass
id = scene.addAnimationClearedCallback(onAnimationCleared)
...
scene.removeAnimationClearedCallback(id)AnimationRemoved
def onAnimationRemoved(animation):
    pass
id = scene.addAnimationRemovedCallback(onAnimationRemoved)
...
scene.removeAnimationRemovedCallback(id)Parameters
- animationAnimation
- Removed Animation 
SelectionChanged
def onSelectionChanged(type, occurrences):
    pass
id = scene.addSelectionChangedCallback(onSelectionChanged)
...
scene.removeSelectionChangedCallback(id)Parameters
- typeSelectionChangeType
- Type of change (CLEARED, ADDED or REMOVED) 
- occurrencesOccurrenceList
- Only if type is ADDED or REMOVED, list of added or removed occurrences 
VariantChanged
def onVariantChanged(type, variant):
    pass
id = scene.addVariantChangedCallback(onVariantChanged)
...
scene.removeVariantChangedCallback(id)Parameters
- typeVariantChangeType
- Type of change (ADDED, REMOVED, CURRENT_CHANGED) 
- variantVariant
onRayProbe
def ononRayProbe(proberID, proberInfo):
    pass
id = scene.addonRayProbeCallback(ononRayProbe)
...
scene.removeonRayProbeCallback(id)Parameters
- proberIDIdent
- The ray propber ID 
- proberInfoProberInfo
- The prober's info 
onSphereProbe
def ononSphereProbe(proberID, proberInfo):
    pass
id = scene.addonSphereProbeCallback(ononSphereProbe)
...
scene.removeonSphereProbeCallback(id)Parameters
- proberIDIdent
- The sphere propber ID 
- proberInfoProberInfo
- The prober's info