Refreshing a Variable when Using Scene Port & Case Switching
Posted: 07 Nov 2014, 18:48
Working on my Music Visualization project as Ventuz practice and I am having trouble trying to refresh a String Variable that I am using in a loaded scene.
I have a Master Scene that contains all my logic and variable assignments depending upon the song currently playing. I have split-up my scene where I have background visuals and Music Info. These two portions in my master scene are using a case switch node so that I may cycle-through multiple versions of each based on a keystroke. I have currently designated 5 cases each in order to load-in 5 scenes with different layouts.
My issue is occurring when I have a background scene (Music_Vis_01) loaded into the Master Scene at Case_0 which is passing a string variable for the Artist Name to Music_Vis_01. The Music_Vis_01 scene updates the art fine when it is active and the song changes; it is able to update to the appropriate art associated with the currently-playing song. However, if I have Music_Vis_01 active and ARTIST-X is playing and displaying correctly, I run into trouble when I cycle the case away from Music_Vis_01 and change the song. When I cycle back to Music_Vis_01, instead of ARTIST-Y being displayed inside Music_Vis_01, ARTIST-X is still being displayed until the song changes while Music_Vis_01 is active.
I have tried using Scene events and manually nudging to get the artist name to update/refresh inside Music_Vis_01 after cycling through the cases and changing the song while Music_Vis_01 is not active and returning, but to no avail.
Music_Vis_01 has a String Expression for the currently-playing Artist that is exposed and connected to my Master scene. It just seems to be a disconnect when the song changes while Music_Vis_01 is not active and I cannot seem to find a way to poke that string variable back into the Music_Vis_01 scene.
-- D
I have a Master Scene that contains all my logic and variable assignments depending upon the song currently playing. I have split-up my scene where I have background visuals and Music Info. These two portions in my master scene are using a case switch node so that I may cycle-through multiple versions of each based on a keystroke. I have currently designated 5 cases each in order to load-in 5 scenes with different layouts.
My issue is occurring when I have a background scene (Music_Vis_01) loaded into the Master Scene at Case_0 which is passing a string variable for the Artist Name to Music_Vis_01. The Music_Vis_01 scene updates the art fine when it is active and the song changes; it is able to update to the appropriate art associated with the currently-playing song. However, if I have Music_Vis_01 active and ARTIST-X is playing and displaying correctly, I run into trouble when I cycle the case away from Music_Vis_01 and change the song. When I cycle back to Music_Vis_01, instead of ARTIST-Y being displayed inside Music_Vis_01, ARTIST-X is still being displayed until the song changes while Music_Vis_01 is active.
I have tried using Scene events and manually nudging to get the artist name to update/refresh inside Music_Vis_01 after cycling through the cases and changing the song while Music_Vis_01 is not active and returning, but to no avail.
Music_Vis_01 has a String Expression for the currently-playing Artist that is exposed and connected to my Master scene. It just seems to be a disconnect when the song changes while Music_Vis_01 is not active and I cannot seem to find a way to poke that string variable back into the Music_Vis_01 scene.
-- D