#Custom Options Question

15 messages · Page 1 of 1 (latest)

thin lichen
#

I'm trying to use custom option inputs in a custom grow for dynamic group settings but I'm kinda noob and I don't know how to access the inputs from the options in the custom grow code. My current attempt looks something like this:

local numberOfRows = tonumber(aura_env.config.numberOfRows) or 3

but I don't think the value is being retrieved. The custom option is just a slider with the option key being numberOfRows

twilit bronze
#

Groups, whether normal or dynamic, don't have custom options. Just as they don't have triggers, conditions, actions, etc.

#

The child auras have custom options

#

From a groups custom grow code, you can access all the child envs

#

Iterate over all children, find the one with the right config (this way you avoid issues if the aura moves in the order), and then do your stufg

#

^ that goes over it

#

And also get this to inspect that table:

#

!vdt

river zephyrBOT
thin lichen
#

Awesome thank you for the swift reply. So to make sure I understand correctly, I can have a group selected and go to custom options, but the group itself doesn't contain the options, rather I'm changing the options of all the child auras at once, but for the custom grow code I cannot call on the option that isn't there. Can I refer to an option in a child aura?

twilit bronze
#

Yeah if you select the group as a whole and go into custom options (or triggers or whatever) you just see all of the child auras options merged

#

And yes, you can refer to a child auras option in the way I described above

thin lichen
#

ok I will digest the info. Thanks again

twilit bronze
#

E.g. if the first aura in the group (going by the ordering in the list on the left) has the custom options you want, then you can access those in the custom grow code like
aura_env.child_envs[1].config