Search found 4 matches

by timobee
Thu Nov 19, 2020 6:00 pm
Forum: Help Me
Topic: Check if grid, guides are visible
Replies: 1
Views: 1469

Check if grid, guides are visible

How would I check are grids/guides visible? I would also need to know if guides are locked or not. I need to relay this information back to my CEP panel UI state. It's enough that it would be compatible with cc18 and newer. This code always returns true even if guides are hidden (cc21) var r = new A...
by timobee
Wed Nov 18, 2020 9:47 am
Forum: Help Me
Topic: CEP How do i open Preferences -> Guides, Grid & Slices window
Replies: 5
Views: 2710

Re: CEP How do i open Preferences -> Guides, Grid & Slices window

That was for CS6, for CC you need one code line more: sTT = stringIDToTypeID; (ref = new ActionReference()).putProperty(sTT('property'), gP = sTT('guidesPrefs')) ref.putClass(sTT('application')), (dsc = new ActionDescriptor()).putReference(sTT('null'), ref); dsc.putObject(sTT('to'), gP, new ActionD...
by timobee
Wed Nov 18, 2020 8:26 am
Forum: Help Me
Topic: CEP How do i open Preferences -> Guides, Grid & Slices window
Replies: 5
Views: 2710

Re: CEP How do i open Preferences -> Guides, Grid & Slices window

sTT = stringIDToTypeID, dsc = new ActionDescriptor(); (ref = new ActionReference()) .putProperty(sTT('property'), sTT('guidesPrefs')), ref.putClass(sTT('application')) dsc.putReference(sTT('null'), ref), executeAction(sTT('set'), dsc, DialogModes.ALL) Photoshop gives an error: Could not complete th...
by timobee
Tue Nov 17, 2020 11:14 pm
Forum: Help Me
Topic: CEP How do i open Preferences -> Guides, Grid & Slices window
Replies: 5
Views: 2710

CEP How do i open Preferences -> Guides, Grid & Slices window

I'm trying to open the Preferences -> Guides, Grid & Slices settings window when a user clicks on my CEP extension button. I can't figure it out and I can't find any references on how this could be achieved. I managed to find a post taht opens the Print settings executeAction(charIDToTypeID(&quo...