Asked — Edited

Questions About Plugin Development

I have a couple of questions that I hope you can help me with. I didn't realize that some of these issues existed until I loaded the plugin on a non-development machine.

What would be the proper way to write a text file containing your configuration settings for you app to the %public%\Documents\EZ-Builder\Plugins[GUID] directory or should I be writing this file somewhere else?

Is there a way to allow some functions in my plugin to be startable from a script? If so, can you please let me know how this is done?

I think this is all for now, but I am sure that I will come up with some more in time.

Thanks David


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

PRO
Synthiam
#2  

Yes, the config data must be saved with the project. Do not, under any circumstances save any user data outside of the project data.

Follow that tutorial and you're good to go!:)

If you need additional examples on how to use it, check the source of my plugins. They all have a configuration screen.

#3  

Thanks DJ. Is there a way to expose some functions to be called from the script component? I want to have the start and stop exposed mainly.

PRO
Synthiam
#4  

Can you expand on that question?

The entire scripting engine is exposed. I'll direct you to the commands if I understand the question. Are you asking to bind to a controlcommand()?

#5  

I'll post it tomorrow. Going to go hang with the family but basically

Commandcontrol command in the script engine is what I want to use.

PRO
Synthiam
#6  

All my plugins have an example...

There's two override methods you care about. One method will return the possible ControlCommand() parameters. The other will bind to the control command.

Take a look at any of the plugins