I want to copy the properties of some sources x1, x2,…,x5 to other sources y1,y2,…,y5 programmatically depending on user input.
The user chooses X, so instead of copying by hand the properties of x1 to y1, x2 to y2, etc. I want to do a macro or something that lets me do this automatically. But I can’t pass arguments to macros, right?
I’m sorry. For example, the person using Paraview, depending on what he sees in the view, has to choose b or c.
If he chose b, then he has to paste b_InitialPosition to a_InitialPosition and b_TranslateToOriginAndScale to a_TranslateToOriginAndScale.
If he chose c, then he has to paste c_InitialPosition to a_InitialPosition and c_TranslateToOriginAndScale to a_TranslateToOriginAndScale.
I want to do something that, with a couple of clicks, copy the properties of b or c and paste them into a. I thought of a macro, but how can I tell the maco which option the user chooses?