How to get scriptHandle using ZMQ API?

Typically: "How do I... ", "How can I... " questions
Post Reply
cynical-seeker
Posts: 9
Joined: 28 Sep 2021, 09:59

How to get scriptHandle using ZMQ API?

Post by cynical-seeker »

I want to call a script in my code using sim.callScriptFunction. There, how do I get the scriptHandle parameter that is required. The documentation of sim.callScriptFunction points to sim.getScript but with that I get the following error.

Code: Select all

AttributeError: type object 'sim' has no attribute 'getScript'

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

Re: How to get scriptHandle using ZMQ API?

Post by fferri »

Which CoppeliaSim version?

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

Re: How to get scriptHandle using ZMQ API?

Post by fferri »

Prior to 4.3.0rev12 use sim.getScriptHandle

cynical-seeker
Posts: 9
Joined: 28 Sep 2021, 09:59

Re: How to get scriptHandle using ZMQ API?

Post by cynical-seeker »

I currently have installed version 4.3

Post Reply