visual3d:documentation:pipeline:event_commands:example_-_creating_event_at_the_last_frame_of_data
Table of Contents
This page shows 3 examples of creating an event at the last frame of data or end of file (EOF).
The most straight forward and easiest is the first example using Event_Explicit command.
The others are shown to expose you to the variations of commands.
Example 1: Using the Event_Explicit command
This will create an event called “END” at the last frame of the file
Event_Explicit /Event_Name= END /Frame= EOF /Time= ;
Example 2: Using Event_Global_Maximum
The Event_Global_Maximum command can be applied to the signal “Frame_Numbers” and this will also find the last frame of the file (since this will be the largest frame number).
Event_Global_Maximum /SIGNAL_TYPES=FRAME_NUMBERS /SIGNAL_NAMES=FRAMES /SIGNAL_FOLDER=ORIGINAL /EVENT_NAME=END /SELECT_X=TRUE ! /SELECT_Y=FALSE ! /SELECT_Z=FALSE ! /EVENT_SEQUENCE= ! /EXCLUDE_EVENTS= ! /START_AT_EVENT= ! /END_AT_EVENT= ;
Example 3: Just for fun
You can use this roundabout method, as an example of the flexibility of Visual3D's pipelines.
! Create a metric value containing the number of frames of data in the C3D file. Metric_From_Parameter /METRIC_NAME=METRIC_LASTFRAME /PARAMETER_GROUP=POINT /PARAMETER_NAME=FRAMES ; ! Create a pipeline (GLOBAL) parameter set to this value Set_Pipeline_Parameter_To_Data_Value /PARAMETER_NAME=LASTFRAME /SIGNAL_TYPES=METRIC /SIGNAL_NAMES=METRIC_LASTFRAME /SIGNAL_FOLDER=PROCESSED ; ! Create an explicit event at the last frame Event_Explicit /EVENT_NAME=END /FRAME=::LASTFRAME ;
visual3d/documentation/pipeline/event_commands/example_-_creating_event_at_the_last_frame_of_data.txt · Last modified: by mrobles
