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 up to 16 external axes from the hardcoded limit of 6 #47

Open aatb-ch opened 9 months ago

aatb-ch commented 9 months ago

our workflow does not use mFIZ but external axes to program FIZ, plus a track and couple model moving motors means we already max out the hard limit on external axes which is currently 6. We need additional external axes for forthcoming projects so looked into extending the hardcoded max Axis Number.

This pr allows up to 16 external axes to be created and rigged in the UI, but as some robots have a hardware limit of 6 external axes (Kuka KRL, ABB Rapid..), also updates these post-processors to only use the first 6 external axes. The CSV/TSV post processor will export any of the maximum 16 rigged external axes.

note: I noticed that if rigging a single axis with Axis Number set to anything other than 1, the post-processed file wont be positionally correct, eg rigging a single axis as n°3 wont export it as E3, unless 2 other axes are rigged as 1 and 2, it will end up as E1. Easy workaround to add first 2 unused axes but might be worth patching later on.