I’ve been working on a few templates that basically need to run an initialization function to get all its data and look right (example, a radarchart that gets its axis values based on a single tag path, a moving analog indicator that gets all of its configuration from variable paths that are found via script, and these usually are in a template canvas that places based on its own size). I can put the script on the Property Change event when componentRunning = Ttrue, however this doesn’t work in the designer, not even in preview mode. I can think of a couple workarounds for the designer mode (like a timer component, or maybe an internal component bound to the system time tag and an propchanged attached to that, etc) but as far as I can tell there is nothing that I can do to run this while in the designer, not in preview mode. This is mainly for the parts that need to change their size based on the overall template size. As it is they all start at the size the original template definition is at which isn’t accurate.
So - anyone know of anything that can trigger some sort of script in a template while preview mode is off?