Node: BooleanSequencer

X3D: 3.3
Component: EventUtilities
Status:
experimental

Quick Links

➨ Fields

BooleanSequencer generates sequential value_changed events selected from the keyValue field when driven from a TimeSensor clock. Among other actions, it can enable/disable lights and sensors, or bind/unbind viewpoints and other X3DBindableNode nodes using set_bind events.

HTML Encoding and Default Values

<BooleanSequencer key='[]' keyValue='[]' metadata='X3DMetadataObject' next='false' previous='false' set_fraction='0' ></BooleanSequencer>

Inheritance


Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
key MFFloat [] X3DSequencerNode The key field contains the list of key times, the keyValue field contains values for the target field, one complete set of values for each key. Sequencer nodes containing no keys in the key field shall not produce any events. However, an input event that replaces an empty key field with one that contains keys will cause the sequencer node to produce events the next time that a set_fraction event is received.
keyValue MFBoolean [] Defines the set of Booleans, that are used for sequencing. Is made up of a list of FALSE and TRUE values.
metadata SFNode X3DMetadataObject Core/X3DNode Field to add metadata information
next SFBool false X3DSequencerNode If the next inputOnly field receives an SFBool event with value TRUE, it triggers the next output value in keyValue array by issuing a value_changed event with that value. After reaching the boundary of keyValue array, next goes to the initial element after last.
previous SFBool false X3DSequencerNode If the previous inputOnly field receives an SFBool event with value TRUE, it triggers the previous output value in keyValue array by issuing a value_changed event with that value. After reaching the boundary of keyValue array previous goes to the last element after the first.
set_fraction SFFloat 0 X3DSequencerNode The set_fraction inputOnly field receives an SFFloat event and causes the sequencer node function to evaluate, resulting in a value_changed output event of the specified type with the same timestamp as the set_fraction event.