## Path Object Does Not Exist Issue

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

### Path Object Does Not Exist Issue

Hi,

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

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.

fferri
Posts: 714
Joined: 09 Sep 2013, 19:28

### Re: Path Object Does Not Exist Issue

Not a bug.

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

Read more at Accessing objects programmatically.