Using macro in editor?

Just wondering if anyone’s got an easy way to apply a property change to a large number of counters in the editor… Basically, I’ve got vmod in which there are hundreds (thousands?) of pieces with a flipped side (an unnamed layer–seems to default to the jpg, different from one counter to another). I want a global button to flip these back to the front, so I’m setting up one as mentioned here:

vassalengine.org/wiki/How_to … l_counters

The issue is that the layers all need the same name, so to do it by hand, I go into each counter and then the properties of the layer and name the layer “Fatigued”. Is there a way to run a macro to do this? Alternatively, I think I found where the name shows up in the build file, but I’m hesitant to do a replace all there. Has anyone tried that?

I have edited the buildFile and not had any problems there, however be sure
to save a copy of your module first just in case you break something. For
what you are trying to do, I suggest adding the traits to a prototype and
adding the prototype to the counters (this will ease future enhancements).
To see what the change looks like add the prototype manually to one counter
and do a text-diff of the buildfiles. Be careful to note that tabs are used
in places, and can look like spaces if you are not careful.

Pieter

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of kpilkington
Sent: Wednesday, February 16, 2011 1:11 PM
To: messages@vassalengine.org
Subject: [messages] [Module Design] Using macro in editor?

Just wondering if anyone’s got an easy way to apply a property change to
a large number of counters in the editor… Basically, I’ve got vmod in
which there are hundreds (thousands?) of pieces with a flipped side (an
unnamed layer–seems to default to the jpg, different from one counter
to another). I want a global button to flip these back to the front, so
I’m setting up one as mentioned here:

vassalengine.org/wiki/How_to … l_counters[1]

The issue is that the layers all need the same name, so to do it by
hand, I go into each counter and then the properties of the layer and
name the layer “Fatigued”. Is there a way to run a macro to do this?
Alternatively, I think I found where the name shows up in the build
file, but I’m hesitant to do a replace all there. Has anyone tried
that?

[1]
vassalengine.org/wiki/How_to … o_reset_a_
layer_on_all_counters


Read this topic online here:
https://forum.vassalengine.org/t/using-macro-in-editor/3665/1

You can always use AutoHotKey to automate key presses if you are desperate.