Problems with image in button script
2 posters
Page 1 of 1
Problems with image in button script
I have 2 buttons configured:
Button 1
Button 2
The button 1 it is a test and works fine. Pressing the button toggles the 2 images that I want to see.
The button 2 should show the same images if the value of variables are 1-0 or 0-1. But no image is never shown.
The texts change correctly, but no image is shown.
I have restarted SD+ and the computer, but it still not working.
What I am doing wrong?
Thanks!
Button 1
- Code:
[(press){image:%trevligaspel%\MidiLayouts\Buttons\Speaker B.png}]
[(press){image:%trevligaspel%\MidiLayouts\Buttons\Master Mono.png}]
Button 2
- Code:
[(noteon:1,50,0-127){@SpeakerB:1}]-> Speaker B On
[(noteoff:1,50,0-127){@SpeakerB:0}]-> Speaker B Off
[(noteon:1,42,0-127){@MasterMono:1}]-> Master Mono On
[(noteoff:1,42,0-127){@MasterMono:0}]-> Master Mono Off
[(@SpeakerB:0)(@MasterMono:0){image:#none#}{text:SpeakerB\nStereo}]
[(@SpeakerB:1)(@MasterMono:1){image:#none#}{text: SpeakerB\nMono}]
[(@SpeakerB:1)(@MasterMono:0){text:B}{image:%trevligaspel%\MidiLayouts\Buttons\Speaker B.png}]
[(@SpeakerB:0)(@MasterMono:1){text:M}{image:%trevligaspel%\MidiLayouts\Buttons\Master Mono.png}]
The button 1 it is a test and works fine. Pressing the button toggles the 2 images that I want to see.
The button 2 should show the same images if the value of variables are 1-0 or 0-1. But no image is never shown.
The texts change correctly, but no image is shown.
I have restarted SD+ and the computer, but it still not working.
What I am doing wrong?
Thanks!
jordikt- Posts : 291
Join date : 2024-02-10
Re: Problems with image in button script
If you have extended logging enabled while it happens and send me the log file, I can see exactly what is going on.
Re: Problems with image in button script
I don't find any button to attach the log file. How do I send it to you?
jordikt- Posts : 291
Join date : 2024-02-10
Re: Problems with image in button script
jordikt wrote: I don't find any button to attach the log file. How do I send it to you?
You can email it to trevligaspel@gmail.com
Re: Problems with image in button script
I did a mistake that caused the problem.
I assigned an image in the Stream Deck editor for button 2 before writing the script.
If an image is assigned in the editor, this always takes precedence, no matter what the plugin tries to do.
Solution: I have set the button 2 to the default image, and the issue has been fixed.
I assigned an image in the Stream Deck editor for button 2 before writing the script.
If an image is assigned in the editor, this always takes precedence, no matter what the plugin tries to do.
Solution: I have set the button 2 to the default image, and the issue has been fixed.
jordikt- Posts : 291
Join date : 2024-02-10
Similar topics
» Script Image: not using environmental variable for path
» Program Change Button Script Broken in 3.5.0.88
» Script button , strange behavior regarding position .
» ID Button Number
» Read this if you have problems with version 3.7
» Program Change Button Script Broken in 3.5.0.88
» Script button , strange behavior regarding position .
» ID Button Number
» Read this if you have problems with version 3.7
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum