{
  "version": 0,
  "execution": {
    "transactionMode": "SAFE_AUTO_COMMIT"
  },
  "entry": "b1",
  "blocks": {
    "b1": {
      "type": "setVar",
      "inputs": {
        "name": "sourceClip",
        "value": "::SEQ\\ACTIVE::TRACK\\VIDEO#0::ITEM\\CLIP#0"
      },
      "next": "b2"
    },
    "b2": {
      "type": "setVar",
      "inputs": {
        "name": "sourceItem",
        "value": {
          "type": "prGetTrackItemProperty",
          "inputs": {
            "item": {
              "var": "sourceClip"
            },
            "property": "PROJECT_ITEM_REF"
          }
        }
      },
      "next": "b3"
    },
    "b3": {
      "type": "setVar",
      "inputs": {
        "name": "suffix",
        "value": {
          "type": "mathRandomInt",
          "inputs": {
            "a": 100000,
            "b": 999999
          }
        }
      },
      "next": "b4"
    },
    "b4": {
      "type": "setVar",
      "inputs": {
        "name": "seqName",
        "value": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "AB Video Effect Fixture ",
              {
                "var": "suffix"
              }
            ]
          }
        }
      },
      "next": "b5"
    },
    "b5": {
      "type": "prSequenceCreateFromItems",
      "inputs": {
        "name": {
          "var": "seqName"
        },
        "items": [
          {
            "var": "sourceItem"
          }
        ],
        "onError": "STOP",
        "storeResultIn": "seqRef"
      },
      "next": "b6"
    },
    "b6": {
      "type": "setVar",
      "inputs": {
        "name": "clipRef",
        "value": {
          "type": "prGetItemRef",
          "inputs": {
            "track": {
              "type": "prGetTrackRef",
              "inputs": {
                "sequence": {
                  "var": "seqRef"
                },
                "kind": "VIDEO",
                "index": 0
              }
            },
            "kind": "CLIP",
            "index": 0
          }
        }
      },
      "next": "b7"
    },
    "b7": {
      "type": "setVar",
      "inputs": {
        "name": "componentCountBefore",
        "value": {
          "type": "listLength",
          "inputs": {
            "list": {
              "type": "prListComponents",
              "inputs": {
                "item": {
                  "var": "clipRef"
                }
              }
            }
          }
        }
      },
      "next": "b8"
    },
    "b8": {
      "type": "prApplyVideoEffect",
      "inputs": {
        "item": {
          "var": "clipRef"
        },
        "onError": "STOP",
        "storeResultIn": "okApplyVideoEffect"
      },
      "next": "b9"
    },
    "b9": {
      "type": "setVar",
      "inputs": {
        "name": "componentCountAfter",
        "value": {
          "type": "listLength",
          "inputs": {
            "list": {
              "type": "prListComponents",
              "inputs": {
                "item": {
                  "var": "clipRef"
                }
              }
            }
          }
        }
      },
      "next": "b10"
    },
    "b10": {
      "type": "setVar",
      "inputs": {
        "name": "componentDelta",
        "value": {
          "type": "mathArithmetic",
          "inputs": {
            "op": "MINUS",
            "a": {
              "var": "componentCountAfter"
            },
            "b": {
              "var": "componentCountBefore"
            }
          }
        }
      },
      "next": "b11"
    },
    "b11": {
      "type": "esConsoleLog",
      "inputs": {
        "message": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "okApplyVideoEffect=",
              {
                "var": "okApplyVideoEffect"
              },
              " componentDelta=",
              {
                "var": "componentDelta"
              }
            ]
          }
        }
      },
      "next": null
    }
  }
}
