Skip to content

Instantly share code, notes, and snippets.

View sambvfx's full-sized avatar

Sam Bourne sambvfx

  • NVIDIA
  • Los Angeles, CA
View GitHub Profile
@sambvfx
sambvfx / external.py
Created November 27, 2019 01:16
Beam bug when using multiple ExternalTransforms.
from __future__ import print_function
import apache_beam as beam
from apache_beam.io.external.generate_sequence import GenerateSequence
def main(options):
pipe = beam.Pipeline(options=options)
p1 = (
@sambvfx
sambvfx / update_images.py
Last active January 29, 2016 17:46
Update selected images in Mari's Image Manager
import os
from collections import defaultdict
# FIXME: store these dependencies on the image (maybe a callback exists for this?)
procedurals = defaultdict(list)
for geo in mari.geo.list():
for channel in geo.channelList():
for layer in channel.layerList():
if layer.isProceduralLayer() and 'TileImage' in layer.proceduralParameters():