Trevliga Spel forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Script Image: not using environmental variable for path

2 posters

Go down

Script Image: not using environmental variable for path Empty Script Image: not using environmental variable for path

Post by jtints Wed Jan 31, 2024 4:38 am

I am trying to use scripts to pull an image for a button from a file using an environmental variable in the path without success. I have verified that the path, using the explorer, is correct.

This is the path with the environmental variable. It correctly calls up the image when I enter it into the explorer.

%thumbs%\tn\T01_P02_B01_C05.jpg

here is the CMD echo:
C:\Users\[redacted]>echo %thumbs%
E:\Dropbox\G - Projects\FFoB_Project\B01_Elements\Footage_Elements\1B_FFoB_Video_Thumbs

This does not work on the button:

[(init){image:%thumbs%\tn\T01_P02_B01_C05.jpg}]

But this does:

[(init){image:E:\Dropbox\G - Projects\FFoB_Project\B01_Elements\Footage_Elements\1B_FFoB_Video_Thumbs\tn\T01_P02_B01_C05.jpg}]

Is there something I am doing incorrectly when I use the environmental variable?

Any help would be appreciated.

jtints

Posts : 37
Join date : 2024-01-22

Back to top Go down

Script Image: not using environmental variable for path Empty Re: Script Image: not using environmental variable for path

Post by Admin Wed Jan 31, 2024 8:30 am

For some reason unknown to me, the Stream Deck software needs to be restarted after creating the environment variable. After that, it will work.
Admin
Admin
Admin

Posts : 1235
Join date : 2020-03-26

https://trevligaspel.forumotion.eu

Back to top Go down

Script Image: not using environmental variable for path Empty Re: Script Image: not using environmental variable for path

Post by jtints Wed Jan 31, 2024 7:33 pm

This makes sense. When you have a CMD open and you make a change to an environment variable, you have to open a new CMD window for the env variable to take effect. 

Thanks. This is working perfectly now.

jtints

Posts : 37
Join date : 2024-01-22

Back to top Go down

Script Image: not using environmental variable for path Empty Re: Script Image: not using environmental variable for path

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum