Get/Set m_shading via scripts

Hi I made a color shading creator based on some of the ones being around here, but I would like to add the generated shades from the dialogue to the ink.shade palette therefore was I looking for help of a possibility to change the colours of the shading ink via script.