Tracer (hwx.inspire.motion)¶
A point in the model that traces out a path during Motion Runs
- Inherits:
MotionObject (hwx.inspire.motion)
Attributes¶
Public Methods¶
classmethod showTraces (cls, analysis=True, frames=(0, None), ignoreTrails=True, **kwds)
classmethod writeCsv (cls, tracers, file, analysis=None)
getDrawPoints (self, wrtPaper=True)
getPoints (self, analysis, wrtPaper=False, startFrame=0)
Attribute Details¶
active : Bool¶
Returns or sets the object activeness.
Setting this on or off sets all children. Setting to True sets all the parents active too.
color : Color¶
enableTrail : Bool¶
location : Location (units=”length”)¶
name : Attribute¶
Returns or sets the name of the object.
It can be any text string, including spaces, although it’s best to avoid using the following characters: ” ‘ * ? and $.
While these characters are allowed, they could create difficulties when you export the model to other applications.
paper : Attribute¶
parts : Attribute¶
pen : Attribute¶
thickness : Int¶
trailFrames : Int¶
visible : Bool¶
Determines whether the object is visible in the graphics window.
Setting this on or off sets all children. Setting to True sets all the parents visible too.
Method Details¶
- classmethod showTraces(cls, analysis=True, frames=(0, None), ignoreTrails=True, **kwds)¶
Show trace lines for all Tracers in the model. Limit what frames are drawn by passing in (startFrame, endFrame).
- classmethod writeCsv(cls, tracers, file, analysis=None)¶
Write points of all passed Tracers to a csv file
If multiple tracers are passed then the x, y, z column headers will have the tracer’s name prepended to them.
- getDrawPoints(self, wrtPaper=True)¶
Get points to draw if trace lines turned on
- getPoints(self, analysis, wrtPaper=False, startFrame=0)¶
Get tracer location at every frame of the analysis
wrtPaper - transform points into paper parts reference frame