Skip to content

Commit

Permalink
Update SkillComposer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
borntoleave committed Nov 7, 2024
1 parent ab601e6 commit 015af41
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pyUI/SkillComposer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ def export(self):
angleRatio = 1
startFrame = self.activeFrame
inv_triggerAxis = {txt(v): k for k, v in triggerAxis.items()}
for f in range(startFrame, self.totalFrame):
for f in range(0, self.totalFrame):
frame = self.frameList[f]
self.frameData = copy.deepcopy(frame[2])
if max(self.frameData[4:20]) > 125 or min(self.frameData[4:20]) < -125:
Expand Down Expand Up @@ -1825,14 +1825,16 @@ def sendCmd(self,event=None):
if serialCmd != '':
try:
token = serialCmd[0]
cmdList = serialCmd[1:].replace(',',' ').split()

if len(cmdList) <= 1:
send(ports, [serialCmd, 1])
if token == 'S': #send everything as a string
send(ports, [serialCmd[1:], 1])
else:
cmdList = list(map(lambda x:int(x),cmdList))
send(ports, [token,cmdList, 1])
self.newCmd.set('')
cmdList = serialCmd[1:].replace(',',' ').split()
if len(cmdList) <= 1:
send(ports, [serialCmd, 1])
else:
cmdList = list(map(lambda x:int(x),cmdList))
send(ports, [token, cmdList, 1])
self.newCmd.set('')
except Exception as e:
logger.info("Exception")
print("Illegal input!")
Expand Down

0 comments on commit 015af41

Please sign in to comment.