ProjectCylindricalMap
Attribute Reference
General attributes
TRS_order
Int enum
0 = “Scale Rot Trans” (default)
1 = “Scale Trans Rot”
2 = “Rot Scale Trans”
3 = “Rot Trans Scale”
4 = “Trans Scale Rot”
5 = “Trans Rot Scale”
Order in which to apply transformations when 'projection_mode' is set to 'TRS'
black_outside_projection
Bool
default: True
Toggles whether projections appear outside the 0-1 uv range of the projector
project_on_inward_surfaces
Bool
default: True
Enables projection on surfaces with inward facing normals
project_on_outward_surfaces
Bool
default: True
Enables projection on surfaces with outward facing normals
projection_matrix
Mat4d
default: [ [ 1, 0, 0, 0 ], [ 0, 1, 0, 0 ], [ 0, 0, 1, 0 ], [ 0, 0, 0, 1 ] ]
The transform to use for projection when 'projection_mode' is set to 'projection_matrix'
projection_mode
Int enum
0 = “projector” (default)
1 = “projection_matrix”
2 = “TRS”
Source parameters to use for projection transform
projector
Node
default: None
The object whose transform to use for projection when 'projection_mode' is set to 'projector'
rotate
Vec3d
default: [ 0, 0, 0 ]
Rotation of the projection transform when 'projection_mode' is set to 'TRS'
rotation_order
Int enum
0 = “xyz” (default)
1 = “xzy”
2 = “yxz”
3 = “yzx”
4 = “zxy”
5 = “zyx”
Order in which to apply rotation transformations when 'projection_mode' is set to 'TRS'
scale
Vec3d
default: [ 1, 1, 1 ]
Scale of the projection transform when 'projection_mode' is set to 'TRS'
translate
Vec3d
default: [ 0, 0, 0 ]
Translation of the projection transform when 'projection_mode' is set to 'TRS'
use_reference_space
Bool
default: False
Use reference space
Examples
local projGeom = MmGeometry("/Scene/geometry/projGeom") {
["node xform"] = translate(-2, 0, 0),
["model"] = "cylinder_ref.mm",
}
local projMap = ProjectCylindricalMap("/Scene/surfacing/projMap") {
["projector"] = projGeom,
["use reference space"] = false
}
local checkerMap = CheckerboardMap("/Scene/surfacing/checkerMap") {
["texture coordinates"] = 1,
["input texture coordinates"] = bind(projMap),
}