Beyond the Basics: Advanced Toggle Techniques for Powerful Spells

By admin

A magical wand toggle is a concept in wandlore and magical practice that involves the use of a specific gesture or motion to activate or deactivate the powers of a wand. In many magical traditions, the wand is seen as a conduit for a witch or wizard's magical energy, and the toggle gesture serves as a way to focus and direct that energy. The exact nature of the toggle gesture can vary depending on the individual and their personal magical style. Some witches and wizards prefer a simple flick of the wrist or a wave of the wand, while others may incorporate more complex movements or specific hand positions. The important thing is that the toggle gesture is deliberate and intentional, effectively signaling to the wand and the magical energies it contains that the witch or wizard is ready to either activate or deactivate its powers. The act of toggling a wand can have a transformative effect on a witch or wizard's magical abilities.


I think Mike has been doing some work on this type of code as well.

getBoolean stringIDToTypeID contiguous ; return contiguous; else return undefined; ; function selectTool tool var desc new ActionDescriptor ; var ref new ActionReference ; ref. The band s music has been used for campaigns of countless important brands Victoria s Secret Superbowl Ad , Gucci, Zara, Ralph Lauren, Polo, Vogue, T-Mobile.

Magical wands toggle

The act of toggling a wand can have a transformative effect on a witch or wizard's magical abilities. When the wand is toggled on, it is said to be "awakened," and its powers are at the ready. This can amplify a witch or wizard's ability to focus and direct their magical energy, making spells and other magical feats more potent and effective.

PS-SCRIPTS.COM

When using the magic wand tool, I would like to be able to switch between contiguous and non contiguous using a keyboard shortcut. Now as it appears to be not to set a keyboard shortcut I need to be able turn off when its on and on when its off, so that once that script is made I can select a hot key to switch it on and off.

pfaffenbichler

Magic Wand, Contiguous toggle button?

Post by pfaffenbichler » Sat Oct 06, 2012 9:14 am

Interesting problem.
With some code by Mike and Paul it is no problem to get the currentToolOptions but I have so far failed to feed them back (in unedited and edited form) to the tool.

txuku

Magic Wand, Contiguous toggle button?

Post by txuku » Sat Oct 06, 2012 5:36 pm

I create a tool preset - Outil Baguette magique 1 :


And I call it in the script :

Code: Select all//Outil "Baguette magique" ou bien "Selection rapide"
// =======================================================
var idslct = charIDToTypeID( "slct" );
var desc29 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref25 = new ActionReference();
var idmagicWandTool = stringIDToTypeID( "magicWandTool" );
ref25.putClass( idmagicWandTool );
desc29.putReference( idnull, ref25 );
var iddontRecord = stringIDToTypeID( "dontRecord" );
desc29.putBoolean( iddontRecord, true );
var idforceNotify = stringIDToTypeID( "forceNotify" );
desc29.putBoolean( idforceNotify, true );
executeAction( idslct, desc29, DialogModes.NO );

//L outil predefini que j ai cree avec "Baguette magique"
// =======================================================
var idslct = charIDToTypeID( "slct" );
var desc30 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref26 = new ActionReference();
var idtoolPreset = stringIDToTypeID( "toolPreset" );
ref26.putName( idtoolPreset, "Outil Baguette magique 1" );//appel de mon outil
desc30.putReference( idnull, ref26 );
executeAction( idslct, desc30, DialogModes.NO );

Paul MR

Magic Wand, Contiguous toggle button?

Post by Paul MR » Sat Oct 06, 2012 6:43 pm

To toggle you could create two presets, one for contiguous and one for noncontiguous and then put the preset names in the switch statement so it can then toggle.

Code: Select allswitch(isMagicWandContiguous()) case true : selectToolPreset('Your preset name here'); break;
case false : selectToolPreset('Your preset name here'); break;
case undefined : selectTool('magicWandTool'); break;
>;
function isMagicWandContiguous() var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
var desc = executeActionGet(ref);
var cTool = typeIDToStringID(desc.getEnumerationType(stringIDToTypeID('tool')));
if(cTool == 'magicWandTool') var contiguous = desc.getObjectValue(stringIDToTypeID('currentToolOptions')).getBoolean (stringIDToTypeID('contiguous'));
return contiguous;
>else return undefined;
>
>;
function selectTool(tool) <
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putClass( app.stringIDToTypeID(tool) );
desc.putReference( app.charIDToTypeID('null'), ref );
executeAction( app.charIDToTypeID('slct'), desc, DialogModes.NO );
>;
function selectToolPreset(TOOL) <
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putName( stringIDToTypeID('toolPreset'),TOOL );
desc.putReference( charIDToTypeID('null'), ref );
executeAction( charIDToTypeID('slct'), desc, DialogModes.NO );
>;

pfaffenbichler

Magic Wand, Contiguous toggle button?

Post by pfaffenbichler » Sun Oct 07, 2012 7:46 am

But will presets honor the current Tolerance-setting?

Do you have an idea how to set the currentToolOptions with Action Manager code? I’m stumped so far.

Edit: Did some searching and in an older thread Mike voiced the suspicion that currentToolOptions might be read only, so that would mean that approach is not feasible anyway.

Paul MR

Magic Wand, Contiguous toggle button?

Post by Paul MR » Sun Oct 07, 2012 10:31 am

It should be posible to just toggle the feature.. see
bb/viewtopic.php?f=9&t=4903&p=23208#p23208
This didn't work om my windows system though.

I think Mike has been doing some work on this type of code as well.

Mike Hale

Magic Wand, Contiguous toggle button?

Post by Mike Hale » Sun Oct 07, 2012 7:45 pm

Paul MR wrote:I think Mike has been doing some work on this type of code as well.
Yes, I have spent a lot of time trying to find a way to set tool options without using presets. Nothing I have tried or seen posted anywhere works.

I had hoped that when John Nack suggested task based panels a few years ago that Photoshop would add support for working with tool options. They have added being able to get the current tool options( at least I don't remember that key in the app descriptor in earlier versions ). Perhaps some day we will also be able to set those options.

But until that day comes I really think that presets are the only work-around we have.

pfaffenbichler

Magic Wand, Contiguous toggle button?

Post by pfaffenbichler » Mon Oct 08, 2012 6:13 am

Thanks for the feedback on this. Mcquiff

Magic Wand, Contiguous toggle button?

Post by Mcquiff » Mon Oct 08, 2012 11:05 am

Thanks for all the input below, I gave the code below a go but that didn't seam to work for me.

Looks like I might have to stick to using the tick box.

Matt
Paul MR wrote:To toggle you could create two presets, one for contiguous and one for noncontiguous and then put the preset names in the switch statement so it can then toggle.

Code: Select allswitch(isMagicWandContiguous()) case true : selectToolPreset('Your preset name here'); break;
case false : selectToolPreset('Your preset name here'); break;
case undefined : selectTool('magicWandTool'); break;
>;
function isMagicWandContiguous() var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
var desc = executeActionGet(ref);
var cTool = typeIDToStringID(desc.getEnumerationType(stringIDToTypeID('tool')));
if(cTool == 'magicWandTool') var contiguous = desc.getObjectValue(stringIDToTypeID('currentToolOptions')).getBoolean (stringIDToTypeID('contiguous'));
return contiguous;
>else return undefined;
>
>;
function selectTool(tool) <
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putClass( app.stringIDToTypeID(tool) );
desc.putReference( app.charIDToTypeID('null'), ref );
executeAction( app.charIDToTypeID('slct'), desc, DialogModes.NO );
>;
function selectToolPreset(TOOL) <
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putName( stringIDToTypeID('toolPreset'),TOOL );
desc.putReference( charIDToTypeID('null'), ref );
executeAction( charIDToTypeID('slct'), desc, DialogModes.NO );
>;

10 posts • Page 1 of 1 Jump to
  • Photoshop Scripting
  • ↳ Photoshop Scripting - General Discussion
  • ↳ Help Me
  • ↳ Automation & Image Workflow
  • ↳ Photoshop Scripting: Code Snippets
  • ↳ Photoshop Scripting: Reference, Documentation, & Tutorials
  • ↳ Photoshop Scripts: Beta Testing
  • ↳ xtools
  • Photoshop Scripts & Photoshop Scripting Services
  • ↳ Photoshop Scripts
  • ↳ Photoshop Scripting Services
  • Adobe Bridge Scripting
  • ↳ Adobe Bridge Scripting: General Discussion
  • ↳ Adobe Bridge Scripts
  • ↳ Adobe Bridge: Bugs, Anomalies, Documentation Errors
  • Flex, Flash, or CS SDK/HTML5 panels
  • ↳ Flex, Flash & CS SDK: General Discussion
  • ↳ Flex, Flash & CS SDK Scripts
  • ↳ Flex, Flash & CS SDK Bugs and Anomalies
  • Bugs, Anomalies, Documentation Errors
  • ↳ Photoshop Scripting Bugs and Anomalies
  • ↳ Photoshop Bugs and Anomalies
  • ↳ Photoshop Scripting Bug Repository
  • Photoshop Scripting Community Site Management
  • ↳ Upload
  • ↳ Questions, Suggestions and Feedback
  • HomeBoard index
  • All times are UTC
  • Policies

Adobe® and Photoshop® are registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.

© 2023 PS-SCRIPTS.COM - TBIT DESIGN - All Rights Reserved Worldwide

In Memory of Mike Hale

Powered by phpBB® Forum Software © phpBB Limited

It should be posible to just toggle the feature.. see
bb/viewtopic.php?f=9&t=4903&p=23208#p23208
This didn't work om my windows system though.
Magical wands toggle

Conversely, toggling a wand off serves as a way to conserve and control magical energy. This can be particularly useful in situations where a witch or wizard wants to prevent accidental or unintentional magic from occurring. Toggling off a wand effectively puts its powers on standby, allowing the witch or wizard to exercise more control over when and how their magic is used. While the toggle gesture and its effects are primarily associated with wands, similar concepts can also be found in other magical tools and practices. For example, some witches and wizards believe in the importance of clearing and cleansing crystals or other magical objects before use, which can be seen as a kind of toggle gesture that removes any lingering energies and prepares the object for magical work. Overall, the concept of a magical wand toggle highlights the importance of intention and focus in magical practice. By consciously activating or deactivating the powers of their wands, witches and wizards are able to harness and direct their magical energy more effectively, enhancing their ability to perform spells and other magical feats..

Reviews for "An Enchanting Journey: Exploring Different Types of Toggle Wands"

- John - 2 stars - I was really disappointed with "Magical wands toggle". The game had so much potential, but it fell short in a lot of areas. The controls were clunky and unresponsive, making it difficult to play. The graphics were also subpar, with poor quality textures and animations. Overall, I was not impressed with this game and would not recommend it to others.
- Sarah - 2 stars - I had high hopes for "Magical wands toggle", but it ended up being a major letdown. The gameplay was repetitive and lacked depth. There were very limited options for customization, making it feel monotonous after a short while. Additionally, the game had a lot of bugs and glitches that often caused it to crash. Overall, I was disappointed with this game and would not play it again.
- Michael - 1 star - "Magical wands toggle" was a complete waste of my time. The concept sounded interesting, but the execution was terrible. The game was filled with intrusive ads that constantly interrupted the gameplay. The in-app purchases were also excessive and forced, making it feel like a money-grabbing scheme. I regret downloading this game and would not recommend it to anyone.
- Emma - 2 stars - As a fan of magical games, I was excited to try "Magical wands toggle". However, it fell short of my expectations. The game lacked depth and variety, quickly becoming repetitive and boring. The graphics were also lackluster, with outdated visuals that looked like they belong to a game from a decade ago. Overall, I was disappointed with this game and would not recommend it to others.
- Mark - 3 stars - "Magical wands toggle" had potential, but it missed the mark for me. The gameplay mechanics were confusing and poorly explained, making it difficult to fully enjoy the game. The controls were also unintuitive, leading to frustration and difficulty progressing. Additionally, the game lacked a cohesive storyline, leaving me feeling disconnected and uninterested. While it had some redeeming qualities, overall, I was not impressed with this game.

The Toggle Revolution: How Wand Toggles Are Reshaping the World of Magic

From Novice to Master: Perfecting Your Toggle Wand Skills