-
1. Re: [CS3/4, JS] Apply feather using an object style
[Jongware] Oct 9, 2009 7:33 AM (in response to Jeremy bowmangraphics-DQuh1B)It's called "contentEffectsEnablingSettings".
I tried in vain to apply it to an object style of choice -- it appeared to fail, but further checking showed 'enableFeather' was already on. However, its box is not checked when I check in the Object style definition. Go figure. Back to you, George!
-
2. Re: [CS3/4, JS] Apply feather using an object style
Jeremy bowmangraphics-DQuh1B Oct 9, 2009 7:42 AM (in response to Jeremy bowmangraphics-DQuh1B)Sticking with CS4, I've also tried this:
myObjectStyle.objectEffectsEnablingSettings.objectStyleObjectEffectsCategorySettings.enabl eFeather = true;
(but I'm way out of my depth here, so it's like randomly pressing buttons!)
-
3. Re: [CS3/4, JS] Apply feather using an object style
[Jongware] Oct 9, 2009 8:28 AM (in response to Jeremy bowmangraphics-DQuh1B)Ah, sorry. In full:
myObjectStyle.contentEffectsEnablingSettings.enableFeather = true;
Both in '3 and '4. Check the OMV; the property type is ObjectStyleContentEffectsCategorySettings, and the name of that property is contentEffectsEnablingSettings. Remember: names aren't always "simply the object type w/lowercase". You can have, for example, a fillColor and a strokeColor: both names of properties, both of type "Swatch".
-
4. Re: [CS3/4, JS] Apply feather using an object style
Jeremy bowmangraphics-DQuh1B Oct 9, 2009 8:47 AM (in response to [Jongware])Yes, I had got that far by stumbling blindly through the undergrowth, but it still seems to leave feather switched off, according to the Object Styles Panel, and my fumbling attempts to adjust choke, noise, etc. do not seem to have any effect, so I think it really must be switched off. What gave you the impression that that line was successfully switching feather on?
Partly, my difficulties stem from the fact that I find the Extendscript Toolkit CS4 Object Model Viewer incomprehensible. I mean, take a look at the picture below. What is "Object Model Object Model Object Model Object Model", supposed to mean, and why is every version of InDesign labelled "CS4"?
-
5. Re: [CS3/4, JS] Apply feather using an object style
[Jongware] Oct 9, 2009 8:54 AM (in response to Jeremy bowmangraphics-DQuh1B)What gave you the impression that that line was successfully switching feather on?
Eh. It didn't error out on that line, as it did before ... (But no, I didn't got the impression it worked either. There must be some more parameters to be filled in, I guess.)
I find the Extendscript Toolkit CS4 Object Model Viewer incomprehensible
That's a Mac screenshot, isn't it? The Windows version is as incomprehensible and butt ugly to boot, so I made my own version, in HTML and CHM (Windows compressed help). You can't read CHM files natively, but even my plain HTML version is better.
-
6. Re: [CS3/4, JS] Apply feather using an object style
Jeremy bowmangraphics-DQuh1B Oct 9, 2009 9:02 AM (in response to [Jongware])Yes, that can be very helpful, it's just that I'm somewhat more familiar with the older CS3 ESTK OMV, and tend to go for it out of (bad) habit!
-
7. Re: [CS3/4, JS] Apply feather using an object style
[Jongware] Oct 9, 2009 3:19 PM (in response to Jeremy bowmangraphics-DQuh1B)The Windows version is amazingly useful, as it has lots and lots of hyperlinks (more than in the original data!) and an extensive index. The HTML version doesn't have that, of course (as it relies on your local browser).
The good news for Mac users is that any time now a Mac should arrive in the Jongware residence! (Hopefully no longer than a couple o'weeks.) I already know more of OSX's built-in Dictionary app than is healthy, for a Windows user that is, and I oughta be able to create a real Dictionary version at a whim. That should put the ESTK Help right there where it belongs, in your Quicklook dict list!
-
8. Re: [CS3/4, JS] Apply feather using an object style
AlexMaddox Oct 12, 2009 1:04 PM (in response to Jeremy bowmangraphics-DQuh1B)I've been having this same problem with the bevel and emboss effect and I just figured it out!!!!
Here is the code for my object style and the bevel/emboss is coming out perfectly. The key is the last line. You have to set the applied setting to true to get it to check the check box and actually apply the effect.
var myObjectStyle = myDocument.objectStyles.item("FamilyOfFrame");
try {
var myName = myObjectStyle.name;
}
catch (myError) {
myObjectStyle = myDocument.objectStyles.add({name:"FamilyOfFrame"});
}
myObjectStyle.strokeWeight = 0;
myObjectStyle.transparencySettings.bevelAndEmbossSettings.size = .09;
myObjectStyle.transparencySettings.bevelAndEmbossSettings.style = 2020618852;
myObjectStyle.transparencySettings.bevelAndEmbossSettings.applied = true;But as I'm learning.....not all the effects include the "applied" property....
Alex
-
9. Re: [CS3/4, JS] Apply feather using an object style
Jeremy bowmangraphics-DQuh1B Oct 12, 2009 3:11 PM (in response to AlexMaddox)Thanks!



