Add-on with autostart

Typically: "How do I... ", "How can I... " questions
Post Reply
Kiluu
Posts: 1
Joined: 22 Oct 2013, 12:56

Add-on with autostart

Post by Kiluu »

Hello.
I want my simulation to run automatically after loading a scene.
I red about using scripts and add-ons but when I load it (I based on vrepAppOnScript-addOnScriptDemo.lua) I must manually launch it from toolbar (by clicking Add-ons -> addOnScriptDemo (stopped) ). I was trying to change the code in that script, but it always is in "stopped" mode.

I would be grateful for your help. :)

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: Add-on with autostart

Post by coppelia »

Hello,

make sure the name of your add-on is vrepAddOnScript_xxxx.lua, where xxxx can be anything. The underscore is important, since it tells V-REP to automatically start the add-on script.

Cheers

Post Reply