This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sequence = hiero.ui.activeSequence() | |
bin = None | |
for item in sequence.project().clipsBin().bins(): | |
if item.name() == "Conform": | |
bin = item | |
if bin is None: | |
bin = hiero.core.Bin("Conform") | |
sequence.project().clipsBin().addItem(bin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sequence = hiero.ui.activeSequence() | |
bin = None | |
for item in sequence.project().clipsBin().bins(): | |
if item.name() == "Conform": | |
bin = item | |
if bin is None: | |
bin = hiero.core.Bin("Conform") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hiero | |
seq = hiero.ui.activeSequence() | |
tag_names = ["fluffy", "compositing"] | |
item_names = [] | |
for video_track in seq.videoTracks(): | |
for item in video_track.items(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
RUN apt-get -qq update | |
RUN apt-get install python wget -y | |
RUN cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - | |
RUN wget -O dropbox.py https://www.dropbox.com/download?dl=packages/dropbox.py | |
VOLUME /root/Dropbox | |
VOLUME /root/.dropbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
- Keyword arguments can be None, so need something more unique to compare | |
against. | |
- There is the possibility of cache the results of each component for quicker | |
evaluation. | |
""" | |
import inspect | |
import functools | |
from pyblish import api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import socket | |
import traceback | |
def send(cmd, port): | |
host = '127.0.0.1' | |
# we expect a result no matter if it errors, so we keep trying until we |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
- python=2.7 | |
- pip: | |
- pytest | |
- git: | |
- https://github.com/tokejepsen/file-link.git: | |
- python -c "import os;import subprocess;path = os.path.join(os.environ[\"CONDA_ENVIRONMENT_REPOSITORIES\"], \"file-link\");os.environ[\"PYTHONPATH\"] += os.pathsep + path;subprocess.call(\"pytest\", cwd=path)" | |
name: filelink-environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -v /c/Users/admin/linux-env:/shared -it ubuntu /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hiero | |
import ftrack | |
shots_data = [] | |
for seq in hiero.ui.activeSequence().project().sequences(): | |
for vid in seq.videoTracks(): | |
for item in vid.items(): | |
for tag in item.tags(): | |
data = tag.metadata().dict() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[python {sorted(hiero.ui.activeSequence().trackItemAt(hiero.ui.currentViewer().time()).tags(), key=lambda item: item.name())}] |