Hello,
I want to open a .toe files with a button in a scene.
Simple explaination is:
1.windows system opens a .toe file with two buttons in the player.
2.Each button points to an external .toe file.
3.The user makes a choice and clicks on one btn
4.The player is closing itself and opens the other .toe file. Or directly loads the other .toe file
I tried working with scenechanger, but because they are already existing scenes it takes me a lot of time to put it in there and make everything work properly.
Can someone help me with this or has someone made this before?
Currently I use a .bat startup file in windows to automatically start a scene. If I can make a selection menu in this startup file that would be fine too. But not so nice.
Thanks for your answer. I think I can use it with panel execute but how can I do that?
I did try it but that did not work. Unfortunately I’m not a python programmer.
Hi Markus,
I tried again and it worked. Actually it was quite simple. The only problem now is that I want to open the other .toe files in the player and not in a perform window from the editor. Do you know a solution for this?
Test files added: first open LOADTEST-02
the app.binFolder will point to the installation folder of TouchDesigner…
You can also use the PanelExecute DAT directly with the Button COMP - the Button COMP is considered a Panel and the PanelExecute DAT can run it’s callbacks on the Button’s select panel value.
The attached file implements those changes.
Also, I saw that you are using a fairly old build of TouchDesigner. Please consider updating to our latest version available here:
Thank you Markus.
The only problem that arises is when opening and going back to the “main menu” the old process has to be closed. I will try to figure this out.
What is the content you are trying to display that makes sceneChanger too difficult to use? Maybe you can just implement switching the display flag of two Container COMPs? Feels like the next this is that you would want to go back to the main menu, meaning you are loading and quitting and waiting a lot…
Hey Markus,
The application I made is a video player with multiple layers of video and also sound. It consists of 4x 1920x1080 screens of which 1 interface screen. I also thought about scenechanger, but thought it would be too big and that the interface buttons of scenechanger would conflict with the other interface. That’s why I first thought of the “simple” way to solve it quickly and maybe look further later. But if I hear you correctly, using scenechanger is also quite simple.
Regards, Simon