raganmd
11/29/2018 - 6:49 AM

save-for-release-script

base_save       = op('base_save')
version         = op('table_version')[0,0].val
reset_color     = (0.545, 0.545, 0.545)
save_loc        = '../release/base_save.tox'

# save tox
base_save.par.Version                   = version
base_save.op('saveEXT').par.file        = ''
base_save.op('saveEXT').par.loadonstart = False
base_save.par.externaltox               = ''
base_save.color                         = reset_color
base_save.op('null_icon').lock          = True
base_save.op('svg_save_icon').destroy()
base_save.save(save_loc)

# return to working pars
base_save.op('saveEXT').par.file        = 'saveEXT.py'
base_save.op('saveEXT').par.loadonstart = True
base_save.par.externaltox               = 'base_save.tox'
base_save.color                         = (base_save.par.Extcolorr, base_save.par.Extcolorg, base_save.par.Extcolorb)
base_save.par.reinitnet.pulse()
base_save.par.Version                   = version