Click or drag to resize
SoWinColorEditorAttach Method (SoSFColor, SoBase)

Attaches the editor to a color node and edits the specified color.

Namespace: OIV.Inventor.Win
Assembly: OIV.Inventor.Win (in OIV.Inventor.Win.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public void Attach(
	SoSFColor color,
	SoBase node
)

Parameters

color
Type: OIV.Inventor.FieldsSoSFColor
node
Type: OIV.Inventor.MiscSoBase
Remarks

Attaching to the color node increments the reference count of the color node.

The color editor uses a sensor on the color field to automatically update itself when the color is changed externally.

NOTE: The node containing the field needs to also be passed to attach the sensor to it (since field sensors are not yet supported).

NOTE: The color editor can only be attached to either a single field or a multiple field at any given time. Even when attached to a multiple field, only a single color from that field is edited, as specified by index.

See Also