Text, then place in text layer without changing whatever layer's current

Hey friends,

Wondering if someone can help me put together a macro or a script that I would run when I want to create a text object, and have the text object be put in a layer called “text” without making the “text” layer current? Anotherwords, whatever layer is current when I run this script would still be current afterwards but the text object I just created would be in the “text” layer.

Thanking you in advance…

@cosmas, you might try:

! _Text _Pause _SelLast _-ChangeLayer "text" _SelNone


Thank you @clement - it worked!

When I tried to use the same macro for creating a line - it didn’t work. I wonder if it has to do with the fact that a line requires a start point and end point. Is there something I would put after the Pause for a Line command?

You might put another _Pause after the first one.

Awesome, @clement. Like magic. Thank you!