0.4.7
Usability improvements and bug fixes.
- Added
time
argument toPlug.asDouble()
,Plug.asVector()
, andgetAttr()
. - 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()
, andDistanceUiUnit()
. - Updated
DGContext
to useSeconds
by default. - Added
unit
argument toDGContext
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