On 02/05/2017 at 06:16, xxxxxxxx wrote:
sometimes I use the Script log to see what a command syntax looks like, and usually fail to create a Python script out of it.
For example, using:
turns the "Create New object at View Center" on and off.
How would I create a script that toggles between states, with the icon being Active (blue) when it's on and grey when it's off?
just pasting the code in a script gives me an error:
Traceback (most recent call last) :
File "'scriptmanager'", line 11, in <module>
File "'scriptmanager'", line 7, in main
NameError: global name 'prefs' is not defined