Shadows Class¶
-
class
NXOpen.Display.Shadows¶ Bases:
NXOpen.BuilderRepresents a
NXOpen.Display.ShadowsThis class is restricted to being called from a program running during an Interactive NX session. If run from a non-interactive session it will return None.
To create a new instance of this class, use
NXOpen.ViewCollection.CreateShadows()New in version NX7.5.3.
Properties¶
| Property | Description |
|---|---|
| AmbientOcclusion | Returns or sets the shadows SSAO ambient occlusion |
| GenerateHqiShadows | Returns or sets the High Quality Image settings |
| RealTimeType | Returns or sets the Real Time Settings |
| ShadowCatcherSelection | Returns the Shadow Catcher Selection |
| ShadowsEnabled | Returns or sets the Overall Shadows |
| SoftShadowsBiasOffset | Returns or sets the Soft Shadows bias offset |
| SoftShadowsEdges | Returns or sets the Soft Shadows edges (softness) |
| SoftShadowsEnabled | Returns or sets the Soft Shadows |
| SoftShadowsGradientClamp | Returns or sets the Soft Shadows gradient clamp |
| SoftShadowsQuality | Returns or sets the Soft Shadows quality |
| SsaoBlurRadius | Returns or sets the shadows SSAO Blur Radius |
| SsaoContrast | Returns or sets the shadows SSAO contrast |
| SsaoQuality | Returns or sets the shadows SSAO quality |
| SsaoRadius | Returns or sets the shadows SSAO radius |
| Tag | Returns the Tag for this object. |
| UseShadowCatcher | Returns or sets the Shadow Catcher |
Methods¶
| Method | Description |
|---|---|
| Commit | Commits any edits that have been applied to the builder. |
| Destroy | Deletes the builder, and cleans up any objects created by the builder. |
| GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
| GetObject | Returns the object currently being edited by this builder. |
| ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
| Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
| ShadowsRealTimeState Enumeration | Real time type settings - environment_shadow_catcher_only is enabled only in Basic Studio mode |
| ShadowsSsaoContrastType Enumeration | Shadows SSAO contrast settings |
| ShadowsSsaoQualityType Enumeration | Shadows SSAO quality settings |
Property Detail¶
AmbientOcclusion¶
-
Shadows.AmbientOcclusion¶ Returns or sets the shadows SSAO ambient occlusion
-------------------------------------Getter Method
Signature
AmbientOcclusionReturns: Return type: bool New in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
AmbientOcclusionParameters: shadowsSSAODisplayEnabled (bool) – New in version NX7.5.3.
License requirements: None.
GenerateHqiShadows¶
-
Shadows.GenerateHqiShadows¶ Returns or sets the High Quality Image settings
-------------------------------------Getter Method
Signature
GenerateHqiShadowsReturns: Return type: bool New in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
GenerateHqiShadowsParameters: generateHQIShadows (bool) – New in version NX7.5.3.
License requirements: None.
RealTimeType¶
-
Shadows.RealTimeType¶ Returns or sets the Real Time Settings
-------------------------------------Getter Method
Signature
RealTimeTypeReturns: Return type: NXOpen.Display.ShadowsRealTimeStateNew in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
RealTimeTypeParameters: realTimeType ( NXOpen.Display.ShadowsRealTimeState) –New in version NX7.5.3.
License requirements: None.
ShadowCatcherSelection¶
-
Shadows.ShadowCatcherSelection¶ Returns the Shadow Catcher Selection
-------------------------------------Getter Method
Signature
ShadowCatcherSelectionReturns: Return type: NXOpen.SelectNXObjectListNew in version NX7.5.3.
License requirements: None.
ShadowsEnabled¶
-
Shadows.ShadowsEnabled¶ Returns or sets the Overall Shadows
-------------------------------------Getter Method
Signature
ShadowsEnabledReturns: Return type: bool New in version NX10.0.2.
License requirements: None.
-------------------------------------Setter Method
Signature
ShadowsEnabledParameters: shadowsEnabled (bool) – New in version NX10.0.2.
License requirements: None.
SoftShadowsBiasOffset¶
-
Shadows.SoftShadowsBiasOffset¶ Returns or sets the Soft Shadows bias offset
-------------------------------------Getter Method
Signature
SoftShadowsBiasOffsetReturns: Return type: float New in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
SoftShadowsBiasOffsetParameters: softShadowsBiasOffset (float) – New in version NX7.5.3.
License requirements: None.
SoftShadowsEdges¶
-
Shadows.SoftShadowsEdges¶ Returns or sets the Soft Shadows edges (softness)
-------------------------------------Getter Method
Signature
SoftShadowsEdgesReturns: Return type: int New in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
SoftShadowsEdgesParameters: softShadowsEdges (int) – New in version NX7.5.3.
License requirements: None.
SoftShadowsEnabled¶
-
Shadows.SoftShadowsEnabled¶ Returns or sets the Soft Shadows
-------------------------------------Getter Method
Signature
SoftShadowsEnabledReturns: Return type: bool New in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
SoftShadowsEnabledParameters: softShadowsEnabled (bool) – New in version NX7.5.3.
License requirements: None.
SoftShadowsGradientClamp¶
-
Shadows.SoftShadowsGradientClamp¶ Returns or sets the Soft Shadows gradient clamp
-------------------------------------Getter Method
Signature
SoftShadowsGradientClampReturns: Return type: float New in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
SoftShadowsGradientClampParameters: softShadowsGradientClamp (float) – New in version NX7.5.3.
License requirements: None.
SoftShadowsQuality¶
-
Shadows.SoftShadowsQuality¶ Returns or sets the Soft Shadows quality
-------------------------------------Getter Method
Signature
SoftShadowsQualityReturns: Return type: int New in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
SoftShadowsQualityParameters: softShadowsQuality (int) – New in version NX7.5.3.
License requirements: None.
SsaoBlurRadius¶
-
Shadows.SsaoBlurRadius¶ Returns or sets the shadows SSAO Blur Radius
-------------------------------------Getter Method
Signature
SsaoBlurRadiusReturns: Return type: float New in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
SsaoBlurRadiusParameters: blurRadius (float) – New in version NX7.5.3.
License requirements: None.
SsaoContrast¶
-
Shadows.SsaoContrast¶ Returns or sets the shadows SSAO contrast
-------------------------------------Getter Method
Signature
SsaoContrastReturns: Return type: NXOpen.Display.ShadowsSsaoContrastTypeNew in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
SsaoContrastParameters: contrast ( NXOpen.Display.ShadowsSsaoContrastType) –New in version NX7.5.3.
License requirements: None.
SsaoQuality¶
-
Shadows.SsaoQuality¶ Returns or sets the shadows SSAO quality
-------------------------------------Getter Method
Signature
SsaoQualityReturns: Return type: NXOpen.Display.ShadowsSsaoQualityTypeNew in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
SsaoQualityParameters: shadowsSSAOQuality ( NXOpen.Display.ShadowsSsaoQualityType) –New in version NX7.5.3.
License requirements: None.
SsaoRadius¶
-
Shadows.SsaoRadius¶ Returns or sets the shadows SSAO radius
-------------------------------------Getter Method
Signature
SsaoRadiusReturns: Return type: float New in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
SsaoRadiusParameters: radius (float) – New in version NX7.5.3.
License requirements: None.
UseShadowCatcher¶
-
Shadows.UseShadowCatcher¶ Returns or sets the Shadow Catcher
-------------------------------------Getter Method
Signature
UseShadowCatcherReturns: Return type: bool New in version NX7.5.3.
License requirements: None.
-------------------------------------Setter Method
Signature
UseShadowCatcherParameters: useShadowCatcher (bool) – New in version NX7.5.3.
License requirements: None.
Method Detail¶
Validate¶
-
Shadows.Validate¶ Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.
Signature
Validate()Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.