[CS3/4, JS] Apply the pen with an object style

I was hoping to apply transparency via an object style effects using this:

myObjectStyle.objectStyleContentEffectsCategorySettings.enableFeather = true;

But "object does not support the property or method...". "etc.

I would be very grateful if someone could point me in the right direction.

Thanks in advance - Jeremy

I had this same problem with the bevel and emboss effect and I just thought about it!

Here is the code for my style of object and bevel/stamping out perfectly.  The key is the last line.  You must set the parameter applied to true so he could check the box and actually apply the effect.

var myObjectStyle = myDocument.objectStyles.item ("FamilyOfFrame");
try {}
var myObjectStyle.name = MyName;
}
{} catch (MonErreur)
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 learn... not all effects include the "applied"... property

Alex

Tags: InDesign

Similar Questions

  • How can I export the schema with all objects and a few tables without data

    Hi all

    Verion 10g EA.
    I export the schema with all objects but I need ignored some of the data in the table.

    There is a table 4 people gave huge, we need not to export data from tables but structure must export.


    Thank you
    Nr

    You can do this with a single command.  Run your export as usual and add the query parameters for 4 tables you want all the lines:

    expdp... query = schema1.table1: "where rownum = 0" query = schema2.table2: 'where rownum = 0'...

    It is best to place the query parameters in a parameter file if you don't have to worry about escaping special characters of the OS.

    Dean

  • Install RAC 11 GR 2 and apply the patches with the new Option of software updates YES

    Anyone tried the installation with the new Option of software updates?

    I'm going to install grid RAC 11 GR 2 and I intend to do the following steps:
    (1) install the Oracle Grid Infrastructure 11.2.0.2 patch group
    (2) make all configurations with YES
    (3) create ASM disks
    (4) install Oracle Database 11.2.0.2 software only
    (5) apply recommended patches 11.2.0.2.2 Oracle (12311357) and 12431716. (Ref. MOS doc [756671.1 ID])
    (6) create the RAC (advanced option) with DBCA database

    With these steps:
    Grid and ASM disks would be configured without the recommended patches, but the database will be created with applied patches.

    I would not do a "Software only" install IM and then apply the patches because later I would have to manually do all the configuration steps.

    If I use the Option of YES software updates to apply patches, YES makes the adjustment, and then I would set up the GRID with YES?

    Quote from Oracle® Setup Guide Network Infrastructure 11 g Release 2 (11.2) for Linux - E17212 number of part-11:
    'Use the feature of dynamic download and apply software upgrades of software updates as part of the installation of the Oracle database. You can also download updates separately using the downloadUpdates option and later to apply during installation by providing the location where updates. »

    I could not find more detailed information on this feature in the documentation and MOS.

    Thank you

    Hello

    You can download the latest updates and patches to help with option - downloadUpdates

    ./runInstaller -downloadUpdates
    

    You can use this note:

    * How to download the latest updates and patches using 11.2.0.2 YES [ID 1295074.1] *.

    Don't miss...
    * Error: INS-20704 while installation 11.2.0.2 with Option 'use downloaded software updates' [1265270.1 ID] *.
    : Note ensure that the user download the updates of patches have own/correct permission to download updates to patch to MOS (My Oracle Support).
    Do not use the directories/tmp/oraInstall * for the download location. New bug 9975999

    Documentation explaining...
    4.5.1 running Oracle Universal Installer
    Download of updates before Installation
    http://download.Oracle.com/docs/CD/E11882_01/install.112/e16763/inst_task.htm#BABJGGJH

    Kind regards
    Levi Pereira

  • Create a path from the pen with an action

    I can't record an action that create a path from the pen. You have an idea to solve?

    Thank you

    Marco

    With active use of the path enter the path of the menu actions panel flyout.

  • Apply the paragraph using Enter/Return style works only on empty paragraphs

    The InDesign CS4 document, I'm working on that has paragraph styles based on other paragraph styles. For example, the following chapter for BodyFirst style is body. Hit Enter/Return after typing a BodyFirst applies in subsection empty body, no problem.

    However, I sometimes already existing text that needs to be reformatted. For example, BodyFirst may be followed by Heading1, but Heading1 must be changed in body.

    I'm used to FrameMaker, where you can go back the Heading1 paragraph so that BodyFirst and Heading1 are in the same paragraph and then press enter/return to change quickly the correct paragraph style Heading1, body style. However, InDesign repeat the last style when I press enter/return, so that in this example, I find myself with followed BodyFirst of another BodyFirst.

    Is it possible to change this so that the following paragraph style is correct by hitting enter/return by using already existing text?

    Select the paragraphs, and then right-click (ctrl-click on Mac) on the name of the paragraph style in the paragraph Styles Panel. It should give you the possibility of style "of paragraph 1 ', then the following Style.

  • Apply the color of an object?

    I have an object in Photoshop with a transparent background. It is not vector art; It's a piece of. Art JPG. I want to import into InDesign and the color myself the InDesign object. Is this possible? I know it's possible with vector objects if they are cut and pasted, but what about not vector objects? When I try to do, I find that I am not able to color the object itself, only its framework and everything around him. Thank you.

    There is no way that you have a JPG file with a transparent background. JPG has no support for transparency.

    If you save it in grayscale, then you can apply a color to it by simply sliding the shade above it.

    Bob

  • Find an object with an object style and increase its height! …

    Hi all

    I found each (anchored to the current text) 'invisible' block with a specific 'AA' object style and change its height SO its offset is > 180 (depending on the origin 0,0 page by default).

    This seems to be simple but, still, who doesn't!

    Thanks in advance!

    (^/)

    app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "xxx");
      
    function main()
    {  
      
    app.findObjectPreferences = null; 
    app.findObjectPreferences.appliedObjectStyles = "AA"; 
    myFound = app.activeDocument.findObject();
    
    
    for (i = 0; i < myFound.length; i++)  
         {  
            var myGB = myFound.geometricBounds;
            var myYOffset = myGB[2]; 
            var myHeight = myGB[2] - myGB[0]; 
            
            if (myYOffset[i] > 180) myHeight[i] += 90; 
         }  
    
    }
    

    Replace this:

    myFound.geometricBounds

    with this:

    .geometricBounds myFound [i]

    You must then change the geometricBounds and apply it to the object:

    myGB =...

    myFound [i] .geometricBounds = myGB

    Something in this direction.

    Peter

  • Move all the items assigned an object Style to a specific layer?

    Hi all

    I just posted this in the regular InDesign forum but thought you Scripting Guys can have some smart solutions too:

    I'm working on a long document in InDesign (think the or not!) in which I have a lot of shots of models and images of the still life as it comes to women's fashion catalog. I only work in InDesign as all Photoshop work is ensured by our repro House, off site. At the present time the way in which I communicate all work comp that needs to be done is by placing a solid box of magenta or cyan on the image for maximum visibility. Of course, I have a style of object applied to these boxes, and I also like to keep a layer separate from the work immediately so that they can be off print times.

    Often I forgot to move a box to the correct layer or sometimes just slows me to do. What I would ideally like to do is assign a layer to the style of the object, but seeing that this is not possible, I was wondering if there is another solution to get all these boxes one layer in one foul swoop and so save me a piece of time.

    Thanks in advance!

    Ah, sorry about that. The script makes the unfounded assumption that each object has a style of object applied to it.

    Try this variant:

    myDoc = app.documents [0];

    myPIs = myDoc.pageItems.everyItem () .getElements ();

    for (var j = myPIs.length - 1; j > = 0; j-) {}

    try {}

    If (. appliedObjectStyle.name myPIs [j] = 'Repro Note') {}

    .itemLayer myPIs [j] = 'Repro Notes. "

    }

    } catch (e) {}; ignore the elements that have no style object

    }

    Dave

  • [JS CS3] Apply the italic with scripts

    There is a keyboard shortcut called 'Apply Italics', which is by default [cmd] + [shift] + [i] on Mac and [ctrl] + [shift] + [i] Windows. I use it often because it will change the correct italic text. E.g. text with the style '85 Heavy' will change '86 Heavy Italic' or 'Display Semibold"to"Display Semibold italic ".

    Is it possible to access the "apply Italics" with scripts? The action is not available in any menu, AFAIK.

    Yes it is possible.

    Normal:

    app.menuActions.itemByID (119609) .invoke)

    "BOLD":

    app.menuActions.itemByID (119610) .invoke)

    Italic:

    app.menuActions.itemByID (119611) .invoke)

    Highlights:

    app.menuActions.itemByID (119612) .invoke)

    With the exception of normal, these are all the toggles...

    Substances

  • Apply the Image with layer.id or layer.itemIndex

    Hello

    I want to use the 'Apply Image' function in my JavaScript.
    Because this function is not available in API, I recorded with the 'ScriptListener.8li' function calls
    Here is the code that was generated (I reformatted the code a bit to make it more readable):

    function testIt() {
        var ref24 = new ActionReference();
    
        var idChnl = charIDToTypeID( "Chnl" );
        var idChnl = charIDToTypeID( "Chnl" );
        var idRGB = charIDToTypeID( "RGB " );
        ref24.putEnumerated( idChnl, idChnl, idRGB );
    
        var idLyr = charIDToTypeID( "Lyr " );
        ref24.putName( idLyr, "My Layer Name" );
            
        var desc30 = new ActionDescriptor();
        var idT = charIDToTypeID( "T   " );
        desc30.putReference( idT, ref24 );
    
        var idClcl = charIDToTypeID( "Clcl" );
        var idClcn = charIDToTypeID( "Clcn" );
        var idSbtr = charIDToTypeID( "Sbtr" );
        desc30.putEnumerated( idClcl, idClcn, idSbtr );
    
        var idScl = charIDToTypeID( "Scl " );
        desc30.putDouble( idScl, 2.000000 );
    
        var idOfst = charIDToTypeID( "Ofst" );
        desc30.putInteger( idOfst, 128 );
    
        var desc29 = new ActionDescriptor();
        var idWith = charIDToTypeID( "With" );
        var idClcl = charIDToTypeID( "Clcl" );
        desc29.putObject( idWith, idClcl, desc30 );
    
        var idAppI = charIDToTypeID( "AppI" );
        executeAction( idAppI, desc29, DialogModes.NO );
    }
    

    The problem: the function is based on the name of the layer.
    This can cause problems if two layers have the same name:

    ref24.putName( idLyr, "My Layer Name" );
    

    How can I get this to work of function with 'layer.id' or 'layer.itemIndex '?
    I tried for over six hours and have not found a solution.
    Help, please!

    Something on the lines of.

    function apply(ID) {
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Chnl'), charIDToTypeID('Chnl'), charIDToTypeID('RGB ') );
    ref.putIdentifier(charIDToTypeID('Lyr '), ID); //Layer ID
    //ref.putIndex( charIDToTypeID('Lyr '), idx ); //Layer Index
    var desc = new ActionDescriptor();
    desc.putReference( charIDToTypeID('T   '), ref );
    desc.putEnumerated( charIDToTypeID('Clcl'), charIDToTypeID('Clcn'), charIDToTypeID('Sbtr') );
    desc.putDouble( charIDToTypeID('Scl '), 2.000000 );
    desc.putInteger( charIDToTypeID('Ofst'), 128 );
    var desc2 = new ActionDescriptor();
    desc2.putObject( charIDToTypeID('With'), charIDToTypeID('Clcl'), desc );
    try{
    executeAction( charIDToTypeID('AppI'), desc2, DialogModes.NO );
    }catch(e){}
    };
    
  • Sensitivity of tilt of the pen with Photoshop on a Surface Pro

    I use Photoshop CC on a Surface Pro 4. The stylus pressure works fine, but the application does not meet any sound tilt when I use the brushes. Anyone know what is happening? How can I solve this problem?

    Hi TenLongFingers

    Have you checked the inclination on other Applications?

    You also use the latest version of Photoshop CC 2015.1?

    Concerning

    Assani

  • Expose the QGeoAddress with Q_PROPERTY object to QML

    Hello

    I have a class that I wrote which gets the location of the device and does a reverse search for Geolocation. In my C++, I have an QGeoAddress object, but when I try and access its attributes of QML, I get a "property: unknown type: address QGeoAddress ' error."

    I'm loading my class, called LocationInformation in QML by using attachedObects:

    attachedObjects: [
            LocationInformation {
                id: locationInformation
            }
        ]
    

    In my head of class LocationInformation, I set the latitude and longitude as attributes such as address:

    class LocationInformation : public QObject
    {
        Q_OBJECT
    
        Q_PROPERTY(double latitude READ latitude)
        Q_PROPERTY(double longitude READ longitude)
        Q_PROPERTY(QGeoAddress address READ getAddress)
    
        ...
    }
    

    I am able to call locationInformation.latitude and get a value, but this isn't the case for the address. I have to perform an extra step in order to obtain an QGeoAddress object to be recognized by QML?

    Thank you

    javabb

    QGeoAddress inherit from QObject, my code snippet above will not work (and is what this error means ).  To expose to QML, you would have to wrap up in your own C++ class that extends from QObject.  Or just use c++ instead of QML.

  • How to replace a paragraph with an object style style

    Hello

    I'm having this problem lately in the pagination of a newspaper that I have to do all the premium post with a Rectangle border. the problem is that the text is in the grid.

    Is it just as, while I add a paragraph style specific to certain parts of the text, I can automatically give this text a specific object (such as rectangle stroke) Style

    Does make sense?

    Thank you very much

    http://dtputils.com/products/view/1

    Maybe a plugin?

  • How to solve the problem with the wacom tablet and the polygonal lasso tool. It does not work with a pen.

    How to solve the problem with the wacom tablet and the polygonal lasso tool. It does not work with a pen. I have install windows 10 and fresh, new drivers for wacom bamboo, could he makes problems or there is a problem of photoshop?

    It should do.  You use one of the buttons of pen maybe?  Just touching wheels with the pen with no buttons or modifier keys.  Press ENTER to close the selection.

    Personally I never use the lasso, Polygonal, but rather just the Lasso tool by using the ALT (Opt) to operate the Polygonal tool.  I also use the mouse instead of the Tablet for the selection of cutting edge.  It is a little too uncertain where the point will go when hovering the stylus above the image.

  • Can I use pen with Libretto W100?

    Hello

    D like to know if did explain to me if possible use a pen in W100 as phone smart or if y at - it a regulation apply to work properly or if it is there any good pen for this DEVICE to the SCREEN?

    Thank you!

    Unfortunately I didn't found any info on websites of Toshiba but theoretically you can use the pen with your booklet.
    I got this unit several times in my hands and don t think you need a special pen. In my opinion, it should be the same that you use with other similar devices.

    As much as I know this device is not designed and delivered with Toshiba pen doesn t to offer all type of application for calibration or regulation of pen.

Maybe you are looking for

  • Turn on iPhone 5 s for the first time?

    Hello I just bought all new iPhone 5 S in a shop and after I searched (google) answers with regard to the maintenance of the battery, I'm a bit confused. Some say it is wise to drain the battery until the phone turns off and that completely... some p

  • How can I get my outlook express to receive messages

    Have just set Outlook Express on my new laptop computer, I get the error code (0x800408FC) for incoming emails. Outgoing settings are ok, even if I use the same server. How can I fix this?

  • How to stop the yellow flashing light with beep. Don't take pictures on my T4i

    My camera stopped working.  When I try to take a picture, it will beep and a yellow blinking on the front.  I turned it works. Check the battery, removed the lens.  Moved to a different auto adjustment.  I don't know what else to do. Thank you! Krist

  • RAID configuration on a single hard drive?

    Hello Is it possible to configure the RAID in a single hard drive.

  • Background color of the preview

    IPhone preview has a black background Uni - is there any way to do that is transparent, as an off-screen canvas elements flowing in, show as they do when programmed? Would be a useful improvement.Best wishesRichard