Copy link to clipboard
Copied
Looking for a way to possibly assign a keyboard shortcut to toggle "Aligned" on/off when I'm using my Clone Stamp. I've scoured the menus and did an exhaustive search of the shortcuts and menu options but maybe I've missed it? ...or it's not possible?
If it's not possible, no big deal. My solution to the problem was to create a series of Brush Presets with all the tool info in them and that's fine...but I use a 32-button device for hotkeys/macros/multiple actions that speeds up my workflow like mad. It'd be great to be able to hit the toggle button with my pinky while continuing to clone uninterrupted.
If anyone has any insight, I'd appreciate it!
Currently using 23.3.1 and Beta 23.4.0
Please try this one …
// thanks to Oleksii Hirlin;
// switch aligned-setting for clone stamp tool;
// 2022, use it at your own risk;
if (getCurrentTool() == "cloneStampTool") {
var ref = new ActionReference();
ref.putProperty(stringIDToTypeID('property'), stringIDToTypeID("currentToolOptions"));
ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
var applicationDesc = executeActionGet(ref);
var currentToolS = applicationDesc.getObjectValue(stringIDToTyp
...
Copy link to clipboard
Copied
Off the top of your head, do you have any suggestions in terms of use cases? I'm scouring that message board right now...hadn't heard of XMBC until you. Thanks in advance. 🙂
Copy link to clipboard
Copied
Windows recognises left, right, middle (incl. 2 sides tilt and 2 directions roll), 4th and 5th keys. XMBC lets configure them by using with simulated keys so rows of sequent commands. You can also make delayed clicks, that is a click will do something else than half second click or else longer press. Beside 9 kind of clicks, for ex. pressed, released, sticky you can combine few buttons to trigger another action, like held left with clicked right or and vice versa. You may also use short command to execute .jsx snippet I provided, so without taking your pinky from mouse. There is other stuff, like mouse layers to have the same button related to many functions, depending how many layers you programmed etc
Copy link to clipboard
Copied
That's incredible...especially being able to execute .jsx snippets. Looking forward to finding out how far you can push it. Thanks for introducing me to it.
Copy link to clipboard
Copied
Hi, @Peter James Zielinski your workflow does deserve to be hightlighted. did you write a blog post about it, or record a video? It might be useful to many other users than hidden in this thread.
Copy link to clipboard
Copied
Winner winner chicken dinner!
This did it. I'm not sure what differed from the original (went back and tried and it still doesn't work). But the above version instantly worked...was able to record it into an Action and then turn it into a one-button press on my Stream Deck.
Thank you so much for your work and all your help. Beyond appreciated. 🙂
Sorry, my original approach was not fully thought through.
The currentToolOptions for the Clone Stamp Tool are not static but their length (and therefore the index of the »Aligned«-setting) also depends on the Brush Settings.
Glad it worked out after all …
Copy link to clipboard
Copied
@c.pfaffenbichler – Great job!
Copy link to clipboard
Copied
currentTool = 'cloneStampTool'
cTT = charIDToTypeID, sTT = stringIDToTypeID;
(r1 = new ActionReference()).putProperty(sTT('property'), t = sTT('tool'))
r1.putClass(sTT('application')); typeIDToStringID((d1 = executeActionGet(r1))
.getEnumerationType(t))&&((r2=new ActionReference()).putClass(sTT(currentTool)),
cto = (d2 = executeActionGet(r1)).getObjectValue(sTT('currentToolOptions')),
d2.putBoolean(algn = cTT('StmA'), !cto.getBoolean(algn)),
d1.putReference(nul = sTT('null'), r2),
d1.putObject(sTT('to'), nul, d2),
executeAction(sTT('set'), d1))
Copy link to clipboard
Copied
An even quicker response when switching between toggle states. Thanks for this!