I’m doing a few experiments within Hype and amazed at the possibility that it has.
I was wondering if one could get the style properties of an element of a different scene in the context of writing a JS function in the current scene?
I have an object defined with a class called, ‘box’ in the current scene (let’s call it Scene-1)… I’ve duplicated the scene, but have changed the style properties of this ‘box’ class in this (Scene-2). Now, in Scene-1… I want to run a JS function on click on this ‘box’. In this context, I’ve defined a function but would also want to get the properties of the ‘box’ class that were in Scene-2.
For now, when I get the elements by class name (document.getElementsByClassName), Hype lists the objects from both Scene-1 & Scene-2 – However, the style properties of the ‘box’ object from scene-2 isn’t updated! Was wondering if there is some way to get these properties of the ‘box’, through code?
Hope I communicated clearly…
Any help is appreciated. Thank you.