Chronology of the lines, THEN did end Action

Still using 5.0.0.508

I have a timeline with several videos and chapters in it. In the project there are no substitutions. If the timeline is played, it gets to the end time, RESTARTS until the end, even once and THEN executes the end Action... No idea what's going on here, as I am new to the program. Help would be greatly appreciated!

It is difficult to know for sure that you have no substitutions, so watch that you do the following.

Look at each chapter in the timeline; one of them have a defined end action? I've had situations where an end action is added to a chapter marker without me defining an end action.

Several videos on a timeline has produced odd results sometimes. No reason it should do what you describe. The most common current workflow is a single video by chronology, then a playlist for combining deadlines in a playlist.

Tags: Encore

Similar Questions

  • Is it possible to exclude the line while using common actions of CP8?

    I have a set of slides in custom issue created by using checkbox and radio button widgets. In this regard, the number of options and good answers will vary. For example, Q1 has 5 options, of which 3 are good answers. T2 has 5 options, of which 2 are correct. T3 has 4 options, of which 2 are correct.

    I created the following adv. small action Q1 and saved under the common name of action:

    If

    var_C1 is equal to "Correct1".

    var_C2 is equal to 'Correct2.

    var_C3 is equal to "Correct3".

    var_W1 is equal to var_null

    var_W2 is equal to var_null

    then

    Increment Score1 by 10

    It was good for Q1 and Q2 as a shared action. When I tried to use it to Q3 where I had only 4 options to choose, CP did not allow me to exclude one of the variables.

    What Miss me? Or am I trying to achieve the impossible?

    Anthony

    If you have several questions with different combinations of correct / incorrect, I would create several shared actions. You can use the template feature to change a shared action and save it as a new shared action. The hard part, it's that you still have to re-enter all the descriptions. Something like:

    MCQ1A5 is a matter of QCM with 5 responses and 1 OK

    MCQ3C2W is a multiple CHOICE question with 3 correct and 2 wrong answers (as in your example)

    The workflow on the entry I described can be used to ensure that an existing shared action that had more answers than in the present question is still usable (if it is an exceptional situation). Two examples in order to use the MCQ3C2W for a question 4 answers:

    1. If the question has 3 good and bad response, use this action to enter: assign v_W2 with v_null
    2. If the question has 2 good and 2 wrong answers, use the action on enter: assign v_C3 with 'Correct3' and be sure to enter the same literal as parameter, do small :-)
  • Strange problem brush which compensates for the model of the line and double it... Help?

    Hey everybody! Last night, I made a brush of Ribbon for a project at work. It worked as it should and I gave it to a colleague of mine so that it could use is as well. This morning, however, my colleague tells me she is having problems with the brush because it wasn't appearing when she used. I opened the file HAVE on my computer to check it out and everything seems fine, the lines that I did the other night not appear correctly. However, when I tried to draw another line and apply the brush, the ground was shifted to the line, AND it seemed to have doubled.

    Here's a sample of what I mean; the top is a line that I drew last night and the bottom is the same line, just copied and pasted below:

    ribbon_brush_issue.png

    I can move the lines, I did the other night, on the model around and it works correctly, but if I copy the line or by using the same brush to draw, I get double up to offset glitch.

    Thank you for taking the time to read this. All advice is appreciated!

    The brush is constructed with a clipping group. This does not work properly.

    You might drag the brush in the Panel forms. Then ungroup. Then take the part of the brush that isn't a corner and use the pathfinder Crop on it.

    Then create a new brush.

    Works for me.

    You can use this file? https://DL.dropboxusercontent.com/u/15485305/ribbon_brush_issue-mg.AI

  • In Adobe Flash cc, is there a way to keep the 2 lines (pen tool or the line tool) which cross each other anchor at the intersection?

    I often use the tool/line pen tool and when I have the curve the line with the Selection tool it often crashes on nearby vector lines. Is any way to stop this? In Adobe Illustrator crossed lines drop anchor (at least for me).

    Is it possible to change it? or is there another tool pen / I do not know will not be the anchor on a different line whenever he touches?

    Hello

    You can use these tools in drawing mode of the object (available just below the color sample of fill/outline in the tools Panel when a drawing tool is selected) where several objects create the intersection points. But please note if draw oneself which intersect the lines then it will create an anchor point.

    Thank you!

    Mohan

  • Tie the line to a rectangle & to repeat lines

    Hello

    In the picture attached, how would have joined the two orange lines to the orange rectangle? Using Pathfinder/unit does not try to add a point of the angle.

    Also, what is the tool and how to use it to create expandable blue lines and make them all online upward?

    Thank you!

    Screen Shot 2014-12-08 at 9.52.45 PM.png

    EExpand unite all orange items before using the Scout

    have a play with Bled for the lines. High-end and low-end line draw do mix with 15 steps

  • Thickness of the line

    Hello

    I traced a line on the report to oracle using Oracle (9i) Reports Developer. Do you know how to increase the thickness of the line?

    Thank you!

    Hello

    Select the line, then in the Menu bar > Format > line width > and then select the width you want in the list provided, or you can you same custom width option and then enter the required width.

    I hope this helps.

    Best regards

    Arif Khadas

  • Chronology of the end actions does not yet have CS4

    I have a project in place with 3 videos with 3 buttons in a menu. I also have an intro video set as the first piece of theatre. The first play video/timeline end action works and opens the menu: no problem. When I select the first button play and play the video at the end on the video, with the end set to the menu, the video action begins to play again and not navigate back to the menu. What is strange, is that the end action works after the second time playing through. The same thing happens with the other buttons/video/delays.  Any suggestions?

    Delete all replacements of your timelines and your buttons.  In fact, remove all replacements anywhere in your project.

    -Jeff

  • Hi, I have a problem with a basic movement scroll effect.  I've already looked and read every tutorial out there about it and even tried the cat to adobe support, but the guy at the other end of the line disconnected me..., he probably didn't unde

    Hi, I have a problem with a basic movement scroll effect.

    I've already looked and read every tutorial out there about it and even tried the cat to adobe support, but the guy at the other end of the line disconnected me..., probably he did not understand what I wanted him, because English is not my native language, so one will try to be very clear on this one...

    Please note that I am new to dream, this is my first project ever.

    My idea is as follows:

    When the customer comes to our site of companies, he sees just our logo on a white background. the logo is composed of, say, four elements. When the client makes a scrolling down, the logo begins to transport: first the first part of the logo flies on the left side of the site, then the second part of the logo disappears down, then the third part of the logo flies to the right, then the fourth part of the logo flies upward and out of sight of customers. given what I've seen, it is possible to do...

    so...

    now I have four parts of my logo imported as png files in muse and was assembled in design mode to build our companies logo. I select each of the four parts and go to the effects of scrolling to the left tab next to the tab layers first I get the same values for each of the four parts: first movement: x 0 and x 0 again for the movement of the left and right; key position (t-handle): 0px; final movement: x 0 and x 0 for the value of left and right.

    now, I hit "Preview". : the logo is "pinned" to the correct location, I can scroll but the logo stays where it is. So far so good...

    now, I select all four components again and go to the tab scroll to 'final motion' effecs, I click on the drop down arrow and enter 1 x. I struck an excerpt...

    When I scroll the WHOLE grave logo down... well.

    NOW, I want the first part of the logo down, THEN part II to move left, THEN the third part to go to the top, THEN the fourth part to go right.

    so I select ONLY the first part, go to the request of scroll, to the 'final movement' tab, I click on the left arrow, then I go 1 x. (the value of up-down, I put to 0 again)... I struck an excerpt...

    the first part of the logo is left as soon as I start to scroll, the other three parties still go down at the same time...

    NOW, I want the second part of the logo to start to move, when the first part left, not at the same time as the first part.

    THEN I SELECT THE SECOND PART AND DRAG ITS HANDLE IN T (KEY ITEM) DOWN, LETS SAY: 200PX. THEN IT STARTS TO MOVE ONLY AFTER THE CUSTOMER HAS REACHED THIS POINT, RIGHT?

    BUT WHEN I SAW THAT *, THE LOGO IS NO LONGER TOGETHER, THE SECOND PART IS FLOATING ANYWHERE, BUT WHERE IT SHOULD BE... WTFF?

    short: when I move the t-handle, the initial position of the object changes. That's what I said to the adobe employee, but he said, this is the expected behavior...

    But if that's the case, how can I have my four parts correctly together, so they form my logo, but with different t treats, so they all start to move at different times?

    Pleeease help me, I will die of frustration here...: () this behavior is not normal, right?

    Thank you very much to everyone who reads this message and tries to help him...

    All the best,

    Niki Lapan

    I'm not good at explaining things that im going to download the file, I did for you. hope this helps you solve your problem

    https://www.mediafire.com/?xiild0yhr5cna7s

  • Back to Chapter 1 but end action the timeline loop

    Hi all

    Trying to CS6 yet precise deadlines for a reader blu - ray loop.  I understand that the way to do this is to set the end Action of timeline to the first chapter.  I did it for all the times in question, but none of them will acutally loop.  At the end of the video, the timeline returns to the previous menu screen.

    Videos are encoded H264 720 p Blu - Ray.

    A reflection as to why he is behaving in this way?  I'll try to remove and re-import the assets, re-building/linking the chronology, but other than that I am ideas.

    Let me know if you need more information.  Thanks for your suggestions!

    Lindsay

    Good mystery solved!  I re - set theTimeline on "Not defined", but substitution has not re-set the override button on "not defined".  With the two substitutes 'No Set' desired deadlines are loop now correctly.

    Thank you for pointing me in the right direction, John

  • When I enter a Web site in the url of the Enter key does not work. I have to click on the arrow at the end of the line. Is this a configuration problem?

    The Enter key does not work in the line of the URL. If I go says:
    www.Bing.com
    and then press the Enter key, nothing happens.
    I have to click the arrow at the end of the field in order to activate the link.
    If I am anywhere else on any page the Enter key works as it should.

    Please click the button of resolved next to the answer that solved your problem of Firefox support, when you are connected.

  • Chronology/chapter end Action preference

    When you set an end action, what is the difference between the end of chapter and the timeline action?  If they are both set to the same thing, I get a warning about it, but if it is not set and the other is, there is a warning about who is not defined.

    Here's my situation - I 8 timelines, each of them is an episode of content.  They are available individually in their own menus.  When one of them finishes playing, they return to their submenu and move to whatever the special function keys.

    I have also a play all function from the main menu that points to a playlist with all 8 episodes.  It will play them one after another, without interruption.  The problem however, is that if the user tries to jump to chapter within this playlist, you can jump to the second episode, but after that I get an icon "no function" on my player trying to jump ahead.

    I guess that means that the player is looking for access at the end of the second episode, but not finding what he needs.  If I compare episode 1 episode 2, they have the same timeline and action chapter functions.  Why he lurched past the episode 1 but not 2?

    Answered my own question.  I had a bit of a subtitle file that has spent the end of the video track in the timeline.  This seems to cause errors with end actions.

    It would be helpful to know the difference between chronology and end of chapter actions and how to avoid their being the same definition warning messages.

  • How to draw a line (with the line segment tool) then draw another line, from those previous anchor point. When I try immediately draw another line on the other anchor lines it try to turn instead.

    I'm following a course of basic fundamental illustrator on Lynda. The video of "draw straight lines" is troubling me. They draw a line with the line segment and then draw another line coming out the anchor point at an angle.

    Here's where it is troubling me - when I try to drag a line to the anchor point trying to transform the first line, I drew. (the line cursor turns into a selection tool) I can't draw another line connecting the first.

    Advice would be great because it's driving crazy me.

    See you soon,.
    Kyle

    Yes, it is irritating. You must clear the previous line first. If you want to make sure that both ends are perfectly aligned, start by turning on the guides. If you want two lines to be part of the same way, you should use the tool pen instead.

  • Prime Minister 9. I made a mistake when I did drag an audio file in the line of the image. How to remove the audio file. I tried ctrl z and shift delete nothing done.

    Using Adobe Elements 9 first, I made a mistake when I did drag an audio file in the line of the image.

    How can I delete this audio file? I tried ctrl z and shift delete. software has the ' delete the scene and all of the properties in gray. Just "delete scene only" it and it does nothing to remove the audio file.  I had to drag the line from the soundtrack.

    Who can help me?

    LinFos04

    What you wrote, it seems that you are in the scene of Premiere Elements 9.0/9.0.1 workspace.

    Please see screenshot showing you how to remove the audio immediately after you dragged in the film that had been marked "Drag the next clip here"

    Moving forward consider working in the workspace of timeline that gives you a better view of what is happening and therefore gives you more control over the flow of work. Please click chronology to watch how this audio present in the workspace of chronology after what you did in the space of the stage line.

    Please let us know if it worked to get rid of the audio unwanted in the Premiere Elements 9.0/9.0.1 workspace sceneline.

    For any question or need more information on the above, please ask.

    Thank you.

    RTA

  • End action will not run due to the action of late about final chapter

    I'm still doing my first project, and I get this error message: end action will not run because of the end about final chapter action.

    My calendar:

    I have a unique calendar consisting of a couple of reviews. There is a "chapter Starting Point" yet and 3 additional Points of chapter, I added.

    My goal:

    • A main Menu with
      • A 'Play' button that simply plays the entire timeline, beginning to end, and when finished go back to the main Menu.
      • A 'Scènes' button which brings up a submenu
    • A submenu with 4 buttons of chapter, which each would play a chapter in the timeline and return to the same/auto submenu when finished.

    My end Actions:

    It seems that the end Action is necessary for what is defined. Thus,.

    • The Action of 'end' of the timeline is to return to the main Menu.
    • The Action of 'end' for each chapter in the timeline must return to the submenu.

    My flowchart

    • First thing that works is the main Menu.
      • Links Play button of the timeline (which the end action is back to the main menu).
      • The scenes in the submenu button links
    • In the submenu, each chapter button links to the chapter Point suitable in the timeline (each chapter has an end action to return to the submenu).

    All of this makes perfect sense to me and it reflects exactly what I want to do. If clearly, it won't work!

    When I check my project, I get the error mentioned above. I do not understand how it is even possible to avoid this error: your timeline MUST have an end action, your timeline must have at least a chapter point and each chapter MUST have an end action.

    Thus, by definition, it seems that still

    • REQUIRES the timeline for action to end,
    • REQUIRES the last chapter on the timeline to have an end action, and
    • Gives you an error when you do what it takes.

    What the...?

    My solution

    I was finally able to work around the problem by creating a playlist of "chapter" for each chapter, that is, I created a "Chapter 1 Playlist" where the content has been a link to the chapter Point 1, a "Chapter 2 Playlist" where the content has been a link to Chapter 2 Point, etc.

    Then in my submenu, instead of linking to a Chapter Point, I've linked to a list of reading chapter instead and in each Chapter Playlist I put an end to "return to the submenu" action

    It worked - but it really seems kludgy and I can't help but shake the feeling that I do something wrong or I'm doing something good?

    Your "Workaround" is the current main method. Chapter Playlists are a "function". Yes, it seems kludgy, but it avoids the use of substitutions, which are necessary for your first method and cause many headaches without end users.

    Chapters DO NOT need action to end and your workaround solution, should not have their.

    Main timeline, end to the main menu action.

    Chapter playlists, end to the submenu action.

    No further action at the end of editing/chapter.

  • How to move the ends of the lines slanted towards the limits of the purge

    Hi all

    I developed a script that deletes the page elements to the purge. To achieve this, that I collect all the elements of the page (with the exception of text blocks) located partially on the editing table, create a temporary mask and 'trim' with subtraction of Pathfinder function. However, this approach does not work with graphic lines so I'm trying to move the ends of the lines to the limits of the substantive area lost. (I guess these are simple straight lines consisting of two end points).

    screengrab.png

    I knew how to deal with orthogonal lines - it's pretty easy:

    if (theItem.constructor.name == "GraphicLine" && theItem.paths.length === 1) {
         path = theItem.paths[0];
         if (path.pathPoints.length === 2) {
              ep = path.entirePath;
              w = ep[1][0]-ep[0][0];
              h = ep[1][1]-ep[0 ][1];
              
              if (w > h) {
                   newEp = [ [ spreadWithBleedBounds[1], ep[0][1] ], [ spreadWithBleedBounds[3], ep[1][1] ] ];
                   path.entirePath = newEp;
              }
              else if (h > w) {
                   newEp = [ [ ep[0][0], spreadWithBleedBounds[0] ], [ ep[1][0], spreadWithBleedBounds[2] ] ];
                   path.entirePath = newEp;
              }
         }
    }
    

    This moves A1 - A2, B1 , B2, C1 , C2, D1 to D2.

    But how to treat skewed lines? How to calculate the coordinates of the point E2 and F2? Y at - it a magic formula? Or can someone point me to the right direction: for example a book to read?

    I assume this has something to do with geometry/trigonometry, but I haven't studied this kind of things at school. (I graduated from an art school - designed to draw naked models instead).

    If someone will answer my question, please do it on basic level since I'm a total noob in the present.

    Here's the script:

    if (Number(String(app.version).split(".")[0]) == 7) ErrorExit("This script can't work with InDesign CS5 so far.", true);
    
    var doc = app.activeDocument;
    var spreadBounds, spreadWithBleedBounds, gPartiallyOutOfSpreadItems;
    var ungroupErrors = 0;
    
    var originalHorUnits =  doc.viewPreferences.horizontalMeasurementUnits;
    var originalVerUnits =  doc.viewPreferences.verticalMeasurementUnits;
    doc.viewPreferences.horizontalMeasurementUnits = doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.INCHES;
    doc.viewPreferences.rulerOrigin = RulerOrigin.spreadOrigin;
    doc.zeroPoint = [0, 0];
    
    if (doc.layers.itemByName("Temporary Layer") == null ) {
         var tempLayer = doc.layers.add({name:"Temporary Layer"});
    }
    else {
         var tempLayer = doc.layers.itemByName("Temporary Layer");
    }
    
    UngroupAllGroups(doc.groups);
    
    DeleteObjectsOnPasteboard();
    ProcessSpreads(doc.spreads);
    ProcessSpreads(doc.masterSpreads);
    
    tempLayer.remove();
    
    doc.viewPreferences.horizontalMeasurementUnits = originalHorUnits;
    doc.viewPreferences.verticalMeasurementUnits = originalVerUnits;
    
    var msg = (ungroupErrors > 0) ? " Failed to ungroup " + ungroupErrors + " groups since they are too large." : "";
    alert("Done." + msg, "Trim Pages Script");
    
    //================================== FUNCTONS ===========================================
    function ProcessSpreads(spreads) {
         var spread, path, ep, w, h;
         for (var s = 0; s < spreads.length; s++) {
              spread = spreads[s];
              spreadBounds = GetSpreadBound(spread, false);
              spreadWithBleedBounds = GetSpreadBound(spread, true);
              
              gPartiallyOutOfSpreadItems = GetPartiallyOutOfSpreadItems(spread);
              
              var theItem, theMask, newItem;
              for (var i = gPartiallyOutOfSpreadItems.length-1; i >= 0; i--) {
                   theItem = gPartiallyOutOfSpreadItems[i];
                   if (theItem.constructor.name == "GraphicLine" && theItem.paths.length === 1) {
                        path = theItem.paths[0];
                        if (path.pathPoints.length === 2) {
                             ep = path.entirePath;
                             w = ep[1][0]-ep[0][0];
                             h = ep[1][1]-ep[0 ][1];
                             
                             if (w > h) {
                                  newEp = [ [ spreadWithBleedBounds[1], ep[0][1] ], [ spreadWithBleedBounds[3], ep[1][1] ] ];
                                  path.entirePath = newEp;
                             }
                             else if (h > w) {
                                  newEp = [ [ ep[0][0], spreadWithBleedBounds[0] ], [ ep[1][0], spreadWithBleedBounds[2] ] ];
                                  path.entirePath = newEp;
                             }
                        }
                   }
                   else {
                        theMask = CreateMask(spread);
                        try {
                             newItem = theMask.subtractPath(theItem);
                        }
                        catch (err) {
                             $.writeln("2 - " + err);
                             theMask.remove();
                        }
                   }
              }
         }
    }
    //--------------------------------------------------------------------------------------------------------------
    function IsPartiallyOutOfSpread(pageItem) {
         var result = false;
         if (pageItem.constructor.name == "TextFrame" ||
              pageItem.constructor.name == "Group" ||
              pageItem.parent.constructor.name == "Group")
         {
              return result;
         }
    
         var visBounds = pageItem.visibleBounds;
         if (visBounds[0] < spreadBounds[0] && visBounds[2] > spreadBounds[0] ||
              visBounds[1] < spreadBounds[1] && visBounds[3] > spreadBounds[1] ||
              visBounds[2] > spreadBounds[2] && visBounds[0] < spreadBounds[2] ||
              visBounds[3] > spreadBounds[3] && visBounds[1] < spreadBounds[3]  ) {
              result = true;
         }
         return result;
    }
    //--------------------------------------------------------------------------------------------------------------
    function GetSpreadBound(spread, bleed) { // including bleed -boolean
         if (bleed == undefined) bleed = false;
         
         with (doc.documentPreferences) {
              var topBleed = documentBleedTopOffset
              var leftBleed = documentBleedInsideOrLeftOffset;
              var bottomBleed = documentBleedBottomOffset;
              var rightBleed = documentBleedOutsideOrRightOffset;
         }
    
         var bFirst = spread.pages.item(0).bounds; // bounds of the first page
         var bLast = spread.pages.item(-1).bounds; // bounds of the last page
         return [     ((bleed) ? bFirst[0]-topBleed : bFirst[0]), 
                        ((bleed) ? bFirst[1]-leftBleed : bFirst[1]), 
                        ((bleed) ? bLast[2]+bottomBleed : bFirst[2]), 
                        ((bleed) ? bLast[3]+rightBleed : bLast[3])
                        ];
    }
    //--------------------------------------------------------------------------------------------------------------
    function CreateMask(spread) {
         var unitValue = new UnitValue (app.pasteboardPreferences.minimumSpaceAboveAndBelow, "mm");
         var unitValueAsInch = unitValue.as("in");
         var outerRectangleBounds = [spreadWithBleedBounds[0]-unitValueAsInch, 
                                                                spreadWithBleedBounds[1]-8.07, 
                                                                spreadWithBleedBounds[2]+unitValueAsInch, 
                                                                spreadWithBleedBounds[3]+8.07
                                                                ]; 
    
         var outerRectangle = spread.rectangles.add(tempLayer, undefined, undefined, {geometricBounds:outerRectangleBounds});
         var innerRectangle = spread.rectangles.add(tempLayer, undefined, undefined, {geometricBounds:spreadWithBleedBounds, fillColor:doc.swatches.item("Black"), fillTint:30});
         var mask = outerRectangle.excludeOverlapPath(innerRectangle);
         return mask;
    }
    //--------------------------------------------------------------------------------------------------------------
    function GetPartiallyOutOfSpreadItems(spread) {
         var allPageItems = spread.allPageItems;
         var partiallyOutOfSpreadItems = [];
         var currentItem;
         
         for (var i = 0; i < allPageItems.length; i++) {
              currentItem = allPageItems[i];
              if (IsPartiallyOutOfSpread(currentItem)) partiallyOutOfSpreadItems.push(currentItem);
         }
         
         return partiallyOutOfSpreadItems;
    }
    //--------------------------------------------------------------------------------------------------------------
    function DeleteObjectsOnPasteboard() {
         var objs = app.documents[0].pageItems.everyItem().getElements();
         while (obj=objs.pop()) {
              try {
                   if(obj.parent instanceof Spread || obj.parent instanceof MasterSpread){ obj.remove() }
              }
              catch(err) {
                   //$.writeln("2 - " + err);
              }
         }
    }
    //--------------------------------------------------------------------------------------------------------------
    function ErrorExit(myMessage, myIcon) {
         alert(myMessage, "Trim Pages Script", myIcon);
         exit();
    }
    //--------------------------------------------------------------------------------------------------------------
    function UngroupAllGroups(groups) {
         for (var i = groups.length-1; i >= 0; i--) {
              var gr = groups[i];
              if (gr.groups.length > 0) {
                   var subGroups = [];
                   for (var j = gr.groups.length-1; j >= 0; j--) {
                        subGroups.push(gr.groups[j].id);
                   }                    
                   try {
                        gr.ungroup();
                   }
                   catch(err) {
                        //$.writeln("1 - " + err);
                        ungroupErrors++;
                   }
              
                   for (var k = subGroups.length-1; k >= 0; k--) {
                        try {
                             doc.groups.itemByID(subGroups[k]).ungroup();
                        }
                        catch(err) {
                             //$.writeln("2 - " + err);
                             ungroupErrors++;
                        }
                   }
              }
              else {
                   try {
                        gr.ungroup();
                   }
                   catch(err) {
                        //$.writeln("1 - " + err);
                        ungroupErrors++;
                   }
              }
         }     
    }
    //--------------------------------------------------------------------------------------------------------------

    Thanks in advance.

    Kasyan

    Hi Kasyan!

    I was not trying to integrate this into your script, so you may need to adjust a little. The trick is to define a function that detects the point of intersection of two lines - and, of course, you must call it for lines that will not fail to cross the border of the page! (Otherwise, it would simply expand * any * the line upward and on the border.)

    I think it would be wise to predict a small mistake for lines that seem to run "up to" the edge of the page - I tested a line for 'x '.<= 0"="" on="" a="" line="" that="" appeared="" to="" start="" on="" 0;="" the="" control="" panel="" told="" me="" so.="" however,="" i="" didn't="" type="" that="" 0="" in;="" i="" dragged="" the="" line="" to="" the="" edge.="" apparently,="" it="" was="" *not*="" at="" precisely="" "0mm",="" but="" something="" like="" "0.001mm",="" because="" the="" script="" simply="" didn't="" "see"="" the="">

    My function comes from this page: http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/ and I did not test it does of orthogonal lines

    (but of course, you could add this in exceptional cases), and it's my script extending the line, with a small wrapper to configure things.

    The function tests * any * tail against * any * other line, so if we meet the page bounding box, I get the intersection with the purge of the side area where it crosses the bbox page.

    line = app.selection[0];
    // pg size in "regular" [y1,x1, y2,x2] format
    pagebbox = [0,0, app.activeDocument.documentPreferences.pageHeight,app.activeDocument.documentPreferences.pageWidth ];
    bleedDist = 5; //
    bleedbbox = [ pagebbox[0] - bleedDist, pagebbox[1] - bleedDist, pagebbox[2] + bleedDist, pagebbox[3] + bleedDist ];
    pt1 = line.paths[0].pathPoints[0].anchor;
    pt2 = line.paths[0].pathPoints.lastItem().anchor;
    // Start point:
    if (pt1[0] <= pagebbox[1] || pt1[0] >= pagebbox[3] ||
     pt1[1] <= pagebbox[0] || pt1[1] >= pagebbox[2])
    {
     if (pt1[0] <= pagebbox[1])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[1], bleedbbox[2] ] ] );
    
     if (pt1[0] >= pagebbox[3])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[3], bleedbbox[0]], [bleedbbox[3], bleedbbox[2] ] ] );
    
     if (pt1[1] <= pagebbox[0])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[3], bleedbbox[0] ] ] );
     if (pt1[1] >= pagebbox[2])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[2]], [bleedbbox[3], bleedbbox[2] ] ] );
     line.paths[0].pathPoints[0].anchor = intersectPt;
    }
    // End point:
    if (pt2[0] <= pagebbox[1] || pt2[0] >= pagebbox[3] ||
     pt2[1] <= pagebbox[0] || pt2[1] >= pagebbox[2])
    {
     if (pt2[0] <= pagebbox[1])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[1], bleedbbox[2] ] ] );
    
     if (pt2[0] >= pagebbox[3])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[3], bleedbbox[0]], [bleedbbox[3], bleedbbox[2] ] ] );
    
     if (pt2[1] <= pagebbox[0])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[0]], [bleedbbox[3], bleedbbox[0] ] ] );
     if (pt2[1] >= pagebbox[2])
      intersectPt = IntersectionPt ( [pt1, pt2], [ [ bleedbbox[1], bleedbbox[2]], [bleedbbox[3], bleedbbox[2] ] ] );
     line.paths[0].pathPoints.lastItem().anchor = intersectPt;
    }
    
    function IntersectionPt (ln1, ln2)
    {
     var ua;
     var x1 = ln1[0][0], x2 = ln1[1][0], x3 = ln2[0][0], x4 = ln2[1][0];
     var y1 = ln1[0][1], y2 = ln1[1][1], y3 = ln2[0][1], y4 = ln2[1][1];
     ua = ((x4 - x3)*(y1 - y3) - (y4 - y3)*(x1 - x3))/((y4 - y3)*(x2 - x1) - (x4 - x3)*(y2 - y1));
    
     return [ x1 + ua*(x2-x1), y1 + ua*(y2-y1) ];
    }
    

Maybe you are looking for