2017-07-19 01:34 PM
2017-07-19 01:56 PM
2017-07-19 02:13 PM
Erwin wrote:The issue comes when I change one of the widths. Because it scales with B, when I change the width of one then change to a different variation, either the B or one of the width variables will stay the same and not scale correctly until a value is re-entered in. Here is a part of the master script
Sounds like you'd need a toggle switch for each of the instances.
So if you want A to define the width, that's situation 1. If you want other variables to determine A and this in turn defines the width, that's situation 2.
That way the two instances shouldn't interfere or exclude eachother.
if (show_text) then if GLOB_MODPAR_NAME = "text_width_2" then B=text_width_2*(2/3) endif if GLOB_MODPAR_NAME = "B" then text_width_2=B/(2/3) endif endif if (show_text = 0) then if GLOB_MODPAR_NAME = "text_width" then B=text_width/0.88 endif if GLOB_MODPAR_NAME = "B" then text_width=B*0.88 endif endif PARAMETERS A=A, B=B if (show_text = 0) then A = text_width endif if (show_text) then A = text_width_2 endifand here is a part of the 2D mul2 calculation
if (show_text) then mul2 text_width_2/0.075, B/0.05 else mul2 text_width/0.0441, B/0.05 endif
2017-07-19 04:20 PM