Executing code before the simulation is started

Typically: "How do I... ", "How can I... " questions
Post Reply
lonchaneyjr
Posts: 8
Joined: 02 Jul 2013, 16:31

Executing code before the simulation is started

Post by lonchaneyjr »

I have a v-rep scene with a robot and some other objects, and I have a custom UI which allows the user to load a path from CSV points in a file (and then some other code is also executed to modify the path).

Ideally, I'd like the user to interact with the UI to loda a path before the simulation starts. Currently, since the code checking the custom UI is in a child script, the UI doesn't work unless the simulation is started.

Could you please advise what the best way to do this is? Do I need a plugin, or can it be done another way?

Thanks very much for your help.

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

Re: Executing code before the simulation is started

Post by coppelia »

Hello,

in your situation, you have two simple options:
Both are executed also when simulation is not running. If you need something very fast, quite complex, or with a specific interface, use a plugin. Otherwise try with an add-on.

Cheers

lonchaneyjr
Posts: 8
Joined: 02 Jul 2013, 16:31

Re: Executing code before the simulation is started

Post by lonchaneyjr »

Ah, sorry I had forgotten about the possibility of using an add-on script. I'll try that.

Thanks a lot!

Post Reply