SceneObjectTree#
(Tree)
- Abstract Class
- Default object name:
tree
- Inherits from: ProjectItem > SceneItem > SceneObject
- Inherited by: GeometryUsdPointInstancer, SceneObjectCombiner, SceneObjectScatterer
No corresponding User page.
Description#
Generic object defining composite scene objects like combiners and scatterers.
Public Attributes#
Type | Name | Visual Hint | Description |
---|---|---|---|
long |
sub_items_rendering_mode |
VISUAL_HINT_DEFAULT |
Set whether item should override or not sub-items visibility flags. |
long |
emission_importance_sampling_mode |
VISUAL_HINT_DEFAULT |
When Use Sub Items, it samples instances according to the value of the Enable Emission Importance Sampling attribute defined on the sources. If the sources have their Emission Importance Sampling disabled then they are traditionally sampled, otherwise they are importance sampled. When Force Importance Sampling, it forces each instance to be emission importance sampled when instantiated by the combiner/scatterer. When Disable Importance Sampling, it forces each instance to be traditionally sampled when instantiated by the combiner/scatterer. |
Inherited Public Attributes#
Type | Name | Visual Hint | Description |
---|---|---|---|
double[3] |
translate |
VISUAL_HINT_DISTANCE |
Set the XYZ position of the item relative to its parent item. |
double[3] |
rotate |
VISUAL_HINT_ANGLE |
Set the XYZ rotation of the item relative to its parent item. |
double[3] |
scale |
VISUAL_HINT_SCALE |
Set the XYZ scaling of the item relative to its parent item. |
double[3] |
shear |
VISUAL_HINT_SCALE |
Set the XYZ shear of the item relative to its parent item. |
long |
rotation_order |
VISUAL_HINT_DEFAULT |
Specify on which order the Euler rotations are composed. By default Clarisse's uses YXZ |
reference (SceneItem ) |
parent |
VISUAL_HINT_DEFAULT |
Set the parent item of the item. |
bool |
inherit_transform |
VISUAL_HINT_DEFAULT |
Does the current object inherits its parent transformation ? |
long |
reference_frame |
VISUAL_HINT_FRAME |
Set the reference frame that defines the base transform and deformation state of the item. This reference is used when computing texture projections or when generating point cloud (in Global Base) on the base geometry. |
object[] (Constraint ) |
constraints |
VISUAL_HINT_DEFAULT |
Stack of constraint operators. Constraints like Target, Point, Orient... are applied to a Scene Item in order to drive the transformation of the item. |
double[3] |
scale_pivot |
VISUAL_HINT_DISTANCE |
Set the coordinates of the scale pivot. |
double[3] |
rotate_pivot |
VISUAL_HINT_DISTANCE |
Set the coordinates of the rotation pivot. |
double[3] |
translate_offset |
VISUAL_HINT_DISTANCE |
Set the XYZ position of the pivot point of the item. |
double[3] |
rotate_offset |
VISUAL_HINT_ANGLE |
Set the XYZ rotation of the pivot point of the item. |
double[3] |
scale_offset |
VISUAL_HINT_SCALE |
Set the XYZ scaling of the pivot point of the item. |
long |
rotation_offset_order |
VISUAL_HINT_DEFAULT |
Set the rotation axis mode. |
bool |
display_visible |
VISUAL_HINT_DEFAULT |
Set whether the item is shown in the 3D View or not. |
bool |
display_pickable |
VISUAL_HINT_DEFAULT |
Set whether the item is pickable in the 3D View or in the Image View. |
bool |
enable_motion_blur |
VISUAL_HINT_DEFAULT |
Set whether the renderer will do motion blur on the item or not. |
long |
highlight_mode |
VISUAL_HINT_DEFAULT |
Define how the object is highlighted in the 3D View when selected. |
reference (Material ) |
override_material |
VISUAL_HINT_DEFAULT |
Setting a material here will set the specified material to all elements of the scene object. Ex: all shading groups of a geometry will have the same material. Ex: all elements of a combiner or a scatterer will have the same material. |
bool |
matte_object |
VISUAL_HINT_DEFAULT |
Switch the object to 2D matte mode. |
double[3] |
matte_color |
VISUAL_HINT_COLOR |
Set the color of the object in matte mode. |
double |
matte_alpha |
VISUAL_HINT_PERCENTAGE |
Set the opacity of the object in matte mode. When the matte alpha is less than 100%, the object creates a hole in the layer as no transparency is evaluated. |
long |
custom_id |
VISUAL_HINT_DEFAULT |
|
double |
raytrace_offset |
VISUAL_HINT_DISTANCE |
Set the minimum distance for raytracing visibility. If the ray hit point distance from the ray source position is smaller than this value, then the geometry is not seen. Note: this attribute is used to prevent self intersection artifacts. |
string |
shading_variables |
VISUAL_HINT_SCRIPT |
|
bool |
unseen_by_renderer |
VISUAL_HINT_DEFAULT |
Set whether the object is hidden from the renderer or not. |
bool |
unseen_by_camera |
VISUAL_HINT_DEFAULT |
Set whether the object is hidden from the camera (primary rays) or not. |
bool |
unseen_by_rays |
VISUAL_HINT_DEFAULT |
Set whether the object is hidden from the raytraced shading effects like reflection/refraction (secondary rays) or not. |
bool |
unseen_by_reflections |
VISUAL_HINT_DEFAULT |
Set whether the object is hidden from reflections or not. |
bool |
unseen_by_refractions |
VISUAL_HINT_DEFAULT |
Set whether the object is hidden from refractions or not. |
bool |
unseen_by_gi |
VISUAL_HINT_DEFAULT |
Set whether the object is hidden from global illumination or not. |
bool |
unseen_by_sss |
VISUAL_HINT_DEFAULT |
Set whether the object is hidden from sub-surface scattering or not. |
bool |
cast_shadows |
VISUAL_HINT_DEFAULT |
Set whether the object casts shadows or not. |
bool |
receive_shadows |
VISUAL_HINT_DEFAULT |
Set whether the object receives cast shadows or not. |
bool |
receive_self_shadows |
VISUAL_HINT_DEFAULT |
Set whether the object receives self shadows or not. |
reference (Group ) |
lights |
VISUAL_HINT_GROUP |
Specify the group of lights that illuminate this object. By default, scene objects are lit using the lights gathered by the 3D layer. |
long |
emission_sample_count |
VISUAL_HINT_SAMPLE_PER_PIXEL |
Override the number of emission samples allocated by the renderer when sampling the scene object. |
CID#
class "SceneObjectTree" "SceneObject" {
abstract yes
#version 0.9
doc "Generic object defining composite scene objects like combiners and scatterers."
attribute_group "rendering" {
long "sub_items_rendering_mode" {
doc "Set whether item should override or not sub-items visibility flags."
output "shading"
preset "Override" "0"
preset "Use Sub Items Settings" "1"
value 0
}
string "shading_groups_emissive" {
doc "Internal usage only : Used to generate different keys for materials dependant custom resources when scene object tree is affected by a shading layer."
private yes
value ""
}
double "time_offset" {
doc "Internal usage only : Used to generate different keys for custom resources when scene object tree is offset by a scatterer."
private yes
saveable no
read_only yes
value 0.0
}
}
attribute_group "rendering>emission" {
long "emission_importance_sampling_mode" {
doc "When Use Sub Items, it samples instances according to the value of the Enable Emission Importance Sampling attribute defined on the sources. If the sources have their Emission Importance Sampling disabled then they are traditionally sampled, otherwise they are importance sampled. When Force Importance Sampling, it forces each instance to be emission importance sampled when instantiated by the combiner/scatterer. When Disable Importance Sampling, it forces each instance to be traditionally sampled when instantiated by the combiner/scatterer."
preset "Use Sub Items" "2"
preset "Force Importance Sampling" "0"
preset "Disable Importance Sampling" "1"
value 2
}
}
set "display_color" {
output "gl"
private no
hidden yes
saveable yes
texturable no
animatable no
slider no
numeric_range no 0.0 1
ui_range no 0.0 1
dg_active yes
dg_cyclic no
dirtiness_pass_through no
read_only no
shading_variable no
experimental no
advanced no
overriden no
promote_attribute no
allow_expression yes
localizable yes
preset "Black" "0"
preset "Dark Red" "1"
preset "Red" "2"
preset "Pink" "3"
preset "Violet" "4"
preset "Dark Cyan" "5"
preset "Cyan" "6"
preset "Dark Green" "7"
preset "Green" "8"
preset "Dark Blue" "9"
preset "Blue" "10"
preset "Dark Gray" "11"
preset "Gray" "12"
preset "Dark Yellow" "13"
preset "Yellow" "14"
preset "White" "15"
preset "Custom" "16"
value 11
}
set "display_custom_color" {
output "gl"
private no
hidden yes
saveable yes
texturable no
animatable no
slider no
numeric_range no 0.0 1
ui_range no 0.0 1
dg_active yes
dg_cyclic no
dirtiness_pass_through no
read_only yes
shading_variable no
experimental no
advanced no
overriden no
promote_attribute no
allow_expression yes
localizable yes
value 0.78 0.78 0.78
}
set "display_mode" {
output "gl"
private no
hidden yes
saveable yes
texturable no
animatable no
slider no
numeric_range no 0.0 1
ui_range no 0.0 1
dg_active yes
dg_cyclic no
dirtiness_pass_through no
read_only no
shading_variable no
experimental no
advanced no
overriden no
promote_attribute no
allow_expression yes
localizable yes
preset "Wireframe" "0"
preset "Constant" "1"
preset "Normals" "2"
preset "Simple Shading" "3"
preset "Previz" "4"
value 4
}
set "shading_variables" {
filter ""
output "shading_variable"
private no
hidden no
saveable yes
texturable no
animatable no
slider no
numeric_range no 0.0 1
ui_range no 0.0 1
dg_active yes
dg_cyclic no
dirtiness_pass_through no
read_only no
shading_variable no
experimental no
advanced no
overriden no
promote_attribute no
allow_expression yes
localizable yes
value ""
}
set "enable_emission_importance_sampling" {
private no
hidden yes
saveable yes
texturable no
animatable no
slider no
numeric_range no 0.0 1
ui_range no 0.0 1
dg_active yes
dg_cyclic no
dirtiness_pass_through no
read_only no
shading_variable no
experimental no
advanced no
overriden no
promote_attribute no
allow_expression yes
localizable yes
value yes
}
set "emission_texture_importance_sampling" {
private no
hidden yes
saveable yes
texturable no
animatable no
slider no
numeric_range no 0.0 1
ui_range no 0.0 1
dg_active yes
dg_cyclic no
dirtiness_pass_through no
read_only no
shading_variable no
experimental no
advanced no
overriden no
promote_attribute no
allow_expression yes
localizable yes
preset "None" "0"
preset "Color" "1"
preset "Weight" "2"
preset "Both" "3"
value 0
}
}