{
  "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 Transition 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": "trackRef",
        "value": {
          "type": "prGetTrackRef",
          "inputs": {
            "sequence": {
              "var": "seqRef"
            },
            "kind": "VIDEO",
            "index": 0
          }
        }
      },
      "next": "b7"
    },
    "b7": {
      "type": "setVar",
      "inputs": {
        "name": "clipRef",
        "value": {
          "type": "prGetItemRef",
          "inputs": {
            "track": {
              "var": "trackRef"
            },
            "kind": "CLIP",
            "index": 0
          }
        }
      },
      "next": "b8"
    },
    "b8": {
      "type": "setVar",
      "inputs": {
        "name": "transitionCountBefore",
        "value": {
          "type": "listLength",
          "inputs": {
            "list": {
              "type": "prListTrackItems",
              "inputs": {
                "track": {
                  "var": "trackRef"
                },
                "kind": "TRANSITION"
              }
            }
          }
        }
      },
      "next": "b9"
    },
    "b9": {
      "type": "prApplyTransition",
      "inputs": {
        "item": {
          "var": "clipRef"
        },
        "edge": "OUT",
        "neighborMode": "FORCE_SINGLE_SIDED",
        "durationSeconds": 0.2,
        "onError": "STOP",
        "storeResultIn": "okApplyTransition"
      },
      "next": "b10"
    },
    "b10": {
      "type": "setVar",
      "inputs": {
        "name": "transitionCountAfter",
        "value": {
          "type": "listLength",
          "inputs": {
            "list": {
              "type": "prListTrackItems",
              "inputs": {
                "track": {
                  "var": "trackRef"
                },
                "kind": "TRANSITION"
              }
            }
          }
        }
      },
      "next": "b11"
    },
    "b11": {
      "type": "setVar",
      "inputs": {
        "name": "transitionDelta",
        "value": {
          "type": "mathArithmetic",
          "inputs": {
            "op": "MINUS",
            "a": {
              "var": "transitionCountAfter"
            },
            "b": {
              "var": "transitionCountBefore"
            }
          }
        }
      },
      "next": "b12"
    },
    "b12": {
      "type": "esConsoleLog",
      "inputs": {
        "message": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "okApplyTransition=",
              {
                "var": "okApplyTransition"
              },
              " transitionDelta=",
              {
                "var": "transitionDelta"
              }
            ]
          }
        }
      },
      "next": null
    }
  }
}
