{
  "version": 0,
  "execution": {
    "transactionMode": "SAFE_AUTO_COMMIT"
  },
  "entry": "b1",
  "blocks": {
    "b1": {
      "type": "setVar",
      "inputs": {
        "name": "sourceItem",
        "value": "transcript-v1.prproj\\Transcript Clip"
      },
      "next": "b2"
    },
    "b2": {
      "type": "setVar",
      "inputs": {
        "name": "suffix",
        "value": {
          "type": "mathRandomInt",
          "inputs": {
            "a": 100000,
            "b": 999999
          }
        }
      },
      "next": "b3"
    },
    "b3": {
      "type": "setVar",
      "inputs": {
        "name": "targetSeqName",
        "value": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "AB Source Range Pattern ",
              {
                "var": "suffix"
              }
            ]
          }
        }
      },
      "next": "b4"
    },
    "b4": {
      "type": "prSequenceCreate",
      "inputs": {
        "name": {
          "var": "targetSeqName"
        },
        "onError": "STOP",
        "storeResultIn": "targetSeq"
      },
      "next": "b5"
    },
    "b5": {
      "type": "setVar",
      "inputs": {
        "name": "originalSourceSentinel",
        "value": -400000
      },
      "next": "b6"
    },
    "b6": {
      "type": "setVar",
      "inputs": {
        "name": "targetSegmentMs",
        "value": 1000
      },
      "next": "b7"
    },
    "b7": {
      "type": "prSequencePlaceItem",
      "inputs": {
        "sequence": {
          "var": "targetSeq"
        },
        "item": {
          "var": "sourceItem"
        },
        "mode": "INSERT",
        "timeSeconds": 0,
        "sourceInSeconds": 2,
        "sourceOutSeconds": 3,
        "videoTrackIndex": 0,
        "audioTrackIndex": 0,
        "limitShift": true,
        "onError": "STOP"
      },
      "next": "b8"
    },
    "b8": {
      "type": "prSequencePlaceItem",
      "inputs": {
        "sequence": {
          "var": "targetSeq"
        },
        "item": {
          "var": "sourceItem"
        },
        "mode": "INSERT",
        "timeSeconds": 1,
        "sourceInSeconds": 4,
        "sourceOutSeconds": 5,
        "videoTrackIndex": 0,
        "audioTrackIndex": 0,
        "limitShift": true,
        "onError": "STOP"
      },
      "next": "b9"
    },
    "b9": {
      "type": "prSequencePlaceItem",
      "inputs": {
        "sequence": {
          "var": "targetSeq"
        },
        "item": {
          "var": "sourceItem"
        },
        "mode": "INSERT",
        "timeSeconds": 2,
        "sourceInSeconds": 6,
        "sourceOutSeconds": 7,
        "videoTrackIndex": 0,
        "audioTrackIndex": 0,
        "limitShift": true,
        "onError": "STOP"
      },
      "next": "b10"
    },
    "b10": {
      "type": "setVar",
      "inputs": {
        "name": "restoredIn",
        "value": {
          "type": "prGetProjectItemProperty",
          "inputs": {
            "item": {
              "var": "sourceItem"
            },
            "property": "IN_POINT"
          }
        }
      },
      "next": "b11"
    },
    "b11": {
      "type": "setVar",
      "inputs": {
        "name": "restoredOut",
        "value": {
          "type": "prGetProjectItemProperty",
          "inputs": {
            "item": {
              "var": "sourceItem"
            },
            "property": "OUT_POINT"
          }
        }
      },
      "next": "b12"
    },
    "b12": {
      "type": "setVar",
      "inputs": {
        "name": "trackRef",
        "value": {
          "type": "prGetTrackRef",
          "inputs": {
            "sequence": {
              "var": "targetSeq"
            },
            "kind": "VIDEO",
            "index": 0
          }
        }
      },
      "next": "b13"
    },
    "b13": {
      "type": "setVar",
      "inputs": {
        "name": "clipRefs",
        "value": []
      },
      "next": "b14"
    },
    "b14": {
      "type": "prForEachTrackItem",
      "inputs": {
        "track": {
          "var": "trackRef"
        },
        "kind": "CLIP",
        "order": "ASC",
        "itemVar": "clipRef",
        "indexVar": "clipIndex"
      },
      "body": [
        {
          "type": "listPush",
          "inputs": {
            "name": "clipRefs",
            "value": {
              "var": "clipRef"
            }
          }
        }
      ],
      "next": "b15"
    },
    "b15": {
      "type": "setVar",
      "inputs": {
        "name": "clipCount",
        "value": {
          "type": "listLength",
          "inputs": {
            "list": {
              "var": "clipRefs"
            }
          }
        }
      },
      "next": "b16"
    },
    "b16": {
      "type": "setVar",
      "inputs": {
        "name": "clip1",
        "value": {
          "type": "listGet",
          "inputs": {
            "list": {
              "var": "clipRefs"
            },
            "where": "INDEX",
            "index": 0
          }
        }
      },
      "next": "b17"
    },
    "b17": {
      "type": "setVar",
      "inputs": {
        "name": "clip2",
        "value": {
          "type": "listGet",
          "inputs": {
            "list": {
              "var": "clipRefs"
            },
            "where": "INDEX",
            "index": 1
          }
        }
      },
      "next": "b18"
    },
    "b18": {
      "type": "setVar",
      "inputs": {
        "name": "clip3",
        "value": {
          "type": "listGet",
          "inputs": {
            "list": {
              "var": "clipRefs"
            },
            "where": "INDEX",
            "index": 2
          }
        }
      },
      "next": "b19"
    },
    "b19": {
      "type": "setVar",
      "inputs": {
        "name": "clip1Start",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip1"
                    },
                    "property": "START_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b20"
    },
    "b20": {
      "type": "setVar",
      "inputs": {
        "name": "clip1End",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip1"
                    },
                    "property": "END_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b21"
    },
    "b21": {
      "type": "setVar",
      "inputs": {
        "name": "clip1In",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip1"
                    },
                    "property": "IN_POINT_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b22"
    },
    "b22": {
      "type": "setVar",
      "inputs": {
        "name": "clip1Out",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip1"
                    },
                    "property": "OUT_POINT_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b23"
    },
    "b23": {
      "type": "setVar",
      "inputs": {
        "name": "clip2Start",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip2"
                    },
                    "property": "START_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b24"
    },
    "b24": {
      "type": "setVar",
      "inputs": {
        "name": "clip2End",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip2"
                    },
                    "property": "END_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b25"
    },
    "b25": {
      "type": "setVar",
      "inputs": {
        "name": "clip2In",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip2"
                    },
                    "property": "IN_POINT_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b26"
    },
    "b26": {
      "type": "setVar",
      "inputs": {
        "name": "clip2Out",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip2"
                    },
                    "property": "OUT_POINT_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b27"
    },
    "b27": {
      "type": "setVar",
      "inputs": {
        "name": "clip3Start",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip3"
                    },
                    "property": "START_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b28"
    },
    "b28": {
      "type": "setVar",
      "inputs": {
        "name": "clip3End",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip3"
                    },
                    "property": "END_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b29"
    },
    "b29": {
      "type": "setVar",
      "inputs": {
        "name": "clip3In",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip3"
                    },
                    "property": "IN_POINT_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b30"
    },
    "b30": {
      "type": "setVar",
      "inputs": {
        "name": "clip3Out",
        "value": {
          "type": "mathRound",
          "inputs": {
            "op": "ROUND",
            "value": {
              "type": "mathArithmetic",
              "inputs": {
                "op": "MULTIPLY",
                "a": {
                  "type": "prGetTrackItemProperty",
                  "inputs": {
                    "item": {
                      "var": "clip3"
                    },
                    "property": "OUT_POINT_SECONDS"
                  }
                },
                "b": 1000
              }
            }
          }
        }
      },
      "next": "b31"
    },
    "b31": {
      "type": "esConsoleLog",
      "inputs": {
        "message": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "multiSnippetPlacement=ok clipCount=",
              {
                "var": "clipCount"
              },
              " restoredIn=",
              {
                "var": "restoredIn"
              },
              " restoredOut=",
              {
                "var": "restoredOut"
              }
            ]
          }
        }
      },
      "next": null
    }
  }
}
