Changelog for v.6.0.x#
v.6.0.x#
This version introduces major breaking changes mostly due to change in class names. The changes include new exposed classes and functions and changes in existing classes and functions corresponding to the changes in SAMSON SDK 6.0.0 (see Changelog for SAMSON SDK 6.0.0).
SAMSON Facade#
New functionality:
Types#
SBColor
New constructor from hex color string.
New functions: samson.SBColor.frozen()
, samson.SBColor.bounded()
, samson.SBColor.toHex()
, samson.SBColor.toGrayscale()
, samson.SBColor.SRGBtoGrayscale()
.
New operators to perform math operations directly with color objects.
Data Graph Nodes#
SBNode
Now, each node has its own samson.SBUUID
.
SBNodeMaterialAppearance
samson.SBNodeMaterialAppearance
is a new class describing the material appearance, used in samson.SBNodeMaterial
.
SBNodeMaterial
samson.SBNodeMaterial
now has a material appearance in a separate object of class samson.SBNodeMaterialAppearance
.
Removed functions SBNodeMaterial.setAppearance, SBNodeMaterial.hasAppearancePreset, SBNodeMaterial.getAppearancePresetList in favor of default material appearances available in samson.SBNodeMaterialAppearance
.
Documents#
SBCamera
A new function: samson.SBCamera.orientUpwards()
Color Palettes#
A new class for discrete color palettes, samson.SBPaletteDiscrete
, and a set of default discrete color palettes available in samson.SBPaletteDefaultPalette
.
Visual Presets#
Breaking changes:
SBVisualPreset class was renamed to
samson.SBVisualPresetStep
SBVisualPresetGroup class was renamed to
samson.SBVisualPreset
New functionality:
samson.SBVisualPresetStep
now supports actions (samson.SBAction
) that will act on the selected nodes.New constructors for
samson.SBVisualPresetStep
, and new functions.
Actions#
New functionality:
samson.SBAction.run()
- a function to run the command for nodes insamson.SBNodeIndexer
. This function is implemented only for actions/commands that can be applied to nodes.