Post

IntegerTrigger

Overview

IntegerTrigger converts set_boolean true input events to an integer value (for example, useful when animating whichChoice in a Switch node).

The IntegerTrigger node belongs to the EventUtilities component and requires at least level 1, its default container field is children. It is available from X3D version 3.0 or higher.

Hierarchy

1
2
3
4
+ X3DNode
  + X3DChildNode
    + X3DTriggerNode
      + IntegerTrigger

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

SFBool [in] set_boolean

If input event set_boolean is true, trigger output of integer value.

Hint

  • For logical consistency, input event set_boolean false has no effect (under review as part of Mantis issue 519).

Warning

  • It is an error to define this transient inputOnly field in an X3D file, instead only use it a destination for ROUTE events.

SFInt32 [in, out] integerKey -1 (-∞,∞)

integerKey is value for output when triggered.

Hint

  • Directly setting a new value for the integerKey field generates a corresponding integerKey output event.

SFInt32 [out] triggerValue

triggerValue provides integer event output matching integerKey when true set_boolean received.

Warning

  • It is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.

Advice

Hints

See Also

This post is licensed under CC BY 4.0 by the author.