TextureDistanceToObject#
(Distance To Object)
- Category:
/Texture/Utility
- Default object name:
distance_to_object
- Inherits from: ProjectItem > TextureOperator > Texture
Description#
Convert the distance to the specified object into a color.
Public Attributes#
Type | Name | Visual Hint | Description |
---|---|---|---|
long |
output |
VISUAL_HINT_DEFAULT |
|
reference (SceneItem ) |
target |
VISUAL_HINT_DEFAULT |
Set the scene item whose position defines the center point used to compute distances. |
Inherited Public Attributes#
Type | Name | Visual Hint | Description |
---|---|---|---|
bool |
pass_through |
VISUAL_HINT_DEFAULT |
If checked, the current texture is not evaluated and the value of the attribute selected in Pass Through Attribute is directly forwarded. |
string |
master_input |
VISUAL_HINT_TAG |
Name of the attribute that will be used as output if Pass Through is enabled. |
bool |
invert |
VISUAL_HINT_DEFAULT |
If checked, the texture is inverted. |
double |
opacity |
VISUAL_HINT_PERCENTAGE |
Set the opacity of the texture. |
CID#
class "TextureDistanceToObject" "Texture" {
#version 0.9
icon "../icons/object_icons/texture_distance_to_object.iconrc"
category "/Texture/Utility"
doc "Convert the distance to the specified object into a color."
attribute_group "output" {
long "output" {
preset "Euclidian" "0"
preset "Components" "1"
value 0
}
}
attribute_group "item" {
reference "target" {
doc "Set the scene item whose position defines the center point used to compute distances."
filter "SceneItem"
value ""
}
}
}