2020-10-01
03:14 AM
- last edited on
2021-09-15
12:44 AM
by
Noemi Balogh
call "macro", parameters all alpha = alphaWhy do I need "alpha = alpha", when the name of the variable is the same in the caller object and in the macro?
2020-10-01 05:09 AM
alpha = alphaIn this situation the first "alpha" is a variable and the second "alpha" is the name of the parameter in the called macro.
!parameter list: !alpha = 90 !masterscript: alpha = 270 !2d-script: call "macroname" parameters all ! <= alpha in macro = 90 call "macroname" parameters all alpha = alpha ! <= alpha in macro = 270HTH Dominic
2020-10-01 04:51 PM
2020-10-06 07:02 AM
2020-10-06 07:14 AM
That's not the case, both calls will give alpha = 270 to the macro.!parameter list: !alpha = 90 !masterscript: alpha = 270 !2d-script: call "macroname" parameters all ! <= alpha in macro = 90 call "macroname" parameters all alpha = alpha ! <= alpha in macro = 270