mottosso / cmdx

Fast and persistent subset of maya.cmds
https://mottosso.com/cmdx
BSD 2-Clause "Simplified" License
193 stars 36 forks source link

Added DGContext class #14

Closed monkeez closed 4 years ago

monkeez commented 4 years ago

First pass of the DGContext context manager. Let me know if you have any suggestions.

mottosso commented 4 years ago

I like it.

My initial reaction was that cmds.Context would have been cleaner.. and maybe it's worth adding a Context = DGContext as another alias below, since there is no other jargon for context than a DG context so seems a bit wasteful. But it would be consistent if you're already familiar with it, like cmdx.Vector and cmdx.TransformationMatrix etc. So we shoul definitely keep it in.

mottosso commented 4 years ago

I think this looks good, merging as soon as the (needless) tests passes (for the README badges to not break).