theodox/minq

Support connections

Closed this issue · 1 comments

I have no idea what the api might look like, but support for querying, making, and removing connections would be awesome

You can already get connections with get(Connections):

meshes, m2 = Meshes().split(2)
get_con = lambda p : using(p).get(Connections, s=True)
print meshes.join(connections = m2.foreach(get_con))

Stream([dataRow(index=u'|pCylinder1|pCylinderShape1', connections=Stream([u'initialShadingGroup', u'polyCylinder1']))])

You can also get history using History for upstream history and Future for downstream history:

meshes, m2, m3 = Meshes().split(3)
future = lambda p : using(p).get(Future)
past = lambda p : using(p).get(History)
print meshes.join(future = m2.foreach(future), past=m3.foreach(past) )

Stream([dataRow(index=u'|pCylinder1|pCylinderShape1', future=Stream([u'|pCylinder1|pCylinderShape1', u'initialShadingGroup']), past=Stream([u'|pCylinder1|pCylinderShape1', u'polyCylinder1']))])