Jump to content

HELP: How to draft the macro script if layers contain ''_" & "-"


vernonlee

Recommended Posts

I am using the particular macro to isolate a particular layer but i think ''_" & "-" is giving it problems.

 

This is the layer i need to isolate

 

"XXXXX$0$A-_ANOTREVN_E-"

 

There are other layers similar where XXXXX is the variable, which i want to isolate hence it use * as a wildcard

 

But there is also another layer "A-_ANOTREVN_E-" where i want it to be excluded from the script.

 

 

How then should I draft it?

 

this is the script i use:-

 

^C^C-LA;off;*;y;on;*$0$A-_ANOTREVN_E-,*DIS*;^C^C_zoom;e;

Edited by vernonlee
Link to comment
Share on other sites

Commands used in macro's can give unexpected results when you try and enter text values, it works from within a script file (for other commands scripts can be a problem) sometimes it's worth trying both ways. If you place the script in the file search path you can run it from a macro, or you need to include the full path (but again that can cause problems).

Try this as a script

layer
off
*
y
on
*$0$A-_ANOTREVN_E-,*DIS*

_zoom
e

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...