Class Scene
- Namespace
Methods
addComponent
Add a component to an occurrence
scene.addComponent(occurrence, componentType) -> scene.Component
Parameters
occurrence
OccurrenceThe occurrence to add the new component
componentType
ComponentTypeType 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.ComponentList
Parameters
occurrences
OccurrenceListOccurrences that need the component to be added
componentType
ComponentTypeType 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
root
OccurrenceThe occurrence to test.
cleanUnusedImages
Remove unused images from texture library
scene.cleanUnusedImages() -> core.Int
Returns
- Int
The number of texture deleted by the clean
cleanUnusedMaterials
Remove unused materials from material library
scene.cleanUnusedMaterials(cleanImages) -> core.Int
Parameters
cleanImages
BooleanCall 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.String
Parameters
root
OccurrenceOccurrence 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
materials
MaterialListMaterials 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
materials
MaterialListMaterials to merge (merge all materials if empty)
createHierarchicalClusters
Reorganize a sub tree with hierarchical clustering
scene.createHierarchicalClusters(root, childrenCountByNode=2, minFitting=-1)
Parameters
root
OccurrenceRoot of the sub-tree to reorganize
childrenCountByNode
IntOrder of the hierarchical tree
minFitting
CoeffMinimal fitting coefficient to allow 2 nodes to be merged/clustered
createOBBMesh
scene.createOBBMesh(occurrence) -> scene.Occurrence
Parameters
occurrence
Occurrence
Returns
- Occurrence
The create occurrence
createOccurrence
Create a new occurrence
scene.createOccurrence(name, parent) -> scene.Occurrence
Parameters
name
StringName of the new occurrence
parent
OccurrenceCreate 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.Occurrence
Parameters
name
StringName of the new occurrence
children
OccurrenceListAdd given occurrence as children (if any)
parent
OccurrenceIf 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
keepMaterialAssignment
BooleanIf 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.Occurrence
Parameters
text
StringThe occurrence's name
font
StringThe font to use
fontSize
IntThe font size
color
ColorAlphaThe occurrence color
heigth3D
Double3D height of text
Returns
createOccurrences
Create one new occurrence under each given parent
scene.createOccurrences(name, parents) -> scene.OccurrenceList
Parameters
name
StringName of the new occurrence
parents
OccurrenceListCreate 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.PartList
Parameters
occurrences
OccurrenceListThe occurrence which will contains the part component of the mesh at the same index
meshes
MeshListList 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.Occurrence
Parameters
meshes
MeshListList of input meshes
matrices
Matrix4ListList of matrices of input meshes (if empty Identity will be used)
centerPartPivots
BooleanIf 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
componentType
ComponentTypeType of the component
occurrence
OccurrenceThe occurrence to remove components from
followPrototypes
BoolIf 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
componentType
ComponentTypeType of the component
rootOccurrence
OccurrenceThe root occurrence to remove components from
deleteEmptyOccurrences
Delete all empty assemblies
scene.deleteEmptyOccurrences(root=0)
Parameters
root
OccurrenceRoot occurrence for the process
deleteOccurrences
Delete a liste of occurrences
scene.deleteOccurrences(occurrences)
Parameters
occurrences
OccurrenceListOccurrences to delete
generateOctaViews
scene.generateOctaViews(radius, XFrames, YFrames, hemi) -> scene.Occurrence
Parameters
Returns
- Occurrence
The created Occurrence
generateOctree
Generate a loose octree from the given sub-tree
scene.generateOctree(occurrence, maxDepth, looseFactor) -> scene.Occurrence
Parameters
occurrence
OccurrenceRoot occurrence of the sub-tree
maxDepth
IntDefines the depth maximum of the octree
looseFactor
DoubleDefines the loose factor of the octree
Returns
getAABB
Returns the axis aligned bounding box of a list of scene paths
scene.getAABB(occurrences) -> geom.AABB
Parameters
occurrences
OccurrenceListList 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.Material
Parameters
occurrence
OccurrenceThe 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.String
Parameters
occurrence
OccurrenceAn occurrence
propertyName
StringProperty name
cacheProperty
BooleanIf 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.StringList
Parameters
occurrences
OccurrenceListList of occurrences
propertyName
StringProperty name
cacheProperty
BooleanIf 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.OccurrenceList
Parameters
occurrence
OccurrenceThe occurrence to test.
Returns
- OccurrenceList
The list of ancestors.
getComponent
Returns a component on an occurrence
scene.getComponent(occurrence, componentType, followPrototypes) -> scene.Component
Parameters
occurrence
OccurrenceThe occurrence
componentType
ComponentTypeType of the component
followPrototypes
BoolIf 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.ComponentList
Parameters
occurrences
OccurrenceListThe occurrences list
componentType
ComponentTypeType of the component
followPrototypes
BoolIf 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.Occurrence
Parameters
component
ComponentThe component
Returns
- Occurrence
The occurrence
getComponentType
Get the type of a component
scene.getComponentType(component) -> scene.ComponentType
Parameters
component
ComponentThe component
Returns
- ComponentType
Type of the component
getGlobalMatrix
Returns the global matrix on an occurrence
scene.getGlobalMatrix(occurrence) -> geom.Matrix4
Parameters
occurrence
OccurrenceOccurrence 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.Boolean
Parameters
occurrence
OccurrenceOccurrence 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.Matrix4
Parameters
occurrence
OccurrenceNode 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.MBB
Parameters
occurrences
OccurrenceListList of occurrences to retrieve the AABB
Returns
- MBB
The minimum bounding box of all given occurrences
getMaterialsFromSubtree
scene.getMaterialsFromSubtree(occurrence) -> material.MaterialList
Parameters
occurrence
OccurrenceRoot 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.OBB
Parameters
occurrences
OccurrenceListList 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.Material
Parameters
occurrence
OccurrenceOccurrence to get the active material
Returns
- Material
The active material of the occurrence
getOccurrenceName
Returns the name of an occurrence
scene.getOccurrenceName(occurrence) -> core.String
Parameters
occurrence
OccurrenceThe 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.OccurrenceList
Parameters
componentType
ComponentTypeThe component type
fromOcc
OccurrenceSource occurrence of the recursion
Returns
- OccurrenceList
Result occurrences
getPartActiveShape
Returns the active shape of a part
scene.getPartActiveShape(part) -> scene.Shape
Parameters
part
PartThe part
Returns
- Shape
The active shape of a part
getPartOccurrences
Recursively get all the occurrences containing a part component
scene.getPartOccurrences(fromOcc) -> scene.OccurrenceList
Parameters
fromOcc
OccurrenceSource occurrence of the recursion
Returns
- OccurrenceList
Result occurrences
getPartShapeType
Get the part's shape type
scene.getPartShapeType(part) -> scene.ShapeType
Parameters
part
PartThe 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.ULong
Parameters
occurrences
OccurrenceListThe part occurrences
asTriangleCount
BoolIf true count the equivalent of triangles for each polygon
countOnceEachInstance
BoolIf true ignore multiple instance of each tessellation
countHidden
BoolIf 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.ULong
Parameters
roots
OccurrenceListThe 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.ULong
Parameters
occurrences
OccurrenceListThe part occurrences
countOnceEachInstance
BoolIf true ignore multiple instance of each tessellation
countHidden
BoolIf true, also count hidden components
countPoints
BoolIf true, also count points (for points cloud)
countMergedVertices
BoolIf 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.Point3List
Parameters
voxelSize
DistancePrecision for cavities detection
minCavityVolume
DistanceMinimum 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.Boolean
Parameters
occurrence
OccurrenceThe occurrence
componentType
ComponentTypeType of the component
followPrototypes
BoolIf 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
occurrence
OccurrenceThe occurrence to hide
inverseVisibility
Inverse the visibility of the given occurrence
scene.inverseVisibility(occurrence)
Parameters
occurrence
OccurrenceThe occurrence
isAncestorOf
Test if the occurrences are ancestors to one another.
scene.isAncestorOf(occurrence1, occurrence2) -> core.Bool
Parameters
occurrence1
OccurrenceFirst occurrence to test.
occurrence2
OccurrenceSecond 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.ComponentList
Parameters
componentType
ComponentTypeThe component type
Returns
- ComponentList
The component list of the type chosen
listComponents
List all components on an occurrence
scene.listComponents(occurrence, followPrototypes) -> scene.ComponentList
Parameters
occurrence
OccurrenceThe occurrence to list the components
followPrototypes
BoolIf 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.Int
Parameters
images
ImageListImages 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.Int
Parameters
materials
MaterialListMaterials to merge (merge all materials if empty)
evaluateNames
BooleanIf 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
roots
OccurrenceListIf 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
maxLength
IntMaximum name length
replaceMaterial
Replace a material by another everywhere it is used
scene.replaceMaterial(originalMaterial, newMaterial, occurrences)
Parameters
originalMaterial
MaterialThe material to replace everywhere
newMaterial
MaterialThe new material to set in place of originalMaterial
occurrences
OccurrenceListThe 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
inputMode
ResizeTexturesInputModeDefines if the textures to resize are textures used by a selection of Occurrences, or a selection among the textures available in the scene
resizeMode
ResizeTexturesResizeModeDefines if the textures are resized following a ratio or following a maximum size/resolution (only textures above the defined maximum are downsized)
replaceTextures
BoolIf True, overwrites textures from the selection
setComponentOccurrence
Move a component to an occurrence
scene.setComponentOccurrence(component, occurrence)
Parameters
component
ComponentThe component
occurrence
OccurrenceThe occurrence
setDefaultVariant
Set the default variant
scene.setDefaultVariant()
setOccurrenceMaterial
Set the material on a occurrence
scene.setOccurrenceMaterial(occurrence, material)
Parameters
occurrence
OccurrenceOccurrence to set the material
material
MaterialThe new occurrence material
setOccurrenceName
Returns the name of an occurrence
scene.setOccurrenceName(occurrence, name)
Parameters
occurrence
OccurrenceThe occurrence to get the name
name
StringThe occurrence name
show
Show the given occurrence
scene.show(occurrence)
Parameters
occurrence
OccurrenceThe occurrence to show
showOnly
Show only the given occurrence
scene.showOnly(occurrence)
Parameters
occurrence
OccurrenceThe occurrence to show
transferCADMaterialsOnPartOccurrences
Set all materials on part occurrences
scene.transferCADMaterialsOnPartOccurrences(rootOccurrence)
Parameters
rootOccurrence
OccurrenceRoot occurrence
transferMaterialsOnPatches
Take the first instance material and set it one the mesh patches
scene.transferMaterialsOnPatches(rootOccurrence)
Parameters
rootOccurrence
OccurrenceRoot occurrence
createCapsule
Create a new capsule
See also:
scene.createCapsule(radius, height, subdivisionLatitude, subdivisionLongitude, generateUV) -> scene.Occurrence
Parameters
radius
DoubleRadius of the Capsule
height
DoubleHeight of the Capsule (excluding the two size of half spheres)
subdivisionLatitude
IntSubdivision of the Capsule on the Latitude
subdivisionLongitude
IntSubdivision of the Capsule (two half spheres) on the Longitude
generateUV
BooleanGeneration of the UV
Returns
- Occurrence
The created Occurrence
createCone
Create a new cone
See also:
scene.createCone(bottomRadius, height, sides, generateUV) -> scene.Occurrence
Parameters
bottomRadius
DoubleRadius of the bottom of the cone
height
DoubleHeight of the cone
sides
IntNumber of sides of the cone
generateUV
BooleanGeneration of the UV
Returns
- Occurrence
The created Occurrence
createCube
Create a new cube
See also:
scene.createCube(sizeX, sizeY, sizeZ, subdivision, generateUV) -> scene.Occurrence
Parameters
sizeX
DoubleSize of the Cube on the x axis
sizeY
DoubleSize of the Cube on the y axis
sizeZ
DoubleSize of the Cube on the z axis
subdivision
IntSubdivision of the Cube on all the axis
generateUV
BooleanGeneration of the UV
Returns
- Occurrence
The created Occurrence
createCylinder
Create a new cylinder
See also:
scene.createCylinder(radius, height, sides, generateUV) -> scene.Occurrence
Parameters
radius
DoubleRadius of the Cylinder
height
DoubleHeight of the Cylinder
sides
IntNumber of Sides of the Cylinder
generateUV
BooleanGeneration of the UV
Returns
- Occurrence
The created Occurrence
createImmersion
Create a new bagel klein
See also:
scene.createImmersion(radius, subdivisionX, subdivisionY) -> scene.Occurrence
Parameters
radius
DoubleRadius of the Immersion
subdivisionX
IntSubdivision of the Immersion on the Latitude
subdivisionY
IntSubdivision 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.Occurrence
Parameters
sizeY
DoubleSize of the Plane on the y axis
sizeX
DoubleSize of the Plane on the x axis
subdivisionX
IntSubdivision of the Plane on the x axis
subdivisionY
IntSubdivision of the Plane on the y axis
generateUV
BooleanGeneration of the UV
Returns
- Occurrence
The created Occurrence
createSphere
Create a new sphere
See also:
scene.createSphere(radius, subdivisionLatitude, subdivisionLongitude, generateUV) -> scene.Occurrence
Parameters
radius
DoubleRadius of the Sphere
subdivisionLatitude
IntSubdivision of the Sphere on the Latitude
subdivisionLongitude
IntSubdivision of the Sphere on the Longitude
generateUV
BooleanGeneration of the UV
Returns
- Occurrence
The created Occurrence
createTorus
Create a new torus
See also:
scene.createTorus(majorRadius, minorRadius, subdivisionLatitude, subdivisionLongitude) -> scene.Occurrence
Parameters
majorRadius
DoubleMajor Radius
minorRadius
DoubleMinor Radius
subdivisionLatitude
IntSubdivision of the Torus on the Latitude
subdivisionLongitude
IntSubdivision 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.OccurrenceList
Parameters
root
OccurrenceRoot occurrence for the process
acceptVolumeRatio
RealIf the ratio of volumes of two part is lower than acceptVolumeRatio, they will be considered duplicated
acceptPolycountRatio
RealIf the ratio of polygon counts of two part is lower than acceptPolycountRatio, they will be considered duplicated
acceptAABBAxisRatio
RealIf the ratio of AABB axis of two part is lower than acceptAABBAxisRatio, they will be considered duplicated
acceptAABBCenterDistance
DistanceIf 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.OccurrenceList
Parameters
material
MaterialA 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.OccurrenceList
Parameters
property
StringProperty name
regex
RegexRegular expression (ECMAScript)
roots
OccurrenceListIf specified, restrict the search from the given roots
caseInsensitive
BoolIf 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.OccurrenceList
Parameters
regex
RegexRegular expression (ECMAScript)
roots
OccurrenceListIf specified, restrict the search from the given roots
caseInsensitive
BoolIf 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.OccurrenceList
Parameters
property
StringProperty name
regex
RegexRegular expression (ECMAScript)
roots
OccurrenceListIf specified, restrict the search from the given roots
caseInsensitive
BoolIf 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.OccurrenceList
Parameters
material
MaterialA material
roots
OccurrenceListIf 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.OccurrenceList
Parameters
roots
OccurrenceListRoots occurrences for the process
maxDiagLength
DistanceIf the diagonal axis of the bounding box is less than maxDiagLength, part will be filtered. -1 to ignore
maxSize
DistanceIf the longer axis of the box is less than maxLength, part will be filtered. -1 to ignore
getHidden
BooleanIf 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.OccurrenceList
Parameters
minInstanciationCount
IntMin 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.OccurrenceList
Parameters
material
MaterialA 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.OccurrenceList
Parameters
aabb
AABBThe axis aligned bounding box
Returns
- OccurrenceList
Occurrences found in the given axis aligned bounded box
findPartOccurrencesInBox
scene.findPartOccurrencesInBox(box, strictlyIncludes) -> scene.OccurrenceList
Parameters
box
ExtendedBoxThe extension box
strictlyIncludes
BooleanIf 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.OccurrenceList
Parameters
tree
PackedTreeroot
OccurrenceSpecify the root occurrence of the scene
replaceRoot
BoolIf 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.OccurrenceList
Parameters
occurrence
OccurrenceThe 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.Occurrence
Returns
- Occurrence
The active variant root occurrence or global root if no active variant.
getOccurrenceAncestors
See also:
scene.getOccurrenceAncestors(occurrence) -> scene.OccurrenceList
Parameters
occurrence
OccurrenceThe 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.OccurrenceListList
Parameters
occurrences
OccurrenceListThe 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.Occurrence
Parameters
occurrence
OccurrenceThe occurrence
Returns
- Occurrence
The parent occurrence
getRoot
Get the root occurrence of the product structure
See also:
scene.getRoot() -> scene.Occurrence
Returns
- Occurrence
The root occurrence
getSubTree
Returns a packed version of the whole scene tree
See also:
scene.getSubTree(root, visibilityMode, depth) -> scene.PackedTree
Parameters
root
OccurrenceSpecify the root of the returned scene
visibilityMode
VisibilityModeThe visibility mode
depth
IntMaximum 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
occurrences
OccurrenceListThe occurrences to move
destination
OccurrenceDestination occurrence (the new parent)
insertBefore
OccurrenceOccurrence 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
occurrence
OccurrenceThe occurrence
parent
OccurrenceThe parent occurrence
addInParentInstances
BooleanIf True, each occurrence whose prototype is the target parent will generate a child whose prototype is the occurrence itself
insertBefore
OccurrenceAdd before this child occurrence in the children list of the parent occurrence
worldPositionStays
BooleanIf 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.Component
Parameters
occurrence
OccurrenceThe occurrence to add the new component
lightType
LightTypeThe type of the light
color
ColorColor of the light
power
DoubleThe power of the light
cutOff
AngleThe cutoff angle of the light
Returns
- Component
The new component added to occurrence
createLight
scene.createLight(name, lightType, color, power, cutOff, parent) -> scene.Occurrence
Parameters
name
StringName of the light
lightType
LightTypeThe type of the light
color
ColorColor of the light
power
DoubleThe power of the light
cutOff
AngleThe cutoff angle of the light
parent
OccurrenceThe 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
metadata
MetadataThe metadata component
name
StringThe new property name
value
StringThe new property value
addMetadataBlock
Add a new metadata property to a metadata component
See also:
scene.addMetadataBlock(metadata, names, values)
Parameters
metadata
MetadataThe metadata component
names
StringListThe new properties names
values
StringListThe new properties values
createMetadatasFromDefinitions
Create Metadata components from definitions
See also:
scene.createMetadatasFromDefinitions(occurrences, definitions) -> scene.MetadataList
Parameters
occurrences
OccurrenceListList of occurrences to add the metadata components
definitions
MetadataDefinitionListList 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.String
Parameters
Returns
- String
The property value
getMetadatasDefinitions
Returns definition of Metadata components
See also:
scene.getMetadatasDefinitions(metadatas) -> scene.MetadataDefinitionList
Parameters
metadatas
MetadataListList 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
ooc
OoCComponentAn OoC component
implementationType
StringAn implementation type (see listOoCImplementations)
implementationParameters
StringDepends 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.String
Parameters
ooc
OoCComponentAn OoC component
Returns
- String
The implementation type of the given ooc
listOoCImplementations
Warning
This function is tagged as EXPERIMENTAL.
See also:
scene.listOoCImplementations() -> core.StringList
Returns
- 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
ooc
OoCComponentAn 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
ooc
OoCComponentAn 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.Material
Parameters
occurrence
OccurrenceThe Occurrence
subpartIndex
UIntThe subpart index
Returns
- Material
The assigned material
listActiveShapeMaterials
list all the materials used in the part shape
See also:
scene.listActiveShapeMaterials(part) -> material.MaterialList
Parameters
part
PartThe 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.MaterialList
Parameters
occurrence
OccurrenceThe occurrence which contains sub materials
Returns
- MaterialList
Used materials
listSubpartVariantMaterials
list all the materials variants in subpart
See also:
scene.listSubpartVariantMaterials(occurrence) -> scene.VariantMaterialList
Parameters
occurrence
OccurrenceThe 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
occurrence
OccurrenceThe Occurrence
subpartIndex
UIntThe subpart index
material
MaterialThe material
setSubpartVariantMaterials
set materials in variant
See also:
scene.setSubpartVariantMaterials(occurrence, variantMaterials)
Parameters
occurrence
OccurrenceThe occurrence which contains variants
variantMaterials
VariantMaterialListList of variant and materials
setSubpartVariantMaterialsList
set all the materials list in variants
See also:
scene.setSubpartVariantMaterialsList(variants, materialListList) -> scene.VariantMaterialList
Parameters
variants
VariantListThe part which contains variants
materialListList
MaterialListListThe 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
occurrence
OccurrenceThe occurrence which has sub materials assigned
createAlternativeTree
scene.createAlternativeTree(name, root) -> scene.AlternativeTree
Parameters
name
StringThe name of the new alternative tree
root
OccurrenceThe root occurrence
Returns
- AlternativeTree
The new alternative tree
getAlternativeTreeRoot
Returns the root occurrence associated with the given AlternativeTree
See also:
scene.getAlternativeTreeRoot(tree) -> scene.Occurrence
Parameters
tree
AlternativeTreeTargeted alternative tree
Returns
- Occurrence
The root occurrence
listAlternativeTrees
Returns all the available alternative trees
See also:
scene.listAlternativeTrees() -> scene.AlternativeTreeList
Returns
- 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
animation
AnimationAnimation 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.Keyframe
Parameters
channel
AnimChannelThe channel one wants to add a keyframe in
time
AnimationTimeThe time
value
DoubleThe 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
channel
AnimChannelThe channel one wants to add a keyframe in
time
AnimationTimeThe 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.Bool
Parameters
animation
AnimationThe Animation
occurrence
OccurrenceThe 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
animation
AnimationThe Animation
occurrence
OccurrenceThe occurrence
end
OccurrenceThe parent occurrence
interval
AnimationTimeThe 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.Animation
Parameters
name
StringName 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.Occurrence
Parameters
root
OccurrenceRoot 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
channel
AnimChannelThe channel
precision
DoubleThe 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
animation
AnimationThe 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
channel
AnimChannelThe 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
animation
AnimationThe 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
channel
AnimChannelThe channel
time
AnimationTimeThe time
defaultValue
BoolShow 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.AnimChannel
Parameters
animation
AnimationThe Animation
occurrence
OccurrenceThe 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.AnimChannelInfo
Parameters
channel
AnimChannelAnimation 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.Occurrence
Parameters
channel
AnimChannelThe 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.AnimPropertyBinderList
Parameters
animationComponent
AnimationComponentAnimation 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.AnimationInfo
Parameters
animation
AnimationAnimation 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.AnimPropertyBinderList
Parameters
animation
AnimationAnimation 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.JointDefinition
Parameters
joint
JointId 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.JointDefinitionList
Parameters
joints
JointListIds 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.AnimChannel
Parameters
keyframe
KeyframeThe 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.KeyframeList
Parameters
channel
AnimChannelThe 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.AnimChannel
Parameters
channel
AnimChannelThe 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.Joint
Parameters
occurrence
OccurrenceThe 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.AnimChannel
Parameters
channel
AnimChannelThe 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.AnimChannel
Parameters
channel
AnimChannelThe channel one wants the subchannel of
name
StringThe 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.AnimChannelList
Parameters
channel
AnimChannelThe 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.AnimChannel
Parameters
animation
AnimationThe Animation stack where to put a animated property
entity
EntityThe entity object to animate
propertyName
StringThe 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.AnimationList
Returns
- 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.AnimChannelList
Parameters
animation
AnimationThe 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
channel
AnimChannelThe 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
animation
AnimationThe Animation
target
OccurrenceThe target occurrence
newParent
OccurrenceThe new parent occurrence
interval
AnimationTimeThe 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
channel
AnimChannelThe channel one wants to remove a keyframe from
time
AnimationTimeThe 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
animation
AnimationThe Animation stack where to put a animated property
entity
EntityThe entity object to animate
propertyName
StringThe 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.Int
Returns
- 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.Int
Parameters
root
OccurrenceOccurrence tree root
Returns
- Int
The part count
scene.print(root=0)
Parameters
root
OccurrenceOccurrence 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.Ident
Parameters
name
StringName of the filter
expr
FilterExpressionThe 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.String
Parameters
filter
FilterExpressionThe 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.StringList
Parameters
occurrences
OccurrenceListOccurrences on which to evaluate the expression
filter
FilterExpressionThe 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.StringList
Parameters
filter
FilterExpressionThe filter expression
fromOcc
OccurrenceSource 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
file
FilePathFile 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.Filter
Parameters
name
StringName 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.FilterExpression
Parameters
filterId
IdentIdentifier 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.Filter
Parameters
filterId
IdentIdentifier 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.OccurrenceList
Parameters
filter
FilterExpressionThe filter expression
fromOcc
OccurrenceSource 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
file
FilePathFile 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.FilterList
Returns
- 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
filterId
IdentIdentifier 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
occurrences
OccurrenceListOccurrences to isolate
unisolate
scene.unisolate()
findPartOccurrencesWithUnstitchedFaces
Find all the occurrences with unstitched faces
See also:
scene.findPartOccurrencesWithUnstitchedFaces(root) -> scene.OccurrenceList
Parameters
root
OccurrenceRoot 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
roots
OccurrenceListRoots occurrences for the process
maxLevel
IntMaximum tree level
mergeHiddenPartsMode
MergeHiddenPartsModeHidden 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.OccurrenceList
Parameters
partOccurrences
OccurrenceListOccurrence of the parts to merge
mergeHiddenPartsMode
MergeHiddenPartsModeHidden 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
roots
OccurrenceListRoots occurrences for the process (will not be removed)
mergeHiddenPartsMode
MergeHiddenPartsModeHidden 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
roots
OccurrenceListRoots occurrences for the process (will not be removed)
mergeHiddenPartsMode
MergeHiddenPartsModeHidden parts handling mode, Destroy them, make visible or merge separately
CollapseToParent
BooleanIf 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.OccurrenceList
Parameters
partOccurrences
OccurrenceListOccurrence of the parts to merge
mergeNoMaterials
BooleanIf true, merge all parts with no active material together, else do not merge them
mergeHiddenPartsMode
MergeHiddenPartsModeHidden parts handling mode, Destroy them, make visible or merge separately
combineMeshes
BooleanIf 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
root
OccurrenceRoot occurrence of the subtree to process
mergeHiddenPartsMode
MergeHiddenPartsModeHidden 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.OccurrenceList
Parameters
roots
OccurrenceListRoots occurrences for the process (will not be removed)
mergeBy
MergeByRegionsStrategyNumber: number of output parts (or regions of parts)\nSize: diagonal size of output regions
strategy
MergeStrategyChoose 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.OccurrenceList
Parameters
root
OccurrenceRoot 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
occurrence
OccurrenceOccurrence to apply the matrix on
matrix
Matrix4Transformation to matrix
createSymmetry
Create symmetries from selection
See also:
scene.createSymmetry(occurrences, plane)
Parameters
occurrences
OccurrenceListSelection of occurrences
plane
AxisPlaneSymmetry plane
rotate
Modify the local matrix of the scene node to apply a rotation
See also:
scene.rotate(occurrence, axis, angle)
Parameters
occurrence
OccurrenceOccurrence to rotate
axis
Vector3Axis of rotation
angle
AngleAngle of rotation
setLocalMatrix
change the local matrix on an occurrence
See also:
scene.setLocalMatrix(occurrence, matrix)
Parameters
occurrence
OccurrenceOccurrence to set the local matrix
matrix
Matrix4The new occurrence local matrix
getPartMesh
Return the mesh of the TesselatedShape
See also:
scene.getPartMesh(part) -> polygonal.Mesh
Parameters
part
PartThe 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.Model
Parameters
part
PartThe 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.MeshList
Parameters
parts
PartListThe 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.ModelList
Parameters
parts
PartListThe 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.Matrix4List
Parameters
parts
PartListThe 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.Matrix4List
Parameters
parts
PartListThe 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
parts
PartListThe parts to retrieve transform
transforms
Matrix4ListThe transform matrix of each part
setPartsTransformsIndexed
Set the transform matrix of each given parts (indexed mode)
See also:
scene.setPartsTransformsIndexed(parts, indices, transforms)
Parameters
parts
PartListThe parts to retrieve transform
indices
IntListThe transform matrix index for each parts
transforms
Matrix4ListThe list of transform matrices
getPartialLoadingStatus
Get the current status of a partial loading component
See also:
scene.getPartialLoadingStatus(component) -> scene.PartialLoad_Status
Parameters
component
ReferencedDataComponentReferenced 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
component
ReferencedDataComponentThe referenced data component to alter
parent
ReferencedDataComponentThe parent
setReferencedDataComponentPath
Defines which path the refereced data is at
See also:
scene.setReferencedDataComponentPath(component, filePath)
Parameters
component
ReferencedDataComponentThe referenced data component to alter
filePath
StringThe filepath
alignPivotPointToWorld
Re-orient the Pivot Point straight to world origin (the grid)
See also:
scene.alignPivotPointToWorld(occurrences, applyToChildren=False)
Parameters
occurrences
OccurrenceListThe occurrences to modify
applyToChildren
BoolIf 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
occurrences
OccurrenceListOccurrences (or the roots occurrences if recursively=True)
applyToChildren
BoolIf 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
occurrence
OccurrenceThe occurrence (or the root occurrence if recursively=True)
applyToChildren
BoolIf 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
occurrences
OccurrenceListThe 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
occurrences
OccurrenceListThe occurrence (or the root occurrence if recursively=True)
target
OccurrenceThe target occurrence
applyToChildren
BoolIf 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
occurrence
OccurrenceThe occurrence to move the pivot
pivot
Matrix4The 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.AnnotationGroup
Parameters
component
PMIComponentComponent to add the Annotation Group
name
StringName 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
annotation
Annotationmaterial
Materialstaticmesh
StaticMesh
convertPMIToOccurrences
Convert each PMI component into a set of occurrences with mesh geometries
See also:
scene.convertPMIToOccurrences(occurrences, convertVisibility=False)
Parameters
occurrences
OccurrenceListOccurrence selection
convertVisibility
BooleanIf 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.Annotation
Parameters
definition
AnnotationDefinitionAnnotation definition
Returns
getAnnotationDefinition
get definition of given annotation
See also:
scene.getAnnotationDefinition(annotation) -> scene.AnnotationDefinition
Parameters
annotation
Annotation
Returns
getAnnotationGroups
Returns the list of the AnnotationGroup from a PMIComponent
See also:
scene.getAnnotationGroups(pmiComponent) -> scene.AnnotationGroupList
Parameters
pmiComponent
ComponentThe 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.AnnotationList
Parameters
group
AnnotationGroupThe AnnotationGroup
Returns
- AnnotationList
List of Annotation
getOccurrenceAnnotationDefinitions
get all annotations definition of given occurrence
See also:
scene.getOccurrenceAnnotationDefinitions(occurrence) -> scene.AnnotationDefinitionList
Parameters
occurrence
Occurrence
Returns
getProductViewDefinition
get productview definition
See also:
scene.getProductViewDefinition(view) -> scene.ProductViewDefinition
Parameters
view
VariantThe product view
Returns
getProductViewDefinitions
get all productviews definitions
See also:
scene.getProductViewDefinitions() -> scene.ProductViewDefinitionList
Returns
setAnnotationToGroup
set Annotation to a Annotation Group
See also:
scene.setAnnotationToGroup(annotation, group)
Parameters
annotation
Annotationgroup
AnnotationGroup
cleanInstances
Clean prototypes and instances (lonely instances, overriding their prototypes hierarchies...).
See also:
scene.cleanInstances(removeUselessInstances=True, removeHierarchyOverridingInstances=False, occurrence=0)
Parameters
removeUselessInstances
BooleanRemove instances where they are not needed (prototype referenced once, ...)
removeHierarchyOverridingInstances
BooleanRemove instances overriding their prototypes sub-hierarchies.
occurrence
OccurrenceRoot occurrence for the process
getDirectInstances
Returns all the occurrences prototyping the given occurrence
See also:
scene.getDirectInstances(prototype) -> scene.OccurrenceList
Parameters
prototype
OccurrenceThe prototype occurrence
Returns
- OccurrenceList
The instances
getInstances
Get occurrences sharing the same prototype as the given one
See also:
scene.getInstances(occurrence) -> scene.OccurrenceList
Parameters
occurrence
OccurrenceReference 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.Occurrence
Parameters
occurrence
OccurrenceThe 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.Occurrence
Parameters
prototype
OccurrenceThe 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
occurrence
OccurrenceThe occurrence
prototype
OccurrenceThe 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.OccurrenceList
Parameters
keepAncestors
BooleanIf 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
occurrences
OccurrenceListOccurrences to add to the selection
separateSelection
Separate all polygons form their original parts into a new one
See also:
scene.separateSelection() -> scene.Occurrence
Returns
- Occurrence
The new occurrence created
unselect
Remove occurrences to selection
See also:
scene.unselect(occurrence)
Parameters
occurrence
OccurrenceListOccurrences 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.Occurrence
Parameters
occurrence
OccurrenceRoot 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
root
OccurrenceRoot occurrence
getHiddenPartOccurrences
Get hidden part occurrences
See also:
scene.getHiddenPartOccurrences() -> scene.OccurrenceList
Returns
- OccurrenceList
The list of hidden occurrences (visibility status)
getVisiblePartOccurrences
Get visible part occurrences
See also:
scene.getVisiblePartOccurrences() -> scene.OccurrenceList
Returns
- 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
occurrences
OccurrenceListRoot occurrence for the process
keepOnlyPartInstances
BooleanIf 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
occurrence
OccurrenceRoot occurrence for the process
keepInstances
BooleanIf 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
occurrence
OccurrenceRoot 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
root
OccurrenceRoot 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
root
OccurrenceRoot occurrence for the process
recursive
BooleanIf False, transformation will be applied only on the root and its components
keepInstantiation
BooleanIf False, all occurrences will be singularized
keepPartTransform
BooleanIf False, transformation will be applied to the shapes (BRepShape points or TessellatedShape vertices)
createRayProber
Creates a ray prober
See also:
scene.createRayProber() -> core.Ident
Returns
createSphereProber
Creates a sphere prober
See also:
scene.createSphereProber() -> core.Ident
Returns
rayCast
See also:
scene.rayCast(ray, root) -> scene.RayHit
Parameters
ray
RayThe ray to cast
root
OccurrenceThe root occurrence to cast from
Returns
- RayHit
Information of the first ray hit
rayCastAll
See also:
scene.rayCastAll(ray, root) -> scene.RayHitList
Parameters
ray
RayThe ray to cast
root
OccurrenceThe 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
proberID
IdentThe sphere prober Id
sphereCenter
Vector3The new prober center
sphereRadius
DoubleThe new prober radius
getMultipleOccurrenceUserData
Batch version of getOccurrenceUserData
See also:
scene.getMultipleOccurrenceUserData(userDataId, occurrences) -> core.PtrList
Parameters
userDataId
OccurrenceUserDataUserData identifier provided by subscribeToOccurrenceUserData
occurrences
OccurrenceListOccurrences 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.Ptr
Parameters
userDataId
OccurrenceUserDataUserData identifier provided by subscribeToOccurrenceUserData
occurrence
OccurrenceOccurrence 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.BoolList
Parameters
userDataId
OccurrenceUserDataUserData identifier provided by subscribeToOccurrenceUserData
occurrences
OccurrenceListOccurrences 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.Bool
Parameters
userDataId
OccurrenceUserDataUserData identifier provided by subscribeToOccurrenceUserData
occurrence
OccurrenceOccurrence 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
userDataId
OccurrenceUserDataUserData identifier provided by subscribeToOccurrenceUserData
occurrences
OccurrenceListOccurrences that will store the user data
userDataList
PtrListUser 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
userDataId
OccurrenceUserDataUserData identifier provided by subscribeToOccurrenceUserData
occurrence
OccurrenceOccurrence that will store the user data
userData
PtrUser 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.OccurrenceUserData
Returns
- OccurrenceUserData
UserData identifier to pass to setUserData/getUserData functions
unsetMultipleOccurrenceUserData
Batch version of unsetOccurrenceUserData
See also:
scene.unsetMultipleOccurrenceUserData(userDataId, occurrences)
Parameters
userDataId
OccurrenceUserDataUserData identifier provided by subscribeToOccurrenceUserData
occurrences
OccurrenceListOccurrences 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
userDataId
OccurrenceUserDataUserData identifier provided by subscribeToOccurrenceUserData
occurrence
OccurrenceOccurrence that will store the user data
unsubscribeFromOccurrenceUserData
See also:
scene.unsubscribeFromOccurrenceUserData(userDataId)
Parameters
userDataId
OccurrenceUserDataUserData identifier to unsubscribe
addVariant
Create a new variant
See also:
scene.addVariant(name) -> scene.Variant
Parameters
name
StringThe 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.Variant
Parameters
Returns
- Variant
The created variant
getVariantComponentsDefinitions
Returns the definitions of multiple variant components
See also:
scene.getVariantComponentsDefinitions(variantComponents) -> scene.VariantDefinitionListList
Parameters
variantComponents
VariantComponentListThe 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.AlternativeTree
Parameters
variant
VariantThe variant
Returns
- AlternativeTree
The alternative tree used by this variant
listVariants
Returns all the available variants
See also:
scene.listVariants() -> scene.VariantList
Returns
- VariantList
All variants
removeVariant
Remove a variant
See also:
scene.removeVariant(variant)
Parameters
variant
VariantThe variant to remove
setCurrentVariant
Change the current variant used
See also:
scene.setCurrentVariant(variant)
Parameters
variant
VariantThe variant to enable (can be null)
setVariantTree
Set the alternative tree to use for this variant
See also:
scene.setVariantTree(variant, tree)
Parameters
variant
VariantThe variant to modify
tree
AlternativeTreeThe alternative tree to use for this variant
SceneChanged
def onSceneChanged(eventType, occurrence, child):
pass
id = scene.addSceneChangedCallback(onSceneChanged)
...
scene.removeSceneChangedCallback(id)
Parameters
eventType
SceneChangeTypeType of change
occurrence
OccurrenceOccurrence concerned by change
child
OccurrenceChild occurrence for child insertion/removal
AnimationAdded
def onAnimationAdded(animation):
pass
id = scene.addAnimationAddedCallback(onAnimationAdded)
...
scene.removeAnimationAddedCallback(id)
Parameters
animation
AnimationAdded animation
AnimationChanged
def onAnimationChanged(animation):
pass
id = scene.addAnimationChangedCallback(onAnimationChanged)
...
scene.removeAnimationChangedCallback(id)
Parameters
animation
AnimationChanged 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
animation
AnimationRemoved Animation
SelectionChanged
def onSelectionChanged(type, occurrences):
pass
id = scene.addSelectionChangedCallback(onSelectionChanged)
...
scene.removeSelectionChangedCallback(id)
Parameters
type
SelectionChangeTypeType of change (CLEARED, ADDED or REMOVED)
occurrences
OccurrenceListOnly 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
type
VariantChangeTypeType of change (ADDED, REMOVED, CURRENT_CHANGED)
variant
Variant
onRayProbe
def ononRayProbe(proberID, proberInfo):
pass
id = scene.addonRayProbeCallback(ononRayProbe)
...
scene.removeonRayProbeCallback(id)
Parameters
proberID
IdentThe ray propber ID
proberInfo
ProberInfoThe prober's info
onSphereProbe
def ononSphereProbe(proberID, proberInfo):
pass
id = scene.addonSphereProbeCallback(ononSphereProbe)
...
scene.removeonSphereProbeCallback(id)
Parameters
proberID
IdentThe sphere propber ID
proberInfo
ProberInfoThe prober's info