Page 1 of 1

Path Object Does Not Exist Issue

Posted: 17 Feb 2021, 22:01
by sc18ldh
Hi,

I have created a test scene to demonstrate the strange behaviour when trying to get the handle of a path using sim.getObjectHandle()

Here: https://drive.google.com/file/d/10tD7F6 ... sp=sharing

The first robot (LineTracer) correctly assigns the paths handle using sim.getObjectHandle('Path') however when copying that robot (LineTracer or using any other robot and running sim.getObjectHandle('Path') it comes up with the error 'Object does not exist' even though it has been correctly assigned previously.

Simply deleting LineTracer#0 fixes the issue.

Re: Path Object Does Not Exist Issue

Posted: 18 Feb 2021, 09:58
by fferri
Not a bug.

Use sim.getObjectHandle('Path#') instead.

Read more at Accessing objects programmatically.