Skip to main content

Custom Skeleton Relationship

The Custom Skeleton Relationship node calculates the linear relationship between two input custom skeletons, and triggers different nodes when it matches or doesn't match the specified relationship. Custom skeletons can be from the same body or from two different bodies.

Input

NameData TypeDescription
EnterExecTriggers the execution of this node
Skeleton 1ArrayThe first custom skeleton to use. Connect this to a Custom Skeleton Info node.
Skeleton 2ArrayThe second custom skeleton to use. Connect this to a Custom Skeleton Info node.
RelationshipStringThe desired linear relationship between the two custom skeletons
Detection ThresholdNumberThe range condition for relationship detection. For parallel and perpendicular, the range is set to the baseline angles (90°, 180°, 270°) ± (threshold × 20°). For intersection detection, segments are extended proportionally based on the threshold. For example, a threshold of 1.1 extends each end of the segment by 10% of its length, so a 100-unit segment extends to 110 units.

Output

NameData TypeDescription
Match SuccessExecExecutes the next node when the detected relationship matches the specified relationship
Match FailExecExecutes the next node when the detected relationship doesn't match the specified relationship
Is RelatedBooleanReturns true if the detected skeletons' relationship matches the specified relationship, false if not
AngleNumberReturns the calculated angle between the skeletons