How can I catch the relative percentage after applied transformation?
This is an example of simple selection created and transformed (to increase or decrease and, in this case it never run because I don't want).
At this moment I have apply the transformation function, I need to catch this value (see feature below)
My goal is to eventually use a lot with several images that will have the same percentage as the first image.
var doc = app.activeDocument;
var selRegion = Array (Array (100, 100),
Array (400, 100),
Array (400, 400),
Table (100, 400)
Table (100, 100));
doc. Selection.Select (selRegion);
TransformSelection();
After transformation of the selection, it cultures:
doc. Crop (doc.) Selection.Bounds);
function
function TransformSelection() {}
var idTrnf = charIDToTypeID ("Trnf");
var desc19 = new ActionDescriptor();
var idnull = charIDToTypeID ("null");
var ref11 = new ActionReference();
var idChnl = charIDToTypeID ('channel');
var idfsel = charIDToTypeID ("FSC");
Ref11.putProperty (idChnl, idfsel);
desc19.putReference (idnull, ref11);
var idFTcs = charIDToTypeID ("CIE");
var idQCSt = charIDToTypeID ("QCSt");
var idQcsa = charIDToTypeID ("Qcsa");
desc19.putEnumerated (idFTcs, idQCSt, idQcsa);
var idOfst = charIDToTypeID ("Ofst");
var desc20 = new ActionDescriptor();
var idHrzn = charIDToTypeID ("Hrzn");
var idPxl = charIDToTypeID ("#Pxl");
desc20.putUnitDouble (idHrzn, idPxl, 0.000000);
var idVrtc = charIDToTypeID ("Vrtc");
var idPxl = charIDToTypeID ("#Pxl");
desc20.putUnitDouble (idVrtc, idPxl, 0.000000);
var idOfst = charIDToTypeID ("Ofst");
desc19.putObject (idOfst, idOfst, desc20);
var idWdth = charIDToTypeID ("Wdth");
var idPrc = charIDToTypeID ("#Prc");
desc19.putUnitDouble (idWdth, idPrc, 100.000000); 100% is the percentage of width before turning
var idHght = charIDToTypeID ("Hght");
var idPrc = charIDToTypeID ("#Prc");
desc19.putUnitDouble (idHght, idPrc, 100.000000); / / 100% is the percentage of height before turning
var idLnkd = charIDToTypeID ("Lnkd");
desc19.putBoolean (idLnkd, true);
avoid error if unprocessed has changed:
try {}
executeAction (idTrnf, desc19, DialogModes.ALL);
Currently, when double click to user or press on enter to apply the TransformSelection.
I need to capture/playback percentage after transformation (in my case, I use the width = height allways so possible to read one of them)
} catch (e) {}
}
App.executeAction returns a descriptor of Action with the parameters used. So all you have to do is assign the template to a variable, then get the settings that you must train the returned descriptor.
var / / desc = executeAction (idTrnf, desc19, DialogModes.ALL);
var heightPercent = desc.getUnitDoubleValue (idHght);
var widthPercent = desc.getUnitDoubleValue (idWdth);
Tags: Photoshop
Similar Questions
-
How can I make the computer sleep after 5 minutes of inactivity on the logon screen?
Original title: How to sleep in the login screen?
How can I make the computer sleep after 5 minutes of inactivity on the logon screen? Currently, on the login screen, white screen, but the computer is still running. Sleeping would save a lot of energy because the computer is used most of the time.
Hi Phil.Ganchev,Using a laptop or a desktop computer?The reason for this question is, if you have a plugged AC adapter you must set power accordingly as opposed to laptop settings battery operated.I suggest you head over to the power settings and create your own power management.a. power by clicking on the Start button, open the Options click on the Control Panel, clicking system and security, and then clicking Power Options.
(b) according to the plan you want to change, click on change plan settings.
c. on the parameters of change in the plan page, choose "Put the computer to sleep" that you want to use when your computer is running on battery (if applicable) and when it is plugged.(Change in 5 minutes for the batteries and sector)Reference:Power plans: frequently asked questions
Aziz Nadeem - Microsoft Support[If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]
-
How can I recover the Photoshop 8 after system recovery? [was: bkupa]
How can I recover the Photoshop 8 after system recovery
Reinstall it properly:
Direct download links for Adobe software
Mylenium
-
How can I get the original software after I reinstalled the window
I want to reinstall windows on my laptop, I just want to know how can I get the software provided with this laptop.
What happened to reinstall window8
Your laptops support page will be a few, but before installing Windows 8 you did a set of recovery discs so you can return to Windows 7?
We can get the HP for a set of recovery discs and Once you're back, there is a file on the 'C' drive named SwSetup
has little almost all software pre-installed that comes with the machine when you were at 7 W.
Your statement is not clear enough, I hope that I understood it.
-
How can I get the new position before applying the rotation in javafx?
I had this class but when I print the line.endXProperty () .get () when the low is to apply the property does not change the value
Can how I get the updated value after processing?
@Override public void start(Stage stage) throws Exception {
root = new Group(); stage.setScene(new Scene(root));
line = new Line(); line.setStrokeWidth(5.0);
line.setStroke(Color.BLACK);
line.setStartX(10.0f);
line.setStartY(80.0f);
line.setEndX(10.0f);
line.setEndY(10.0f);
System.out.println("line.getEndX()="+line.endXProperty().get());
rotate = new Rotate(90, 10.0f, 80.0f);
line.getTransforms().add(rotate);
System.out.println("line.getEndX()="+line.endXProperty().get());
root.getChildren().add(line); stage.show();
}
You can transform the coordinates by the transformations of the node in this way:
Point2D transformedEnd = line.localToParent(line.getEndX(), line.getEndY());
If you want to turn only by the rotation, you can do this way:
Point2D transformedEnd = rotate.transform(line.getEndX(), line.getEndY());
-
Shooting in RAW + jpeg? How can I access the RAW files after download?
I have a Canon 70 d. I've been shooting in RAW + jpeg but only see jpeg files after downloading? How to access RAW files? I have not yet PS/LR.
You can use the DPP software provided with the camera.
-
I followed the instructions to install the trial software 11 elements. I received a no. series and was never asked to enter the number. What, when and how should I do it now?
It was converted to a full version after you have entered the serial number
Hi kjbplumb,
When you launch the software it will prompt you to enter the serial number.
Otherwise, you can run the application and go to the 'Help' menu at the top and select 'enable '. The activation screen came to get the serial number on your part.
Enter the serial number and the trial is converted to a full version.
-
How can I repair the BCD boot after a recovery on my W1-810 error
Hi all
I have a Tablet W1-810 for use with Win10. After a few months of its use, the system is more able to start. Only this message appears on a blue screen:
Recovery
Your PC needs to be repaired
The Boot Configuration data file is missing some information required.
File: \BCD
Error code: 0xc0000034I found that this error may occur sometimes, and what is need to do to fix it (some commands in the shell of the collection). But unfortunately the Tablet has a single usb port, and I wasn't able to connect also a keyboard while I'm starting on a USB key. Also a double connector OTG with separate power supply did not help, because it seems that then the boot process has not worked from the USB. Unfortunately in the recovery of Windows (win PE or Win RE) is not avalible OnScreenKeyboard, I've not found so far a way to solve this error of BCD.
I hope someone here has an idea for that
BRMP
The most simple solution is to plug in a USB hub you can do multiple devices on a port. You can't really get into recovery without the recovery image options, and requires the USB connect. At this point in the boot sequence, there is no bluetooth stack and the thing of the BIOS to use the volume buttons to scroll a list has been disabled. Something like this might be overkill, but the price is reasonable. If you think you might want to connect an external HD or DVD at some point, grab one with its own power supply instead of one unpowered. It is not too much more.
-
I need to know how I can get the correct download for my Mac computer?
Contact support - for the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...
Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache. If it fails to connect, try to use another browser.
Get help from cat with orders, refunds and exchanges (non - CC)
http://helpx.Adobe.com/x-productkb/global/service-b.html ( http://adobe.ly/1d3k3a5 )
-
How can I change the language in After effects cc2015 from french to English?
In after effects cc2014 we can chage language by editing a text file in the language folder ATM that was use full when I want to share something of English collaborator.
-
How can I activate the zoom pinch after calling preventDefault();?
I created a chart in the edge animate which should work correctly on both the iPad and desktop computers. The html file that I create will be then fired in an iframe on a Web site as part of a larger page. I've included touch events and mouse for interactive elements, and most of the time it works fine on the desktop and iPads - except for when it is not.
I found in my tests that sometimes a mouseOver/mouseEnter or even a click event fires despite my use of the e.preventDefault (); in my events touchStart or touchstart (I tried both). The behavior is not coherent enough for me to determine why this is happening so I have a solution for the moment - I've added preventDefault(); to touchStart in document.compositionReady:
$(document) .one ('touchend', Function {}
e.preventDefault ();
});
I understand that this is not ideal, but with deadlines and all that noise, it's the best solution I found to this day.
It works perfectly, but as expected, it also disables the pinch zoom and pan. I don't care panoramic, but the zoom is necessary because the data points on the graph are on the small side. Can someone help me with the code, I would need to enable pinch zoom after call preventDefault()?: Or the conditional statement that would go preventDefault(); on a regular/single touch but not a pinch of touch zoom?
I use v2014.1.1 to edge host CC on a Windows 7 machine, if it is useful.
I cannot share my code because of the confidentiality agreement to my company, although if necessary I can probably model a simple sample - I'm hoping someone out there with more experience in the development of contact devices can point me in the right direction.
Thank you!!
Melanie
This refurbished - Box dots.zip version handles the events of iOS. See private message.
Tested: iPad (iOS 8.1.3) and MacBook (Mac OS 10.10.2) and Safari 8.0.3
I will post a final version to improve the change of color and the text box.
-
How can I enable the Task Manager after recovering from an attack of Win32.GEMA
Hello
I am running Windows XP SP3.
I have recently had an attack of the Win32.GEMA Trojan horse. Details of it are here: http://www.microsoft.com/security/portal/Threat/Encyclopedia/Entry.aspx?Name=Trojan%3AWin32%2FRansirac.G
I recovered my system using:
AVG Rescue Disk
Kaspersky Rescue Disk
BitDefender Rescue Disk
Scan of MalwareBytes
McAffee analysis
Hitman Pro Scan
Spybot scan
Eusing Registry Cleaner
CCleaner
Overkill maybe? But it worked... Up to now
Apparently, the Trojan horse disables the Task Manager and that is I'm having bad to restore.
I followed the advice in this article from Microsoft - http://support.microsoft.com/kb/913623/ - but when I followed this part
To set the DisableTaskMgr registry entry to 0 for a specific user, follow these steps:
- Shut down the computer.
- Log the computer by using a user account with administrator permissions.
- Click Start, click run, type regedit in the Open box, and then click OK.
- In the left pane, click the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
- In the right pane, double-click DisableTaskMgr.
- In the value data box, type 0, and then click OK.
- On the file menu, click exit.
- Restart the computer.
N ° 5 says that disable TaskMgr should appear in the right pane, but there is no entry to disable TaskMgr. All it is an icon of the small 'ab' (the default) beside it, then, REG_SZ.
Then I tried to follow this part of the article from Microsoft
To set the DisableTaskMgr registry entry to 0 for all users, follow these steps:
- Shut down the computer.
- Log the computer by using a user account with administrator permissions.
- Click Start, click run, type regedit in the Open box, and then click OK.
- In the left pane, click the following registry subkey:
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem\\\
- In the right pane, double-click DisableTaskMgr.
- In the value data box, type 0, and then click OK.
- On the file menu, click exit.
- Restart the computer.
This time off TaskMgr was in the right pane - this time with a little "ohho? icon followed REG_DWORD
I tried to create a new entry for the current user by copying one for all users, but not joy.
Any suggestions?
CTRL + Alt + Del does not receive any reaction whatsoever, no Ctrl + Shift + Esc or click with the right button on the barv task and selecting the Task Manager
Thank you in anticipation
These KB articles are for a different problem when you receive these messages when you run the Task Manager...
Some malicious software is aware of the methods you're most likely to use to find and remove it (Task Manager, System Restore, command prompt, Internet, Google, etc.)
The malware does not allows you to use things like the Task Manager to find and remove, so it prevents them from becoming a process running on the system and the process will not start or the process will be completed as soon as it is launched.
The malware is happier when he let you think you need to use system restore, a repair install or reinstall your XP from scratch to fix your system when none of this is necessary.
You can fool the malware (and then fix it).
Assuming that your Windows is installed on your drive C, using Windows Explorer, navigate to the folder c:\windows\system32 and locate taskmgr.exe.
Copy the taskmgr.exe file and rename the copy something malicious software will not recognize. I like to call the copy:
c:\windows\system32\jose.exe
Double-click on jose.exe and see if the Windows Task Manager window opens now.
The problem is the malware won't let the taskmgr.exe a running process, but he does not know jose.exe as a running process in order to thwart you all (I have a feeling that he will well a day on jose.exe).
Will not 'fix' your task manager, but at least you will know whether or not the Task Manager mechanism works (taskmgr.exe still not start properly). If you try to remove some malware and the need to use the Task Manager, you can simply launch jose.exe (double-click) instead, but will be still infected your system.
-
How can I catch the focus event context menu?
I would like to indicate when the development of a context menu is placed in the order of the day, to make the feature: from the first to the last menu item when the focus moves in the direction upwards and from the last to the first element in the direction down. Is this possible? I can't extend to the ContextMenu class cause that's final. Is there another solution? Thank you!
The only solution is to implement your own mechanism of menu from scratch. And declare your own interface, say MenuItemSelectionChangedListener.
Listeners will record on your menu and receive notifications when the focus of the menu has been changed.
Unfortunately, there is no standard functionality in the RIM API that does this.
-
How can I get the toolbar reopen after that he disappeared without reason?
Used programs for example. Google chrome, microsoft word, and then all of a sudden the taskbar disappears and does not return. is there a way I can get the taskbar back and be back to normal without shutting down my computer?
What happens if you press F11? -
How can I recover the schema APEX_040200 after a fall 'without backup?
Hello my dear,
I met a disaster. I dropped the APEX_040200 schema without any backup.
Can I get it back and get my applications and workspaces?
I hope that the answer is 'yes '.
Please, give me answer quickly.
Mustafa Ezzat.
Hello
It is not possible without backup or if your database is not in log mode archive
Kind regards
Jari
Maybe you are looking for
-
If Firefox blocks a page, I can't click on the allow button appears because the pointer of the mouse is disabled...
-
Cannot receive faxes "an error has occurred when receiving the fax"
Origginal title: fax problem Windows xp We had no problems on a windows xp computer that allows us to receive faxes until moving this week. I reloaded all updates and rebooted several times and the phone company sees no problem of line, but we conti
-
I run XP Home Edition and the mouse keeps freezing in the upper left corner of han
Mouse freezes in the top left corner on xp family, he does not move for several seconds, then starts to work again until I've got moves to the upper left corner. Is it a driver problem or regestry? Thank you
-
Interference WRT400N Wireless Router problem.
Hello! I would be grateful if someone can help me with my problem. I live a mile on a mountain. When a vehicle comes to the top of the mountain at a certain point, we get interference which causes the computer programs and the internet to freeze u
-
Hi all Please help me adapt my machine full screen virtual hpar-v usieng, I tried all view-> progressive even fullscreen is not occupied any screen and having some space left and right are busy.