Hello,
i'm stuck at this for quite some time so i'll explain the situation to you in hope for help:

i have a script console where one can insert custom scripts based on qtscript,
there is a simulation which is accessed by a command

mysimulation = getsimulation("....")

a simulation is a class.
now when using specific commands on that simulation it normally works like this:

simulation_name = mysimulation.getname()

which calls the corresponding function and so on. the functions like getname() return of course QScriptValues to work with further. i'm currently scripting a function which needs to know the variable it's executed with.
in my example it would have to know that the name of the variable was "mysimulation".

my current way of doing that is: mynewfunction("mysimulation") but that is of course no good way for solving the problem. is there a way to get the name of the qscriptvalue/qobject (which it is also?) when its accessed?

i hope you can understand what i'm talking about thanks