Get current frame of objects scene? I've been working on an add-on that manipulates text data called randomiser
https://github.com/BenSimonds/Randomiser

My problem is a bug I'm trying to resolve with getting the correct "current frame" for an object based on what's scene it's in. If the blend file only has one scene, or if the object only appears in the active scene this is trivial (context.scene.frame_current).

However if the object appears in another scene it gets more complex. ob.users_scene will return a list of scenes that the object appears in and I could maybe get the current frame from them, but if the object appears in multiple scenes then how can i decide which to pick frame_current from?

Or is this precisely why the script should only let you use a value keyed by the user and not directly use the current frame?
There is no current frame property for objects, there's only a frame_current for every Scene. What "current frame" means to an object is not defined.

What you might want to do is to get the current frame of the active scene, there's only a single active scene per Blender window and it's what the user sees (are you using a frame change handler that changes Text.body based on frame_current?)