Hello,
"modelHandle=sim.getObjectAssociatedWithScript(sim.handle_self)"
what is the equivalent of this line in python?
LUA to Python
Re: LUA to Python
Hello,
you can use exactly the same from a child script and Python. If you however try to run this from an external python script, this won't work (and doesn't make any sense, since an external script doesn't have an object associated with it).
But since CoppeliaSim V4.2, you should instead use following, better way of doing things:
Cheers
you can use exactly the same from a child script and Python. If you however try to run this from an external python script, this won't work (and doesn't make any sense, since an external script doesn't have an object associated with it).
But since CoppeliaSim V4.2, you should instead use following, better way of doing things:
Code: Select all
objectHandle=sim.getObject('.')