Page 1 of 1

Open child script when V-REP is not running

Posted: 17 Jul 2017, 14:58
by mthor13
Hi,
Is it possible to edit child scripts without launching v-rep?
I am currently on Linux and the script only becomes visible when I start v-rep (they are called embScript_*some_number*.lua).

Best,
Mathias Thor

Re: Open child script when V-REP is not running

Posted: 17 Jul 2017, 20:53
by coppelia
Hello Mathias,

yes, the best way would be to have your child script contain something like:

Code: Select all

require('utils')
include('/lua/yourScript.lua')
From V-REP 3.4.1 onwards, you will also be able to directly write:

Code: Select all

sim.include('/lua/yourScript.lua')
this way, your script content will be stored outside of your scene or model file.

Cheers

Re: Open child script when V-REP is not running

Posted: 20 Jul 2017, 19:53
by mthor13
Thank you very much!