Skip to content

Commit

Permalink
cleanup: Format
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Dec 28, 2024
1 parent 3045eae commit ef17a0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ def populateJoints(
continue




def _addJoint(joint: adsk.fusion.Joint, joint_definition: joint_pb2.Joint) -> None:
fill_info(joint_definition, joint)

Expand Down Expand Up @@ -341,6 +339,7 @@ def fillSliderJointMotion(sliderMotion: adsk.fusion.SliderJointMotion, proto_joi

dof.value = sliderMotion.slideValue


def fillBallJointMotion(ballMotion: adsk.fusion.BallJointMotion, proto_joint: joint_pb2.Joint):
"""#### Fill Protobuf ball joint motion data
Expand Down Expand Up @@ -407,7 +406,7 @@ def fillBallJointMotion(ballMotion: adsk.fusion.BallJointMotion, proto_joint: jo

# rotationAxisVector = revoluteMotion.rotationAxisVector
# if rotationAxisVector:
#
#
# else:
# rotationAxis = revoluteMotion.rotationAxis
# # don't handle 4 for now
Expand All @@ -417,6 +416,7 @@ def fillBallJointMotion(ballMotion: adsk.fusion.BallJointMotion, proto_joint: jo
# dof.axis.y = int(rotationAxis == 2)
# dof.axis.z = int(rotationAxis == 1)


def notImplementedPlaceholder(*argv: Any) -> None: ...


Expand Down
3 changes: 2 additions & 1 deletion exporter/SynthesisFusionAddin/src/UI/ConfigCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def notify(self, args: adsk.core.CommandCreatedEventArgs) -> None:
*gm.app.activeDocument.design.rootComponent.allAsBuiltJoints,
]:
if (
joint.jointMotion.jointType in (JointMotions.REVOLUTE.value, JointMotions.SLIDER.value, JointMotions.BALL.value)
joint.jointMotion.jointType
in (JointMotions.REVOLUTE.value, JointMotions.SLIDER.value, JointMotions.BALL.value)
and not joint.isSuppressed
):
jointConfigTab.addJoint(joint)
Expand Down
1 change: 1 addition & 0 deletions exporter/SynthesisFusionAddin/src/UI/JointConfigTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from ..Parser.SynthesisParser.Joints import AcceptedJointTypes


class JointConfigTab:
selectedJointList: list[adsk.fusion.Joint] = []
previousWheelCheckboxState: list[bool] = []
Expand Down

0 comments on commit ef17a0e

Please sign in to comment.