AndyC Posted November 10, 2010 Share Posted November 10, 2010 Can anyone see what the difference is betwen the following two macros. The first one works and allows me to first insert an incremental number and then a block. The second, where i have swaped the order around and have tryed to insert the block first does not work. It allows me to insert the block and end simply ends and does not attempt to insert the incremental number. MACRO 1 ^c^c-layer;m;"LB-T007-SET-OUT";c;WHITE;;l;continuous;;;-insert;"LB-setting-out-point";sc;"~";;;;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));-insert;"LB-setting-out-point";sc;"~";; MACRO 2 ^c^clayer;m;"LB-T007-SET-OUT";c;WHITE;;l;continuous;;;_text;\;;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+,$(getvar,USERR1),$(getvar,USERR2));-insert;"LB-setting-out-point";sc;"~";; Quote Link to comment Share on other sites More sharing options...
BIGAL Posted November 11, 2010 Share Posted November 11, 2010 macro 2 need -layer a layer will pop up the layer dialouge box Quote Link to comment Share on other sites More sharing options...
AndyC Posted November 11, 2010 Author Share Posted November 11, 2010 Thanks for the response That was a typo and have correctly added -layer at the start, but the macro still stops after (getvar,USERR2)); and will not run the -insert part of the command. see amended macro below ^c^c-layer;m;"LB-T007-SET-OUT";c;WHITE;;l;continuous;;;_text;\;;$M=$(+,$(get var,USERR1),$(getvar,USERR2));setvar;USERR1;$M=$(+ ,$(getvar,USERR1),$(getvar,USERR2));-insert;"LB-setting-out-point";sc;"~";; Quote Link to comment Share on other sites More sharing options...
BIGAL Posted November 16, 2010 Share Posted November 16, 2010 (getvar "userr2") Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.