Hi guys,
I've created this plugin https://github.com/kevinhayen/grandma3_fixture_to_presets
but have some questions regarding this installation.
this plugin calls itself a few times using:
and
for some reason, when opening a new showfile, editing a plugin, adding a ComponentLua, pasting the code, saving, rename plugin to "fixture_to_presets" , doing "reloadplugin", .. the plugin loads.
But when doing an action where the plugin calls itselves, that "PluginName" variable is empty, and tells me:
I get this working when I remove the ComponentLua and add it again, but it not always works from the first time. I'm curious what the reason can be for this?
----------------
a second question is about this error:
LUA Runtime Error[string "InsertFixtureswizard@insert_fixtures_wizard.lua"]:60: attempt to call a string value (global 'type')
This error occurs when I try to open the patch screen where I need to select which fixture to patch, and I'm stuck in this screen:
clicking "<select fixture type>" will give just this empty window:
this error occurs when I first navigate within my plugin, mostly when moving from one attribute to another in my plugin, and when I then go to patch and press "insert new fixture".
I tried to check the MA3 lua itself, I do know Printf() to print out a variable, but could not directly find what could go wrong.
Also, in my LUA plugin, I never change any objects within grandma3, I only use info, so I'm confussed in why this error occurs.
I'm curious if someone understands what can go wrong
kind regards