Skip to content

Commit

Permalink
9-8-23 - Fixed Animation Preset Loading
Browse files Browse the repository at this point in the history
To fix #71, I changed "scene" to "animation" in the HTTP loading kwargs code for global/snapshot preset loading.    I'm not sure why I had it referred to as "scene" before... but that was *wrong*...
  • Loading branch information
taburineagle committed Sep 8, 2023
1 parent 0fec5c3 commit 49edab7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions NeewerLite-Python.py
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ def setUpGUI(self, **modeArgs):
self.ColorModeTabWidget.setCurrentIndex(2)

self.Slider_ANM_Brightness.setValue(modeArgs["brightness"])
self.computeValueANM(modeArgs["scene"])
self.computeValueANM(modeArgs["animation"])
except NameError:
pass # could not load the GUI, but we have already logged an error message

Expand Down Expand Up @@ -1805,12 +1805,12 @@ def recallCustomPreset(numOfPreset, updateGUI=True, loop=None):
elif customLightPresets[numOfPreset][0][1][0] == 6: # the preset is in ANM/SCENE mode
p_colorMode = "ANM"
p_brightness = customLightPresets[numOfPreset][0][1][1]
p_scene = customLightPresets[numOfPreset][0][1][2]
p_animation = customLightPresets[numOfPreset][0][1][2]

if updateGUI == True:
mainWindow.setUpGUI(colorMode=p_colorMode, brightness=p_brightness, scene=p_scene)
mainWindow.setUpGUI(colorMode=p_colorMode, brightness=p_brightness, animation=p_animation)
else:
computedValue = calculateByteString(True, colorMode=p_colorMode, brightness=p_brightness, scene=p_scene)
computedValue = calculateByteString(True, colorMode=p_colorMode, brightness=p_brightness, animation=p_animation)

if updateGUI == False:
for b in range(len(availableLights)):
Expand Down

0 comments on commit 49edab7

Please sign in to comment.