{
  "version": 0,
  "entry": "b1",
  "blocks": {
    "b1": {
      "type": "setVar",
      "inputs": {
        "name": "footageItems",
        "value": {
          "type": "prListProjectItems",
          "inputs": {
            "onlySelected": false,
            "includeSubbins": "BIN_AND_SUBBINS",
            "types": [
              "TYPE_FOOTAGE",
              "TYPE_FILE"
            ]
          }
        }
      },
      "next": "b2"
    },
    "b2": {
      "type": "setVar",
      "inputs": {
        "name": "item",
        "value": {
          "type": "listGet",
          "inputs": {
            "list": {
              "var": "footageItems"
            },
            "where": "FIRST"
          }
        }
      },
      "next": "b3"
    },
    "b3": {
      "type": "setVar",
      "inputs": {
        "name": "name",
        "value": {
          "type": "prGetProjectItemProperty",
          "inputs": {
            "item": {
              "var": "item"
            },
            "property": "NAME"
          }
        }
      },
      "next": "b4"
    },
    "b4": {
      "type": "setVar",
      "inputs": {
        "name": "mediaPath",
        "value": {
          "type": "prGetProjectItemProperty",
          "inputs": {
            "item": {
              "var": "item"
            },
            "property": "MEDIA_PATH"
          }
        }
      },
      "next": "b5"
    },
    "b5": {
      "type": "setVar",
      "inputs": {
        "name": "currentInSeconds",
        "value": {
          "type": "prGetProjectItemProperty",
          "inputs": {
            "item": {
              "var": "item"
            },
            "property": "IN_POINT"
          }
        }
      },
      "next": "b6"
    },
    "b6": {
      "type": "setVar",
      "inputs": {
        "name": "currentOutSeconds",
        "value": {
          "type": "prGetProjectItemProperty",
          "inputs": {
            "item": {
              "var": "item"
            },
            "property": "OUT_POINT"
          }
        }
      },
      "next": "b7"
    },
    "b7": {
      "type": "setVar",
      "inputs": {
        "name": "mediaStartSeconds",
        "value": {
          "type": "prGetProjectItemMediaProperty",
          "inputs": {
            "item": {
              "var": "item"
            },
            "property": "START"
          }
        }
      },
      "next": "b8"
    },
    "b8": {
      "type": "setVar",
      "inputs": {
        "name": "mediaDurationSeconds",
        "value": {
          "type": "prGetProjectItemMediaProperty",
          "inputs": {
            "item": {
              "var": "item"
            },
            "property": "DURATION"
          }
        }
      },
      "next": "b9"
    },
    "b9": {
      "type": "setVar",
      "inputs": {
        "name": "interpretedFrameRate",
        "value": {
          "type": "prGetProjectItemFootageInterpretationProperty",
          "inputs": {
            "item": {
              "var": "item"
            },
            "property": "FRAME_RATE"
          }
        }
      },
      "next": "b10"
    },
    "b10": {
      "type": "setVar",
      "inputs": {
        "name": "projectMetadata",
        "value": {
          "type": "prListProjectItemProjectMetadataProperties",
          "inputs": {
            "item": {
              "var": "item"
            }
          }
        }
      },
      "next": "b11"
    },
    "b11": {
      "type": "setVar",
      "inputs": {
        "name": "mediaXmp",
        "value": {
          "type": "prListProjectItemXmpProperties",
          "inputs": {
            "item": {
              "var": "item"
            }
          }
        }
      },
      "next": "b12"
    },
    "b12": {
      "type": "setVar",
      "inputs": {
        "name": "projectMediaStartDisplay",
        "value": {
          "type": "prGetProjectItemProjectMetadataProperty",
          "inputs": {
            "item": {
              "var": "item"
            },
            "propertyId": "Column.Intrinsic.MediaStart"
          }
        }
      },
      "next": "b13"
    },
    "b13": {
      "type": "setVar",
      "inputs": {
        "name": "projectMediaTimebaseDisplay",
        "value": {
          "type": "prGetProjectItemProjectMetadataProperty",
          "inputs": {
            "item": {
              "var": "item"
            },
            "propertyId": "Column.Intrinsic.MediaTimebase"
          }
        }
      },
      "next": "b14"
    },
    "b14": {
      "type": "esConsoleLog",
      "inputs": {
        "message": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "TYPED|item=",
              {
                "type": "jsonStringify",
                "inputs": {
                  "value": {
                    "var": "item"
                  },
                  "pretty": false
                }
              },
              "|name=",
              {
                "type": "jsonStringify",
                "inputs": {
                  "value": {
                    "var": "name"
                  },
                  "pretty": false
                }
              },
              "|mediaPath=",
              {
                "type": "jsonStringify",
                "inputs": {
                  "value": {
                    "var": "mediaPath"
                  },
                  "pretty": false
                }
              },
              "|currentInSeconds=",
              {
                "var": "currentInSeconds"
              },
              "|currentOutSeconds=",
              {
                "var": "currentOutSeconds"
              },
              "|mediaStartSeconds=",
              {
                "var": "mediaStartSeconds"
              },
              "|mediaDurationSeconds=",
              {
                "var": "mediaDurationSeconds"
              },
              "|interpretedFrameRate=",
              {
                "var": "interpretedFrameRate"
              }
            ]
          }
        }
      },
      "next": "b15"
    },
    "b15": {
      "type": "esConsoleLog",
      "inputs": {
        "message": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "DIRECT_PROJECT_METADATA|projectMediaStartDisplay=",
              {
                "type": "jsonStringify",
                "inputs": {
                  "value": {
                    "var": "projectMediaStartDisplay"
                  },
                  "pretty": false
                }
              },
              "|projectMediaTimebaseDisplay=",
              {
                "type": "jsonStringify",
                "inputs": {
                  "value": {
                    "var": "projectMediaTimebaseDisplay"
                  },
                  "pretty": false
                }
              }
            ]
          }
        }
      },
      "next": "b16"
    },
    "b16": {
      "type": "esConsoleLog",
      "inputs": {
        "message": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "PROJECT_METADATA|item=",
              {
                "type": "jsonStringify",
                "inputs": {
                  "value": {
                    "var": "item"
                  },
                  "pretty": false
                }
              },
              "|properties=",
              {
                "type": "jsonStringify",
                "inputs": {
                  "value": {
                    "var": "projectMetadata"
                  },
                  "pretty": false
                }
              }
            ]
          }
        }
      },
      "next": "b17"
    },
    "b17": {
      "type": "esConsoleLog",
      "inputs": {
        "message": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "MEDIA_XMP|item=",
              {
                "type": "jsonStringify",
                "inputs": {
                  "value": {
                    "var": "item"
                  },
                  "pretty": false
                }
              },
              "|properties=",
              {
                "type": "jsonStringify",
                "inputs": {
                  "value": {
                    "var": "mediaXmp"
                  },
                  "pretty": false
                }
              }
            ]
          }
        }
      },
      "next": null
    }
  }
}
