Applying Style Effects with vba script

Hello,
I've been doing a lot of scripting with VBA to create data driven graphics with good results so far.
Now I want to try and fancy things up a bit. For example I'm trying to add an Effect to an object.
As example, I create a simple filled rectangle with the following:
Set objRectangle = docRef.PathItems.Rectangle(x, y, w, h)
objRectangle.FillColor = rgbColorRef
objRectangle.Stroked = False
objRectangle.Filled = True
After I want to apply an effect equivalent to selecting Effect > Stylize > Scribble... from the menus in Illustrator.
I found PathItem.ApplyEffect (LiveEffectXML As String) but not sure this is correct approach. Can't find any documentation or examples on this or reference for the LiveEffectXML string.
Sure would appreciate some help if anyone has done this.
Thanks
Paul
PS I'm using CS6

Thank you Kasyan, but it doesn't work as I expected it to. The InDesign style are somtimes overridden, sometimes not. It seems to have something to do with wether the Word-style is based on another Word-style or not. In addition I have my InDesign styles grouped, and when InDesign upon placing a text doesn't find the style on the top level, it imports the Word-style.
My solution:
Change Word-styles so they are not based upon another style
Running the VBA-code in Word
Placing the text using "Use InDesign style definition" for paragraph and character styles conflicts.
Editing the imported InDesign styles so that they are based upon and equals the original InDesign style in the respective group

Similar Messages

  • How to apply eax effects with x-fi xtreme music on my mp3 collection?

    Hi. I am new in pc audio but as I understand it, eax is hardware effect and can be applied only in real time to any audio source. I find amphitheatre effect fantastic so I would like to know if there is any way to record my mp3s with applied effect in order to listen them on my car audio player (it would be some kind of DSP option in a car). The easiest (and fastest) solution would be to use Adobe Auditon or some similar software but I want EAX. I tried to use "audio creation mode" and in "what you hear" mode, record in real time my mp3s with "enable eax" option checked but no effect was applied (I checked "monitor recording" mode). Any experiences? Thanks in advance.

    Because of the EAX is in output, you'll need to use "What U Hear" as recording source to get the effect added into source. This means that you need to play the data using another software than which one you're using for recording. While I was using Audigy 2, this was quite eay to do but I don't know the X-Fi ... especially if you're using Vista. Another possible method is to record the output of your card ... loopback cable Front out --> Line-In, etc.
    There are also other methods available but, you'll need then to use VST/DX plugins which gives you same/better results as what you would get from X-Fi DSP even it's maybe 24-bit chip (because of the 'resolution' of the final mp3 format you're thinking of (16-bit, 44.1kHz/48kHz, 320kbps). If your collection is already stored as mp3 format files then, it's quite hard work to add those effects ... you'll need some software that imports mp3 format then add the effect you like and then export to mp3 format.
    Also, the car is quite different space from room+speakers and headphones so, I suggest you to prepare some examples 1st and play those in car enviroment to get the direction needed for settings to get best possible result.
    jutapa

  • How to get certain applied styles using script?

    Hi All,
    I need to know how to get certain applied styles using ID Scripting. I don't have much experience in InDesign so need some help.
    Here is a screenshot with a sample text with the said styles applied and highlighted.
    I need to know what texts in my document have these styles applied like All Caps, Strikethrough, Underline, Subscript and Superscript etc.
    Please help.
    Thanks!

    Hi Poortip87
    The first thing you have to understand is how to refer to "where" you want to apply the style.
    If you want the script to apply the style to the selected text then you would use for example app.selection[0].strikeThru = true;
    If you for example want to underline the last word of the first paragraph of the first story you would use app.activeDocument.stories[0].paragraphs[0].words[-1].underline = true;
    If you just wanted the first letter of that word underlined then you would add .characters[0] after the words[-1]
    To for example apply All Caps to all the text in all the stories you would use
    app.activeDocument.stories.everyItem().texts[0].capitalization = Capitalization.ALL_CAPS;
    The easiest way to find how to set properties to a selections is to set them manually and make the selection and then run the script below.
    You should be able to find all the properties you want very easily after running the script.
    Or you can use Jongwares excellent reference guide. Indesign JavaScript Help
    HTH
    Trevor
    // script to show most of the selection properties by Trevor
    // Creative-Scripts.Com (Still not ready!) available (sometimes) for custom scripts $$$
    // scripts {at} Creative-Scripts [dot] Com
    $.level = 0; // set debug mode to allow try catch (not read only as stated in manual);
    if (!app.selection.length) exit();
    var c = 0, s = app.selection[0], p,
          a = [], n, er;
    for (n in s) {
        try {
            p = s[n];
            if (p && p.constructor.name === "Enumerator") p = getEnum(p ,n);
            a[c++] = n + ": " + p;
        } catch (er) {a[c++] = n + ": ???"}
    var f = new File (Folder.temp + +(new Date) + ".txt");
    f.open('r');
    f.encoding = "UTF-8";
    f.lineFeed = ($.os[0]=="M") ? "Macintosh" :" Windows";
    f.open('w');
    f.write("\uFEFF" + a.join("\r"));
    f.close();
    $.sleep(300);
    f.execute(true);
    function getEnum (q, n) {
        var enums = ["AcrobatCompatibility",
        "AddPageOptions",
        "AdornmentOverprint",
        "AlignDistributeBounds",
        "AlignOptions",
        "AlignmentStyleOptions",
        "AlternateGlyphForms",
        "AlternatingFillsTypes",
        "AnchorPoint",
        "AnchorPosition",
        "AnchoredRelativeTo",
        "AnimationEaseOptions",
        "AnimationPlayOperations",
        "AntiAliasType",
        "ArrangeBy",
        "ArrowHead",
        "AssetType",
        "AssignmentExportOptions",
        "AssignmentStatus",
        "AutoEnum",
        "AutoSizingReferenceEnum",
        "AutoSizingTypeEnum",
        "BalanceLinesStyle",
        "BaselineFrameGridRelativeOption",
        "BaselineGridRelativeOption",
        "BehaviorEvents",
        "BevelAndEmbossDirection",
        "BevelAndEmbossStyle",
        "BevelAndEmbossTechnique",
        "BindingOptions",
        "BitmapCompression",
        "BlendMode",
        "BlendingSpace",
        "BookContentStatus",
        "BookletTypeOptions",
        "BoundingBoxLimits",
        "BuildingBlockTypes",
        "BulletCharacterType",
        "BulletListExportOption",
        "Capitalization",
        "ChangeBackgroundColorChoices",
        "ChangeCaseOptions",
        "ChangeConditionsModes",
        "ChangeMarkings",
        "ChangeTextColorChoices",
        "ChangeTypes",
        "ChangebarLocations",
        "ChangecaseMode",
        "ChapterNumberSources",
        "CharacterAlignment",
        "CharacterCountLocation",
        "CharacterDirectionOptions",
        "ClippingPathType",
        "ColorModel",
        "ColorOutputModes",
        "ColorRenderingDictionary",
        "ColorSettingsPolicy",
        "ColorSpace",
        "ComposeUsing",
        "CompressionQuality",
        "ConditionIndicatorMethod",
        "ConditionIndicatorMode",
        "ConditionUnderlineIndicatorAppearance",
        "ContainerType",
        "ContentType",
        "ContourOptionsTypes",
        "ConvertPageBreaks",
        "ConvertShapeOptions",
        "ConvertTablesOptions",
        "CoordinateSpaces",
        "CopyrightStatus",
        "CornerOptions",
        "CreateProxy",
        "CrossReferenceType",
        "CursorTypes",
        "CustomLayoutTypeEnum",
        "DataFormat",
        "DefaultRenderingIntent",
        "DesignOptions",
        "DiacriticPositionOptions",
        "DigitsTypeOptions",
        "DimensionsConstraints",
        "DisplayOrderOptions",
        "DisplaySettingOptions",
        "DistributeOptions",
        "DocumentIntentOptions",
        "DocumentPrintUiOptions",
        "DynamicDocumentsJPEGQualityOptions",
        "DynamicDocumentsTextExportPolicy",
        "DynamicMediaHandlingOptions",
        "DynamicTriggerEvents",
        "EPSColorSpace",
        "EPSImageData",
        "EditingState",
        "EmptyFrameFittingOptions",
        "EndCap",
        "EndJoin",
        "EpubCover",
        "EpubVersion",
        "EventPhases",
        "ExportFormat",
        "ExportLayerOptions",
        "ExportOrder",
        "ExportPresetFormat",
        "ExportRangeOrAllPages",
        "FeatherCornerType",
        "FeatherMode",
        "FeatureSetOptions",
        "FindChangeTransliterateCharacterTypes",
        "FirstBaseline",
        "FitDimension",
        "FitMethodSettings",
        "FitOptions",
        "Fitting",
        "FlattenerLevel",
        "Flip",
        "FlipValues",
        "FloatingWindowPosition",
        "FloatingWindowSize",
        "FollowShapeModeOptions",
        "FontDownloading",
        "FontEmbedding",
        "FontStatus",
        "FontTypes",
        "FootnoteFirstBaseline",
        "FootnoteMarkerPositioning",
        "FootnoteNumberingStyle",
        "FootnotePrefixSuffix",
        "FootnoteRestarting",
        "GIFOptionsPalette",
        "GlobalClashResolutionStrategy",
        "GlobalClashResolutionStrategyForMasterPage",
        "GlowTechnique",
        "GoToZoomOptions",
        "GradientType",
        "GridAlignment",
        "GridViewSettings",
        "GuideTypeOptions",
        "HeaderFooterBreakTypes",
        "HeaderTypes",
        "HorizontalAlignment",
        "HorizontalOrVertical",
        "HyperlinkAppearanceHighlight",
        "HyperlinkAppearanceStyle",
        "HyperlinkAppearanceWidth",
        "HyperlinkDestinationPageSetting",
        "ICCProfiles",
        "IconSizes",
        "ImageAlignmentType",
        "ImageConversion",
        "ImageDataTypes",
        "ImageExportOption",
        "ImageFormat",
        "ImagePageBreakType",
        "ImageResolution",
        "ImageSizeOption",
        "ImportFormat",
        "ImportPlatform",
        "ImportedPageCropOptions",
        "InCopyUIColors",
        "IndexCapitalizationOptions",
        "IndexFormat",
        "InkTypes",
        "InnerGlowSource",
        "InteractiveElementsOptions",
        "InteractivePDFInteractiveElementsOptions",
        "JPEGOptionsFormat",
        "JPEGOptionsQuality",
        "JoinOptions",
        "JpegColorSpaceEnum",
        "Justification",
        "KashidasOptions",
        "KentenAlignment",
        "KentenCharacter",
        "KentenCharacterSet",
        "KinsokuHangTypes",
        "KinsokuSet",
        "KinsokuType",
        "LanguageAndRegion",
        "LayoutRuleOptions",
        "Leading",
        "LeadingModel",
        "LibraryPanelViews",
        "LineAlignment",
        "LineSpacingType",
        "LinkStatus",
        "ListAlignment",
        "ListType",
        "LiveDrawingOptions",
        "Locale",
        "LocationOptions",
        "LockStateValues",
        "MapType",
        "MarkLineWeight",
        "MarkTypes",
        "MatrixContent",
        "MeasurementUnits",
        "MojikumiTableDefaults",
        "MonoBitmapCompression",
        "MoviePlayOperations",
        "MoviePosterTypes",
        "NestedStyleDelimiters",
        "NoteBackgrounds",
        "NoteColorChoices",
        "NothingEnum",
        "NumberedListExportOption",
        "NumberedParagraphsOptions",
        "NumberingStyle",
        "OTFFigureStyle",
        "ObjectTypes",
        "OpenOptions",
        "OpenTypeFeature",
        "OutlineJoin",
        "OverrideType",
        "PDFColorSpace",
        "PDFCompressionType",
        "PDFCrop",
        "PDFJPEGQualityOptions",
        "PDFMarkWeight",
        "PDFProfileSelector",
        "PDFRasterCompressionOptions",
        "PDFXStandards",
        "PNGColorSpaceEnum",
        "PNGExportRangeEnum",
        "PNGQualityEnum",
        "PPDValues",
        "PageBindingOptions",
        "PageColorOptions",
        "PageLayoutOptions",
        "PageNumberPosition",
        "PageNumberStyle",
        "PageNumberingOptions",
        "PageOrientation",
        "PagePositions",
        "PageRange",
        "PageReferenceType",
        "PageSideOptions",
        "PageTransitionDirectionOptions",
        "PageTransitionDurationOptions",
        "PageTransitionOverrideOptions",
        "PageTransitionTypeOptions",
        "PageViewOptions",
        "PaginationOption",
        "PanelLayoutResize",
        "PanningTypes",
        "PaperSize",
        "PaperSizes",
        "ParagraphDirectionOptions",
        "ParagraphJustificationOptions",
        "PathType",
        "PathTypeAlignments",
        "PdfMagnificationOptions",
        "PerformanceMetricOptions",
        "PlacedVectorProfilePolicy",
        "PlayOperations",
        "PointType",
        "Position",
        "PositionalForms",
        "PostScriptLevels",
        "PreflightLayerOptions",
        "PreflightProfileOptions",
        "PreflightRuleFlag",
        "PreflightScopeOptions",
        "PreviewPagesOptions",
        "PreviewSizeOptions",
        "PreviewTypes",
        "PrintLayerOptions",
        "PrintPageOrientation",
        "Printer",
        "PrinterPresetTypes",
        "Profile",
        "ProofingType",
        "RangeSortOrder",
        "RasterCompressionOptions",
        "RasterResolutionOptions",
        "RecordSelection",
        "RecordsPerPage",
        "RenderingIntent",
        "RepaginateOption",
        "ResizeConstraints",
        "ResizeMethods",
        "ResolveStyleClash",
        "RestartPolicy",
        "RotationDirection",
        "RowTypes",
        "RubyAlignments",
        "RubyKentenPosition",
        "RubyOverhang",
        "RubyParentSpacing",
        "RubyTypes",
        "RuleDataType",
        "RuleWidth",
        "RulerOrigin",
        "SWFBackgroundOptions",
        "SWFCurveQualityValue",
        "Sampling",
        "SaveOptions",
        "ScaleModes",
        "Screeening",
        "ScreenModeOptions",
        "ScriptLanguage",
        "SearchModes",
        "SearchStrategies",
        "SelectAll",
        "SelectionOptions",
        "Sequences",
        "ShadowMode",
        "SignatureSizeOptions",
        "SingleWordJustification",
        "SmartMatchOptions",
        "SnapshotBlendingModes",
        "SortAssets",
        "SoundPosterTypes",
        "SourceFieldType",
        "SourceSpaces",
        "SourceType",
        "SpanColumnCountOptions",
        "SpanColumnTypeOptions",
        "SpecialCharacters",
        "SpreadFlattenerLevel",
        "StartParagraph",
        "StateTypes",
        "StaticAlignmentOptions",
        "StoryDirectionOptions",
        "StoryHorizontalOrVertical",
        "StoryTypes",
        "StrokeAlignment",
        "StrokeCornerAdjustment",
        "StrokeFillProxyOptions",
        "StrokeFillTargetOptions",
        "StrokeOrderTypes",
        "StyleConflict",
        "StyleSheetExportOption",
        "SyncConflictResolution",
        "TabStopAlignment",
        "TableDirectionOptions",
        "TableFormattingOptions",
        "TagRaster",
        "TagTextExportCharacterSet",
        "TagTextForm",
        "TagTransparency",
        "TagType",
        "TagVector",
        "TaggedPDFStructureOrderOptions",
        "TaskAlertType",
        "TaskState",
        "TextExportCharacterSet",
        "TextFrameContents",
        "TextImportCharacterSet",
        "TextPathEffects",
        "TextStrokeAlign",
        "TextTypeAlignments",
        "TextWrapModes",
        "TextWrapSideOptions",
        "ThumbsPerPage",
        "TilingTypes",
        "ToolTipOptions",
        "ToolsPanelOptions",
        "TrapEndTypes",
        "TrapImagePlacementTypes",
        "Trapping",
        "UIColors",
        "UITools",
        "UndoModes",
        "UpdateLinkOptions",
        "UserInteractionLevels",
        "VariableNumberingStyles",
        "VariableScopes",
        "VariableTypes",
        "VersionCueSyncStatus",
        "VersionState",
        "VerticalAlignment",
        "VerticalJustification",
        "VerticallyRelativeTo",
        "ViewDisplaySettings",
        "ViewZoomStyle",
        "WarichuAlignment",
        "WatermarkHorizontalPositionEnum",
        "WatermarkVerticalPositionEnum",
        "WhenScalingOptions",
        "XFLRasterizeFormatOptions",
        "XMLElementLocation",
        "XMLElementPosition",
        "XMLExportUntaggedTablesFormat",
        "XMLFileEncoding",
        "XMLImportStyles",
        "XMLTransformFile",
        "ZoomOptions"];
        var l = enums.length,
            s = q.toString(), e, er, a;
        while (l--) {
            try {
                e = $.global [enums[l]];
                if (e.hasOwnProperty (s) && q === e[s]) {
                    a = e.reflect.properties;
                    a.pop();
                    a = (a.length < 2) ? "" : "\r[Possible " + enums[l]+ " Enumerations for " + n + "]:\r" + enums[l] + "." + a.join ("\r" + enums[l] + ".");
                    return enums[l] + "." + q.toString () + a;
            catch (er) {};
        return "???." + q.toString ();

  • I have the current Mac Pro the entry level with the default specification and i feel some slow performance when applying after effects on my videos using final cut pro and also rendering a video takes long time ? what upgrades do you guys suggest?

    i have the current Mac Pro the entry level with the default configuration   and i feel lack of  performance when applying after effects on my videos using final cut pro and also rendering a video takes long time ? what upgrades do you guys suggest i could do on my Mac Pro ?

    256GB SSD  it shipped with will run low and one of the things to watch.
    Default memory is 12GB  also something to think about.
    D500 and FCP-X 10.1+
    http://macperformanceguide.com/index_topics.html#MacPro2013Performance
    Five models of 2013 Mac Pro running Resolve, FCPX, After Effects, Photoshop, and Aperture

  • Cell Styles with a script

    Is there anyway to style table cells with a script, I can't fine any answers, all I'm after is to add a one cell style to the header row, then a different cell style to the rest of the table?
    is it even possible, any pointer would be great?
    Many thanks!

    Hi Harbs
    Thanks for your reply, I am new to this, and am finding it hard, if you have any example scripts I can have a look at that would be great.
    Many thanks,
    jamb

  • Get Text with Applied Style

    Hi all,
    I am using InDesign CS3 on OS 10.5. I'm trying to write something in Applescript that can look at a document and give me the text that has a certain applied style.
    For example, if a document contained the text "Hello, world" and had an applied paragraph style called "Greeting," then what I want is to use my script to tell that document something like this:
    tell application "Adobe Indesign CS3"
    set theDoc to document 1
    set theText to get every paragraph of theDoc whose applied paragraph style is "Greeting"
    end tell
    theText
    -->should return: "Hello, world"
    Obviously, I tried that script, but it doesn't work. I get the error "Adobe InDesign CS3 got an error: Cant get every paragraph of document "MyDocument.indd" whose applied paragraph style = "Greeting"."
    I'm not sure if I am just using the wrong commands or what. Any help is greatly appreciated!

    Hi Hayden,
    The trouble is, theDoc doesn't have paragraphs. If you open the InDesign dictionary and look at the document object, you'll see text frames, and you'll see stories, but no paragraphs. To get all of the paragraphs, you'd use something like this:
    set theText to every paragraph of every story
    But getting every paragraph of every story whose applied paragraph style is a specific style is harder to do using a filter ("whose") clause, because it has multiple conditions. Shane can probably do it, but I'm not having much luck. All the same, why bother? InDesign has a perfectly good find text method that will do what you want. Something like this:
    tell application "Adobe InDesign CS3"
    --Clear the find text preferences
    set find text preferences to nothing
    set applied paragraph style of find text preferences to paragraph style "Greeting" of document 1
    tell document 1
    set myFoundItems to find text
    end tell
    end tell
    Thanks,
    Ole

  • Write the results script of results log pane to XLS or CSV file with VBA.

    Hi,
    How can I write the results script of results log pane to XLS or CSV file with VBA code or something? I tried so hard but i can't.
    Thanks

    MoGas,
    This is actually not a trivial process. You need to use the results object and code it to write to your file (it is described in the help files).
    e-Tester automatically saves the results log as a text file so you may just want to stick with that for simplicity.

  • Macro/VBA script to merge rows with same values in another column

    Hi.
    I'm developing a dance competition application, using Excel 2010, and have so far managed to put judges' marked scores into a worksheet through a userform.
    Now I would like to make the worksheet more presentable as a scoreboard, as you would manually, but via VBA scripts.
    Exhibit Numbers (Column G) are unique identifiers (per competition) for contestants and each contestant is typically judged by three judges.  The scores in three separate categories from one judge would spread in one row so each contestant would have three
    rows.
    I would like to merge rows of columns where the totals from the judges go (Columns P to U) for each contestant.
    I've considered using some kind of loop but I don't have enough experience in vba scripting, it gets overcomplicated. Could someone please help?
    Many thanks.
    Maki Koyama (Canberra, AUS)

    Hi,
    You cannot add a static "Y" inside a when looping over "i". You need to ensure that "Y" changes along with X. Try the modified code below.
    List elements = new ArrayList();
    for (int i=0; i<XXX; i++) {
    IZZZ.IVisibilityElement el = wdContext.createVisibilityElement();
    el.setVisAttr(i); // Change Y to i
    elements.add(el);
    wdContext.nodeVisibility().bind(elements);
    That should give you an idea of what is erroneous in the code.
    Thanks.
    HTH.
    p256960

  • VBA-script not working in InDesign

    Goal: To have text placed from Word formatted in the paragraph styles I like. I receive the text from other authors and they are formatted with standard Word paragraph style formatting.
    Two solutions:
    Format the text in Word (change paragraph styles) using VBA, place/import it and somehow make sure that InDesign uses the styles I already defined in InDesign, not the way that style is defined in Word. I can't figure out how to do this.
    Do the formatting in InDesign, using script. But the VBA-macro does not work in InDesign.
    How may I change the code in order to work in InDesign? The code should look for specific paragraph styles and change them or the style of the next paragraph.
    Sub stilSkifte()
    Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:="1"
    Dim para As Paragraph
    For Each para In ActiveDocument.Paragraphs 'søk gjennom hvert enkelt avsnitt i dokumentet
       On Error Resume Next
        'INGEN MELLOMROM og overskriftene
        If para.Range.Style = "Ingen mellomrom" Then
            para.Style = "Normal"
            GoTo SisteLinje 'Gå til linja i koden som heter SisteLinje, = gå til neste avsnitt
        End If
        If para.Range.Style = "Overskrift 1" Then
            para.Style = "Tittel-små"
            GoTo SisteLinje 'Gå til linja i koden som heter SisteLinje, = gå til neste avsnitt
        End If
        If para.Range.Style = "Overskrift 2" Then
            para.Style = "Ingress"
            GoTo SisteLinje 'Gå til linja i koden som heter SisteLinje, = gå til neste avsnitt
        End If
        If para.Range.Style = "Overskrift 3" Then
            para.Style = "mellomtittel"
            GoTo SisteLinje 'Gå til linja i koden som heter SisteLinje, = gå til neste avsnitt
        End If
        'NORMAL til BYLINE
        If para.Range.Style = "Ingress" Then
            If para.Next.Style = "Normal" Then
                para.Next.Style = "byline1"
            End If
               GoTo SisteLinje
        End If
        If para.Range.Style = "byline1" Then
            If para.Next.Style = "Normal" Then
                para.Next.Style = "byline2"
            End If
               GoTo SisteLinje
        End If
       'Hvis avsnittet er i NORMAL og det neste er...
        If para.Range.Style = "Normal" Then
            '...i NORMAL endres dette til NORMAL M INNRYKK
            If para.Next.Style = "Normal" Then
                para.Next.Style = "Normal med innrykk"
            End If
            GoTo SisteLinje
        End If
    SisteLinje: Next
    End Sub
    I apriciate any suggestions!

    Thank you Kasyan, but it doesn't work as I expected it to. The InDesign style are somtimes overridden, sometimes not. It seems to have something to do with wether the Word-style is based on another Word-style or not. In addition I have my InDesign styles grouped, and when InDesign upon placing a text doesn't find the style on the top level, it imports the Word-style.
    My solution:
    Change Word-styles so they are not based upon another style
    Running the VBA-code in Word
    Placing the text using "Use InDesign style definition" for paragraph and character styles conflicts.
    Editing the imported InDesign styles so that they are based upon and equals the original InDesign style in the respective group

  • How to make thumbnails enlarge when using grid navigation effects with jquery

    I have used a grid navigation effect with jquery to display several thumbnail images but i would like the images to enlarge to a bigger size when they are clicked on, i dont want another window to open but for the image to appear on the same page like lightbox, except i dont need a gallery, just the enlarging function. Please see the code below of my page and the link to see the demo of the grid nav with jquery that i used (effect- 'rows move', example 9).
    http://tympanus.net/codrops/2011/06/09/grid-navigation-effects/comment-page-2/#comments
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>My gallery</title>
    <link href="stylesheet.css" rel="stylesheet" type="text/css" />
    <link href="gridNavigation.css" rel="stylesheet" type="text/css" />
    <link href="reset.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
              background-color: #000000;
    a:link {
              text-decoration: none;
              color:#f1d379;
    a:visited {
              text-decoration: none;
              color: #f1d379;
    a:hover {
              text-decoration: none;
              color: #9d6f1b;
    a:active {
              text-decoration: none;
              color: #f1d379;
    </style>
            <script type="text/javascript" src="scripts/jquery-1.6.1.min.js"></script>
                        <script type="text/javascript" src="scripts/jquery.easing.1.3.js"></script>
                        <script type="text/javascript" src="scripts/jquery.mousewheel.js"></script>
                        <script type="text/javascript" src="scripts/jquery.gridnav.js"></script>
    <script type="text/javascript">
    $(function() {
                                            $('#tj_container').gridnav({
                                                      type          : {
                                                          rows    : 2,
                                                                mode                    : 'rows',                               // use def | fade | seqfade | updown | sequpdown | showhide | disperse | rows
                                                                speed                    : 1000,                                        // for fade, seqfade, updown, sequpdown, showhide, disperse, rows
                                                                easing                    : 'easeInOutBack',          // for fade, seqfade, updown, sequpdown, showhide, disperse, rows
                                                                factor                    : 150,                                        // for seqfade, sequpdown, rows
                                                                reverse                    : ''                                        // for sequpdown
    </script>
    </head>
    <body>
    <div class="container" id="container">
    <div id="navbar_gallery" class="#navbar_gallery">
    <ul>
              <li><a  href="index.html">Homepage</a></li>
              <li><a  href="about_me.html" >About me</a></li>
              <li><a  href="gallery.html">Gallery</a></li>
              <li><a  href="contact.html">Contact</a></li>
      </ul>
    </div>
    <div class="maintext" id="page_maintext">
      <p class="page_heading">My Gallery</p>
    </div>
    <div class="content example5">
    <div id="tj_container" class="tj_container">
                                                      <div class="tj_nav">
                                                                <span id="tj_prev" class="tj_prev">Previous</span>
                                                                <span id="tj_next" class="tj_next">Next</span>
                                                      </div>
              <div class="tj_wrapper">
                                                                <ul class="tj_gallery">
                                                                          <li><a href="#"><img src="images/1.jpg" alt="image01" /></a></li>
                                                                          <li><a href="#"><img src="images/2.jpg" alt="image02" /></a></li>
                                                                          <li><a href="#"><img src="images/3.jpg" alt="image03" /></a></li>
                                                                          <li><a href="#"><img src="images/4.jpg" alt="image04" /></a></li>
                                                                          <li><a href="#"><img src="images/5.jpg" alt="image05" /></a></li>
                                                                          <li><a href="#"><img src="images/6.jpg" alt="image06" /></a></li>
                                                                          <li><a href="#"><img src="images/7.jpg" alt="image07" /></a></li>
                                                                          <li><a href="#"><img src="images/8.jpg" alt="image08" /></a></li>
                                                                          <li><a href="#"><img src="images/9.jpg" alt="image09" /></a></li>
                                                                          <li><a href="#"><img src="images/10.jpg" alt="image10" /></a></li>
                                                                          <li><a href="#"><img src="images/11.jpg" alt="image11" /></a></li>
                                                                          <li><a href="#"><img src="images/12.jpg" alt="image12" /></a></li>
                                                                          <li><a href="#"><img src="images/13.jpg" alt="image13" /></a></li>
                                                                          <li><a href="#"><img src="images/14.jpg" alt="image14" /></a></li>
                                                                          <li><a href="#"><img src="images/15.jpg" alt="image15" /></a></li>
                                                                          <li><a href="#"><img src="images/16.jpg" alt="image16" /></a></li>
                                                                          <li><a href="#"><img src="images/17.jpg" alt="image17" /></a></li>
                                                                          <li><a href="#"><img src="images/18.jpg" alt="image18" /></a></li>
                                                                          <li><a href="#"><img src="images/19.jpg" alt="image19" /></a></li>
                                                                          <li><a href="#"><img src="images/20.jpg" alt="image20" /></a></li>
                                                        </ul>
                </div>
      </div>
    </div>
    </body>
    </html>

    Ok so i've tried to do the above as suggested but i've obviously gone wrong somewhere as the fancybox function doesnt work, all that happens when clicking on thumbnail is the bigger version is opened in another browser window?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>My gallery</title>
    <link href="stylesheet.css" rel="stylesheet" type="text/css" />
    <link href="gridNavigation.css" rel="stylesheet" type="text/css" />
    <link href="reset.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
    <style type="text/css">
    body {
              background-color: #000000;
    a:link {
              text-decoration: none;
              color:#f1d379;
    a:visited {
              text-decoration: none;
              color: #f1d379;
    a:hover {
              text-decoration: none;
              color: #9d6f1b;
    a:active {
              text-decoration: none;
              color: #f1d379;
    </style>
            <script type="text/javascript" src="scripts/jquery-1.6.1.min.js"></script>
                        <script type="text/javascript" src="scripts/jquery.easing.1.3.js"></script>
                        <script type="text/javascript" src="scripts/jquery.mousewheel.js"></script>
                        <script type="text/javascript" src="scripts/jquery.gridnav.js"></script>
            <script type="text/javascript" src="/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
            <script type="text/javascript">
    $(function() {
                                            $('#tj_container').gridnav({
                                                      type          : {
                                                          rows    : 2,
                                                                mode                    : 'rows',                               // use def | fade | seqfade | updown | sequpdown | showhide | disperse | rows
                                                                speed                    : 1000,                                        // for fade, seqfade, updown, sequpdown, showhide, disperse, rows
                                                                easing                    : 'easeInOutBack',          // for fade, seqfade, updown, sequpdown, showhide, disperse, rows
                                                                factor                    : 150,                                        // for seqfade, sequpdown, rows
                                                                reverse                    : ''                                        // for sequpdown
    </script>
    <script type="text/javascript">
              $(document).ready(function() {
                        $(".fancybox").fancybox();
    </script>
    <script type="text/javascript">
    $(document).ready(function() {
                  $("#single_1").fancybox({
              helpers: {
                  title : {
                      type : 'float'
        $("#single_2").fancybox({
                  openEffect          : 'elastic',
                  closeEffect          : 'elastic',
                  helpers : {
                            title : {
                                      type : 'inside'
        $("#single_3").fancybox({
                  openEffect : 'none',
                  closeEffect          : 'none',
                  helpers : {
                            title : {
                                      type : 'outside'
                   $("#single_4").fancybox({
                  helpers : {
                            title : {
                                      type : 'over'
    </script>
    </head>
    <body>
    <div class="container" id="container">
    <div id="navbar_gallery" class="#navbar_gallery">
    <ul>
              <li><a  href="index.html">Homepage</a></li>
              <li><a  href="about_me.html" >About me</a></li>
              <li><a  href="gallery.html">Gallery</a></li>
              <li><a  href="contact.html">Contact</a></li>
      </ul>
    </div>
    <div class="maintext" id="page_maintext">
      <p class="page_heading">My Gallery</p>
    </div>
    <div class="content example5">
    <div id="tj_container" class="tj_container">
                                                      <div class="tj_nav">
                                                                <span id="tj_prev" class="tj_prev">Previous</span>
                                                                <span id="tj_next" class="tj_next">Next</span>
                                                      </div>
              <div class="tj_wrapper">
                                                                <ul class="tj_gallery">
                                                                          <li><a id="single_1" href="images/1-big.jpg" title="Row of beach huts"><img src="images/1.jpg" alt="Row of beach huts" /></a>
                                                                          <li><a id="single_2" href="images/2-big.jpg" title="Bees collecting pollen"><img src="images/2.jpg" alt="Bees collecting pollen" /></a></li>
                                                                          <li><a id="single_3" href="images/3-big.jpg" title="Frank"><img src="images/3.jpg" alt="Frank" /></a>
                                                                          <li><a id="single_4" href="images/4-big.jpg" title="New zealand beach"><img src="images/4.jpg" alt="Beach" /></a></li>
                                                                          <li><a id="single_5" href="images/5-big.jpg" title="Sonning river"><img src="images/5.jpg" alt="River" /></a></li>
                                                                          <li><a id="single_6" href="images/6-big.jpg" title="Steaming post in the morning sun"><img src="images/6.jpg" alt="steaming post" /></a></li>
                                                                          <li><a id="single_7" href="images/7-big.jpg" title="Portrait lady"><img src="images/7.jpg" alt="Portrait of lady" /></a></li>
                                                                          <li><a id="single_8" href="images/8-big.jpg" title="A great day at the coast"><img src="images/8.jpg" alt="Dog running along beach" /></a></li>
                                                                          <li><a id="single_9" href="images/9-big.jpg" title="Jam hut in new zealand"><img src="images/9.jpg" alt="Jam hut in new zealand" /></a></li>
                                                                          <li><a id="single_10" href="images/10-big.jpg" title="New zealand lake"><img src="images/10.jpg" alt="new zealand lake" /></a></li>
                                                                          <li><a id="single_11" href="images/11-big.jpg" title="Full speed ahead"><img src="images/11.jpg" alt="Dog running" /></a></li>
                                                                          <li><a id="single_12" href="images/12-big.jpg" title="Portsmouth docks"><img src="images/12.jpg" alt="Portsmouth docks" /></a></li>
                                                                          <li><a href="#"><img src="images/13.jpg" alt="image13" /></a></li>
                                                                          <li><a href="#"><img src="images/14.jpg" alt="image14" /></a></li>
                                                                          <li><a href="#"><img src="images/15.jpg" alt="image15" /></a></li>
                                                                          <li><a href="#"><img src="images/16.jpg" alt="image16" /></a></li>
                                                                          <li><a href="#"><img src="images/17.jpg" alt="image17" /></a></li>
                                                                          <li><a href="#"><img src="images/18.jpg" alt="image18" /></a></li>
                                                                          <li><a href="#"><img src="images/19.jpg" alt="image19" /></a></li>
                                                                          <li><a href="#"><img src="images/20.jpg" alt="image20" /></a></li>
                                                        </ul>
                </div>
      </div>
    </div>
    </body>
    </html>

  • Shortcut to: Apply (style), Clear Overrides  ?

    Hi there,
    I'm working on a approx 100pg price list that I've set up a tables for, and the design of it has changed slightly (sigh). It looks like a basic excel spreadsheet and I have imported the text already. Basically, I'm going through and applying a cell style to various rows, not equidistant from each other -- some 3 rows apart, some 15. I need to, and have been, highlighting the row, right-clicking the particular cell style, and doing the "Apply (style), Clear Overrides" to get the desired result. So, what I was wondering, Is there ANY way to create a shortcut to do this? I know how to apply the style with a shortcut, but not the overrides option.
    Even better, if anyone knows how to select multiple rows at once and apply, that would be fantastic.
    Love this forum and thanks in advance!

    I was just thinking about that cost/benefit analysis on my way to work this morning. If it takes me a whole hour to gin up that script, then how many months before I make those hours back in time saved? My parastyles always have numpad shortcuts (e.g. Control + numpad 8), and my "Clear All Overrides" shortcut is Control + Shift + numpad Enter, so it might be a long, long time before the saved fraction of a second from using a single script instead of two keyboard shortcuts that are right next to one another adds up to the hour of Javascript fumbling.
    (Then again, if I cared that much about saving milliseconds, I wouldn't be posting this. )

  • Create/find tables and apply style

    Hello,
    I'm very new to scripting. I want to learn the basics like creating a table, creating anchored frames, textframes, etc.
    Now, I want to create/find tables in a document and I would like to apply styles. I saw a script to do this. When I paste the script in Extendscript CS4, than the program crash.
    The program crash in part 1. When I create another script with only part 2 (see //part 2) then there is no problem.
    What do i wrong? And can anyone tell me what part 1 of the script do?
    Thanks,
    // part 1
    // using your version; I'd prefer to return 0 if table not found
    function findTable(obj) {
             while (obj.constructor.name != "Table") {
            obj = obj.parent;
            if (obj.constructor.name == "Application") {
                throw "Can't find table"
        return obj
    // part 2
    var myTable = 0;
    if (app.documents.length > 0 && app.selection.length > 0)
        myTable = findTable(app.selection[0]);
    // check for at least enough rows for 1 top row, 1 body row, 1 bottom row
    if (myTable != 0 && myTable.rows.length >= 3) {
        // delete all rules; set insets to 0
        myTable.cells.everyItem().appliedCellStyle = "[None]";
        // format bottom row
        // (remember rows uses 0-based count)
        a = myTable.rows.length - 1;
        myTable.rows[a].cells.everyItem().appliedCellStyle = "4.cell_body_last";
        // format middle rows
        first = 1;
         last = myTable.rows.length - 2;
        for (a = first; a <= last; ++a)
            myTable.rows[a].cells.everyItem().appliedCellStyle = "3.cell_body";
        // format top row
        a = 0;
        myTable.rows[a].cells.everyItem().appliedCellStyle = "2.cell_header";

    Part 1 expects the text cursor to be anywhere inside a table -- either in the regular text, or with a cell, row, column, or the entire table selected.
    It walks "up" using its parent until it arrives at the table object itself.
    This will only work if the text cursor actually is anywhere inside a table. It does nothing when you are somewhere else, and it only works with the "current" table.

  • Im trying to create a "wobbling" effect with a bitmap

    im trying to create a "wobbling" effect with a bitmap
    any idea how to go with this with director?

    It somewhat depends on what the effect is intended to acheive.
    Here is a simple behavior script that can be applied to any bitmap. It wobbles, in the sense that it has a radom movement about its axis.
    That is acheived with the random() statements. The amount of wobble can be controlled by changing the value added to each parameter on each iteration.
    The last three statements keep the wobble from randomly walking off the frame. Again, wobble can be changed by setting the corrective value at which point the bitmap returns to its original state.
    Hope this helps.
    property spritenum
    global glocH, gLocV, gRotation
    On beginsprite
      gloch = sprite(spritenum).loch
      gloch = sprite(spritenum).locv
      gRotation = integer(sprite(spritenum).Rotation)
    end
    On enterframe
    b = random(2)
      if b=1 then
        sprite(spritenum).loch = sprite(spritenum).loch + random(2)
      else
        sprite(spritenum).loch = sprite(spritenum).loch - random(2)
      end if
      c= random(2)
      if c=1 then
        sprite(spritenum).locv = sprite(spritenum).locV + random(2)
      else
        sprite(spritenum).locv = sprite(spritenum).locV - random(2)
      end if
      d= random(2)
      if d=1 then
        Sprite(spritenum).rotation = sprite(spritenum).rotation + random(4)
      else
        Sprite(spritenum).rotation = sprite(spritenum).rotation - random(4)
      end if
    if abs(gloch + sprite(spritenum).loch) <= 8  then sprite(spritenum).loch = gloch
    if abs(glocv + sprite(spritenum).locv) <= 8 then sprite(spritenum).locv = glocv
    if abs(Integer(gRotation - sprite(spritenum).Rotation)) >=8 then sprite(spritenum).rotation = gRotation
    end

  • Imovie style effects in FCP

    how does one go about creating imovie style effects in FCP
    like aged film, or rain, or film look
    do i need to buy third party filters?

    Graeme Nattress (www.nattress.com) has a very well regarded group of filters that will do "film look" as well as imitating aged film. Not sure what rain look is.
    Or, edit your project in FCP, export a .dv file and run it through iMovie with whatever effect you'd like to apply.
    x

  • How do you create a looped 'conveyor belt' effect with objects on a motion path?

    I am trying to efficiently create the following looped
    effect: a bunch of shapes constantly following a motion guide (a
    closed circle). Basically the object could be a conveyor belt or
    something else.
    http://i75.photobucket.com/albums/i302/Cablestein/dfg.jpg
    I want to avoid having to do it the old-fashioned way of
    multiplate layers and symbols. I do not want to see the triangles
    skip or jitter while moving along either.
    Is there an obvious way to do this with action script? Some
    way to simply start with a single symbol and motion guide, then
    applying some script (copy-paste).

    Thanks.
    A circle is easy enough, sure, but I would like to make all
    kinds of curves in that circle actually. Everyone knows about
    rotating a basic circle. This is beyond that. Imagine all kinds of
    turns, waves and spirals in that line.
    I have tried Illustrator, and there's potential solutions
    there... like the text-on-path tool (why doesn't Flash have that
    yet?) which works fantastic. Still a lot of manual work, and will
    be a ton of manually copied frames. I wanted something more
    efficient.

Maybe you are looking for

  • Creation of Report Job Server

    I've just installed a new copy of XI R2 running parallel with Crystal Enterprise 10.  My Enterprise 10 has 4 report job servers and I need to have XI R2 configured with 4 too before I start migrating the reports from CE10 to XI - How is this accompli

  • I keep trying to download stuff off iTunes but I still get a "Disk Full error".

    We got a new computer with a 500 gb hard-drive so I know that I have free space. Every time I try to download something I get an error that says the disk is full. I have already tried to reset iTunes through preferences, so I need some more solutuion

  • NAC Agent - Loop in Remediation WSUS

    Hello, I´m implementing WSUS Posture in my ISE environment. When NAC Agent detect a new Windows Update, the Remediation Action is Automatic. I configured Show UI the Wizard Interface and this is working well.  But, after the windows update instalatio

  • Basic IDoc type ZSAB008 is unknown

    We just completed a client copy of our Production landscape to our Test landscape including R/3, BW and SRM.  In BW we have a source system of type File System that is used to upload data from flat files.  Prior to the client copy uploads using this

  • Debugging RFC Calls

    I was going thru the Blog /people/michal.krawczyk2/blog/2006/01/17/xi-debugging-rfc-calls-from-the-xi-not-possible-who-said-that- I am not understanding what Michal is trying to say? Would some one explain me please. I understand that when we are tal