Can anyone tell me why this script doesn't work for me?
indirect = self.view.params.MachineNumber
path = '[default]CL1/{}/To Auto Mode'.format(indirect)
system.tag.writeBlocking(path, 'true')
I don't see anything in the log when I press the button to run it. I can run the script just fine in the console if I change the path for indirect to a valid path inside of "".
You're writing a string "true" to the tag. I presume you should be writing a boolean, in which case it would be, system.tag.writeBlocking([path], [True])
Both arguements of writeBlocking expect lists, [ ], although it tolerates single elements.
There may be other problems that I haven't spotted.