AutodeskRoboticsLab / Mimic

An open-source Maya plugin for controlling Industrial Robots. Written in Python 3.
https://www.mimicformaya.com/
172 stars 39 forks source link

allow multiple commands to be generated per frame to permit concurrent motion / IO export #43

Closed aatb-ch closed 9 months ago

aatb-ch commented 9 months ago

_format_command subclass in post-processors returns a single namedTuple. This makes it impossible to generate separate commands for motion and IO per frame.

This PR changes the return type of _format_command to a list, and changes format_commands to extend instead of append to the commands list. Consequently all post-processors have been updated to return a list of namedTuple.

Tested all post-processors and seems to work all fine. Most processors dont currently include IO export capabilites but this makes it possible to add easily.