What is the fine-grained topic of the following text: Workarounds are possible by maintaining variables to that keep up with these values and updating them whenever the pen state/color/size/shade are changed, possibly by leaving a separate script running that alters the pen when the variables are changed, and only modify the variables in other scripts instead of changing the pen attributes directly. Only return the topic.
Maintaining and updating variables for pen state attributes in scripting