i need to copy objects rotation from overlay scene

in same scene:

Cube = GameLogic.getCurrentScene().getObjectList()["OBCube"]

in overlay scene: getSceneList()[overlayScene]? :confused:

I’m not sure but I think you have to do that trough the GameLogic module.
For example, you have in the overlay scene a object where you want to get the position of and use it in the default (under lying) scene. You can do that with:

import GameLogic

scene = GameLogic.getCurrentScene()
obj = scene.getObjectList(["OBCube"])

# here you export the object position to GameLogic so it can be used everywhere you want
obj.getPosition() = GameLogic.objPos

So now the position of obj is being thrown into the engine and can be every called by using:

# import GameLogic, is needed to ask everything thrown into the GameLogic stuff
import GameLogic

# so now you can ask for information which has been exported to GameLogic
# by simply making a variable and call the GameLogic.objPos which was exported
objectPosition = GameLogic.objpos

So the first script is being executed in the overlay scene, and the 2nd is being executed in the default scene where you, character, level or complete game plays in. :slight_smile:
It’s really usefull, this way you can export variables from scripts to another script on the fly.
I showed the code for position, but you can do the same with orientation.

Nice. Thank you!