CounterFilter
last edited 4 years ago by mtigran
description
The part is designed for filtering the input objects based on their numbering. When count is any other number than default(1) and mode is 0(default) the part outputs all inputs but every count-th and vise versa when mode is 1. When from and to are set the part outputs only those inputs which are between them. For example when from=2 and to=5, it oupputs 2nd, 3rd, 4th and 5th and nothing else. Again vise versa when mode=1. When count=3, from=2, to=7 and mode=1, the part will output only 4th and 7th inputs, and when mode=0 2nd, 3th, 5th and 6th inputs.
figure

inpins
- COUNT(int) - ID=1 - sets count for filtering
- FROM(int) - ID=2 - sets from parameter
- TO(int) - ID=3 - sets to parameter
- MODE(int) - ID=4 - sets mode, whether the count-th elements outputs or not
- FILTER(Object) - ID=5 - inputs object, which should be fired or not depending on upper inpins
outpins
- OBJECT(Object) - ID=51 - outputs the object entered
links to CVS
source org.vcb.parts.filters.CounterFilter
configuration counterfilter.vcb