Path Object Does Not Exist Issue

Report crashes, strange behaviour, or apparent bugs
Post Reply
Posts: 3
Joined: 29 Jan 2021, 17:41

Path Object Does Not Exist Issue

Post by sc18ldh »


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

Here: ... 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.

Posts: 728
Joined: 09 Sep 2013, 19:28

Re: Path Object Does Not Exist Issue

Post by fferri »

Not a bug.

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

Read more at Accessing objects programmatically.

Post Reply