Hello I am having trouble getting my head around macros.
I am trying to make a macro or alias to run a simple series of offsets
I need to
sellect an existing curve
offset this curve three times
first 6.35mm
second 17mm
third 36mm
then colour the original curve white the 6.35mm red, the 17mm light green and the 36mm magenta
This must be a simple macro, but i cant get it to work.
Also can anyone point me to good tutorials on creating macros?
Dear @tom11
i recommand to learn scripting
Then this is your starting point:
Or if you only need a few scripts in a professional conntext pay / hire somebody like me
Macros have their power mostly for a single command with fixed options and maybe some action with the result.
As soon as it is more a workflow with non linear dependency or even conditions / multiple (if…) cases… it is no longer a macro …
Hope this help s
Kind regards
(Edit: @Tom_P answered first, and he is right that a Python script would work better. It’s hard to do complicated things with macros because you don’t have variables)
Offset is a difficult command to use in a macro because you have to click one side or the other.
The normal way of making something a different color is to set it on a layer with that color, but I think you can set it per object.
The rest is doable. You will have to name the first curve to recall it later.
I also use the naming trick there.
And recolor…
I think it should be possible to introduce fake variables with document user text…
Shall we start a “macro-gym” topic?
Subtitle
amazing stuff with macros…you never thought they were possible…
Edit …
We already have this topic…
I always thought i get famous for my infiltrate copy option macro…