Skip to content

0.4.7

Compare
Choose a tag to compare
@monkeez monkeez released this 08 Oct 11:15
· 214 commits to master since this release
8746731

Usability improvements and bug fixes.

  • Added time argument to Plug.asDouble(), Plug.asVector(), and getAttr().
  • Added Plug.append(autofill) to perform a search for the first unconnected value of an array to reuse potentially disconnected plugs and optimise space.
  • Implemented consistent default unit of Seconds for time plugs.
  • Added AngleUiUnit(), TimeUiUnit(), and DistanceUiUnit().
  • Updated DGContext to use Seconds by default.
  • Added unit argument to DGContext to support evaluating in different time units.

DGContext support two different syntaxes for passing in a time unit:

with cmdx.DGContext(1, cmdx.Minutes):
    pass
# Or
with cmdx.DGContext(cmdx.Minutes(1)):
    pass