Hey,
Can this tool be used to convert a variable value to an integer? e.g. 16.0 to 16
Thanks,
Carl
x = indigo.variables[12345678].getValue(int)
DaveL17 wrote:Hi Carl - no, the Multitool plugin doesn't have that capability. What you're looking to do can be done very simply using Python.What are you looking to do with the integer value once you get it?
- Code: Select all
x = indigo.variables[12345678].getValue(int)
DaveL17 wrote:I haven't used the EPS plugin for some time, but that's another good suggestion.
ckeyes888 wrote:DaveL17 wrote:I haven't used the EPS plugin for some time, but that's another good suggestion.
moon_phase = int(indigo.devices[17807039].states['moonPhase'])
indigo.variable.updateValue(314742858, str(moon_phase))
Users browsing this forum: No registered users and 0 guests