06-08-2015 09:53 AM
Hello everybody,
I've 18 intensity graphs displayed on my front panel (which is quite a lot). All these graphs have the same size (same number of rows and same number of columns).
I'd like to find a way to modify their style all together. I want for example apply the same x-y scale or the same z color scale for all my intensity graphs.
Is there a cleaner and easier way to do it than putting a property node for each of my graph? This is a way i dit it until now but I don't like that.
Thanks for your help.
Pierre,
06-08-2015 09:58 AM
Create a reference for each graph (right-click..create reference) and build them into an array. Now autoindex this array on a FOR loop and wire to a single property node inside the loop.
06-08-2015 09:59 AM - edited 06-08-2015 09:59 AM
I would pack all all of the graph references into an array and then loop through the array of references. Sounds like you may have multiple operations which would operate on the reference array.
EDIT: Altenbach is way too fast 🙂
06-08-2015 10:06 AM
Wow, that was quick. Thanks a lot to both of you. I'm trying to implement that right now.
06-08-2015 10:20 AM
You will also want to use the Defer Front Panel Updates (turn ON before the FOR loop and turn OFF after the FOR loop). That will make this code run a little bit faster.
06-08-2015 10:47 AM
@crossrulz wrote:
You will also want to use the Defer Front Panel Updates (turn ON before the FOR loop and turn OFF after the FOR loop). That will make this code run a little bit faster.
More importantly, make sure to write these properties only if things change and don't hammer the same properties over and over with every iteration of the outer loop. Put the suggested FOR loop (the one iterating over the references) inside a case structure.
Deferring the front panel updates is optional. See if you notice any lag.
06-08-2015 11:14 AM