Remembering the current slide when exiting a layout
I am attempting to store the object name of the current slide in a slide control in a global variable; when the user navigates away from the layout. The purpose is to Go to Object[$$lastSlideName] upon re-entry into the layout.
I have tried to store the current active slide name with the following script:
If[GetLayoutObjectAttribute("Slide 5"; "isFrontPanel")]
Set Variable[$$slideFocus; Value: "Slide 5"]
Set Variable[$$slideFocus; Value: 0]
I run this when there is an active object in "Slide 5" and it produces "Slide 5". It always produces "Slide 5" no matter what slide is in front. Am I using the wrong Get calculation perhaps? Feedback is greatly appreciated.
Did you use the inspector to give each panel in your slider a different object name?
If you use the OnPanelSwitch script trigger in combination with the Get ( TriggerTargetPanel ) get function, there is no need to use GetLayoutObjectAttribute for this purpose.