JS CS3 How to make guides

I just gave a try to creating guides in CS3 with this sophisticated snippet:
var lyr = app.activeDocument.layers.add();
var gd = lyr.pathItems.add()
gd.setEntirePath(Array(Array(100,0), Array(100,100)));
gd.guides = true;
and was hit by two surprises:
1. I expected the guide to spread across the entire doc. I thought that despite the coordinates, the engine would extend the line by default, since by mousing in UI, I never managed to make a guide covering only a portion of a doc.
2. Upon creation, the guide was selectable and moveable, showing the anchor points, basically it appeared as any other line, only with strokeColor appropriate for guides. (After a few clicks it kind of morphed into a real guide)
So my guess is that I'm doing something wrong here... Any ideas?
Regards,
Artur

Hi Kasyan,
Ole is probably right that the way to go would be a platform-specific
script.
You can do it using an idle event without it being too much of a
resource drain. You can do something like this (in CS3 using a
persistent engine):
if(yourUniqueNameIdleCounter == undefined){yourUniqueNameIdleCounter=0}
yourUniqueNameIdleCounter++;
if(yourUniqueNameIdleCounter>60){
yourUniqueNameIdleCounter=0;
do your check();
This would increment the number every second or so. Every time the
number hits 60 (about a minute -- give or take, depending on a lot of
factors) your check will be run. For every other idle event, the only
thing done would be incrementing the variable...
Harbs
http://www.in-tools.com

Similar Messages

  • Flash cs3: how to make moving/scrolling photo menu left and right?

    http://media.moma.org/subsites/2008/miro/flashsite/index.html
    - click continue, then relative size link
    How can I do this with lash cs3: how to make moving/scrolling
    photo menu left and right?
    When you move left and right and paintings move. and when you
    click on a painting, you see the the title and it links to another
    page on the site.

    scene_mc start at x = -550... x wide is 2164 px
    now I have this and its working...
    navL_mc.addEventListener(MouseEvent.MOUSE_OVER, navL_Over);
    navL_mc.addEventListener(MouseEvent.MOUSE_OUT, navL_Out);
    function navL_Over(e:MouseEvent){
              if(scena_mc.x == 0){
                                  scena_mc.x == 0;
              else if(scena_mc.x <= -10){
                                  scena_mc.x += 10;
                                  navL_mc.addEventListener(Event.ENTER_FRAME, runL);
    function runL(e:Event):void{
              if(scena_mc.x == 0){
                                  scena_mc.x == 0;
              else if(scena_mc.x <= -10){
                                  scena_mc.x += 10;
    function navL_Out(e:MouseEvent){
              navL_mc.removeEventListener(Event.ENTER_FRAME, runL);
    navR_mc.addEventListener(MouseEvent.MOUSE_OVER, navR_Over);
    navR_mc.addEventListener(MouseEvent.MOUSE_OUT, navR_Out);
    function navR_Over(e:MouseEvent){
              if(scena_mc.x == -1164){
                                  scena_mc.x == -1164;
              else if(scena_mc.x >= -1154){
                                  scena_mc.x -= 10;
                                  navR_mc.addEventListener(Event.ENTER_FRAME, runR);
    function runR(e:Event):void{
              if(scena_mc.x == -1164){
                                  scena_mc.x == -1164;
              else if(scena_mc.x >= -1154){
                                  scena_mc.x -= 10;
    function navR_Out(e:MouseEvent){
              navR_mc.removeEventListener(Event.ENTER_FRAME, runR);

  • How to make guides on a master page more effective

    I have a grid of guides on a master page. They are visible in my working pages, but they don't have that "magnetic" quality that I expect - things don't snap to them. I have layers in the master page and layers in my working pages. Can someone help me sort out what I need to do to make the guides more effective? CS4 on a Mac.

    Guide Options "Snap to zone" 1px?
    Also, 1 pixel isn't much, maybe you're not seeing the snap. Try 5 pixels

  • How to make a diagonal split screen in CS3

    Dear Folks,
    Any body now how to make a digonal split screen in permiere pro CS3?
    A normal split screen is ok like two videos side by side.
    Regards,
    TP

    This is an example of what Bill is saying...give him credit...  I just illustrated...photoshop files for the mattes...pure white and pure black...
    ps..if you dont want such a sharp line between the screens you can select the matte area in photoshop and "feather" the selection a few pixels...

  • How to make email link with a button with AC2 in flash cs3?

    How to make email link with a button with AC2 in flash cs3?
    I wrote this, but it does not work:
    btn_emailinfo.on (release) {
    getURL("mailto:"[email protected]");
    }

    I am guessing you put that on a frame?
    If so, the syntax is as follows:
    btn_emailinfo.onRelease = function(){
    getURL("mailto:[email protected]");
    Though, if you are placing it directly on the button itself,
    the syntax is:
    on(release){
    getURL("mailto:[email protected]");
    }

  • How to make a pressure sensitive brush in CS3?

    Hi!
    Is there someone out there who knows how to make a brush similar to this? I've been trying to figure it out for several hours now, but nothing works!
    Daniel

    Sorry but you aren't going to get something that looks like that from a pressure sensitive brush in Illustrator.
    The colors and groupings of blocks are too random to be a repeating pattern (a simple one, anyway) and the order is too consistent to be something like a scatter brush. That said, you *can* do this with a brush but it won't be pressure sensitive and it will require a degree of setup.
    Start by building a row of blocks. Mine is a simple pattern with a few pieces removed and not terribly interesting looking but hopefully it'll give you the idea of what I mean:
    Group everything and then go up to Effect> 3D> Rotate
    Set your X, Y, And Perspective parameters to taste. Keep the Z axes (the blue one) at zero:
    Go to Object> Expand Appearance You'll notice that Illustrator has put a clipping mask around your squares (transparent rectangle) Delete it.
    Take everything you have and drag it over to the brush panel and make a new Art Brush:
    Now you can select that brush and paint with it though you'll get better results by stroking a path you've drawn with the pen tool:
    A couple of things to keep in mind:
    You'll need to consider your ultimate length when creating the brush. Longer or more wavy lines will require more squares. My squares look a little skewed because I didn't bother to make my pattern very long. A longer row will improve the look of this but hopefully my example is enough to give you the idea.
    For generating the square colors, you might want to try the random fills script available from James talmage's page and then use live color to tint everything for you.

  • How to make AE script folder?

    Hi, i want to ask something about script in after effect CS6. I have many script in my AE and I think its quite difficult to find the script i want. So, how to make script folder in AE or maybe group of script? So if I want to use the script i can find it easier....
    Thank you and sorry for my bad english...

    // create a new FolderItem in project, with name “comps”
    var compFolder = app.project. items.addFolder(“comps”);
    AE CS3 Scripting guide, page 78

  • How to make checkbox field inactive in the output of ALV report.

    Dear All,
    I am having one ALV report in whose output there are checkboxes against each record. Example: the output columns of my ALV report are:
    Checkbox, Sales Document No, Billing Document No.
    Now, my requirement is that if for the Sales Document No there exists any Billing Document No in the output then the Checkbox should be inactive but if the Billing document coloumn is empty for a particular Sales Document No then only the Checkbox field should become active.
    Kindly guide me on how to make this checkbox field inactive.
    Waiting for your reply.
    Warm Regards,
    N.Jain

    Hello,
    Follow the below steps:
    1.Define as--> GS_STATUS TYPE SLIS_STATUS,
    2.check layout check box fieldname is not initial.
          then set the status according to your logical conditions
          GS_STATUS-FLG_CHECKBOXES_ACTIVE = 'X'
    Hope this would help you.
    Let me know your feedback.
    Regards,
    Raju

  • My phone doesn't last more than two hours before the battery is dead. Any one know how to make the battery last longer? College student in need of help!

    I used to be able to go all day without charging my phone but now I have to charge it like every two hours and as a college student who also works. I go most of my day with a dead phone. Does anyone know how to make your battery last longer?

    Eight Battery Saving settings for your iPhone and iPad | MacIssues
    The Ultimate Guide to Solving iOS Battery Drain — Scotty Loveless

  • How to Make Hair Appear in Front of and Behind an MC Object?

    Hello again,
      I am making a character with lots of hair. I would like to know how to make the hair appear both in front of and behind the Movie Clip object.
      I'll explain further. I have the "frontHair" connected to the "head" MC. When I pivot the head, a bare spot shows in an outlined shape of the arms/legs/torso. I thought I'd remedy this by making "hairBack" and then layer it behind the object. This opens up a can of troubles.
      I can't seem to get the "hairBack" to appear behind the torso and arms. Also, the "frontHair" is now blocking me from grabbing onto the arms and legs.
      It's crucial that this character has all of the hair, but I can't seem to figure out how to make it happen.
      Please, help!
    Thank you,
       Mike
    p.s. While returning from a beer run, I thought about masking. I'm still trying to work out the logic on this one.

    Thank you for replying. II didn't know which specific layers and objects you were referring to, but I figured out the problem I was having.
      I used only one newly created "hair" object and set it to "Guide" to get it out of the way (in a sense). I then selected all the body parts (movie clips) that I could and selected "Move to Front" for each one. I used the Selection Tool to move the head (with connected hair) out of the way. After doing this I was able to select the "torso"; which was previously hidden behind the Armature Layer. I then put the head back in place and I was set to roll.
      Ah, but then I encountered another error. My animations are set to 24fps, but they are moving at least 10 times slower. This happens within Flash and in the exported swf files.
    The topic deals with "text field variable names" errors and compiler errors dealing with "Symbol 'fps' ".
    This is the address to that topic. http://forums.adobe.com/thread/1009225
    Thank you (again),
      Mike

  • How to make a field Mandatory in a Table view?

    How to make a field Mandatory in a Table view?
    The requirement is, the user should not be able to append a new Row, unless and untill he enteres the data in the column SOLD-TO. Now how do i acheive making this field madatory. Normally in Edit form view, we can go in customizing and flag Mandatory, for table view we don't have this option.
    Please can anyone of you guide me in this approach?
    Jagadish.G

    Hi Jagadish,
    have a look in this thread, part of the code you can use in eh_insert method or logic to write enable/disable insert button.
    Re: Assignment Block Mandatory
    regards
    Ismail
    Edited by: Ismail Shaik on Oct 21, 2009 11:36 AM

  • How to make best videos/audios for Creative Zen/Zen Vision W/Zen Vision M/Z

    4Easysoft Creative Zen Video Converter is an all-in-one Video Converter for Creative Zen software with high output quality and powerful video editing functions, which can help all the zen users to make the best video/audio effect.
    First of all, let’s make clear what kinds of videos/audios can get the best effect in the zen players.
    Video:
    MPEG, WMV, and AVI (MPEG-4 SP, DivX, Xvid), while MPEG-1, and MPEG-2 are supported, but must be transcoded with the included software.
    Audio:
    MP3, AAC, WMA, WAV, and Audible 2, 3, and 4 formats.
    Settings:
    Video resolution: 320×240; Video Bitrate: 500 kbps; Audio Bitrate: between 96 to 128 kbps.
    Then, let me show you how to make a full use of this powerful converter.
    Preparation:Download and install 4Easysoft Creative Zen Video Converter
    http://www.4easysoft.com/guide/creative-zen-video-converter/main.jpg
    Step 1: Run this software and add video/audio files.
    Step 2: Select output video format from the profile drop-down list.
    Click the “Profile” button to select the output video format from the drop-down list button.
    Step 3: Customize output settings.
    Click “Settings” button in the output settings area, you are allowed to customize the output parameters, specify output folder and select output format.
    Step 4: Start conversion
    Click “Start” button on right bottom of the main interface, you can begin the conversion. All the tasks of conversion will be finished at fast speed and high output quality.
    http://www.4easysoft.com/guide/creative-zen-video-converter/steps.jpg
    Tips on editing videos:
    1: Capture your favorite picture.
    Just click the “Snapshot” button to save your favorite image.
    2: Merge videos into one file.
    Just check the “merge into one file” option if you want to merge the selected contents into one file As default the merged file is named after the first selected file (either a title or a chapter)
    3: Select preference
    Click the “Preference” button and a dialog pops up, you can select the output destination, the Snapshot foler, the format of the snapshot image. You can also choose to shut down your computer or do nothing after your conversion. You can also select the CPU usage.
    4: Trim video
    You can get any clip of your video and put it on your zen.
    5: Crop video
    You can crop your video by selecting your video mode, setting crop values, or drag the frame.
    http://www.4easysoft.com/guide/creative-zen-video-converter/tips.jpg
    Ok, just enjoy movies and music with your Creative Zen player now!
    More useful tools:
    MP4 Converter is a powerful MP4 Video Converter which is designed to convert almost any video formats to MPEG-4 standard formats; WMV Converter provides perfect solution to convert common video formats to WMV with the best quality of picture and sound; Apple TV Video Converter is the excellent Apple TV converter software to convert all video files such as AVI, MPEG, WMV, MP4, MOV, RM, ASF, 3GP, VOB, etc, to Apple TV movies.
    Edited by: user11254370 on 2009-6-9 下午11:58

    Just wanted to mention - I bought the IR Remote thinking to make the player useful without navigation keys. Now I feel like I wasted more money instead of shifting to some other player by some other company with better customer service.

  • How to make VIP flag in transaction code fpp2 as non editable

    Hi everyone,
    Please guide me about:
    How to make VIP flag in T Code FPP2 as non editable only for some particular users?
    Is there any authorization object exists for this flag in FPP2 transaction?
    Actually there are many users who have authorization of transaction fpp2. But we want only some particular users should have authorization of making changes to this flag.
    Please guide with your valuable replies.
    Thanks and Regards

    Hi...MP Vashishth
    try to creat an Authorization Management ...  in customizing...
    Cross-Application Components --> SAP Business Partner --> Business Partner --> Basic Settings --> Authorization Management
    Creat an Grup..and others steps...!
    and when finish clic on Generate and Assin Authorization !!!
    I Hope it Help !
    regards
    Andre Frugulhetti
    Edited by: Andre Frugulhetti on Sep 22, 2009 9:38 PM
    Edited by: Andre Frugulhetti on Sep 22, 2009 9:39 PM

  • How to make valuation type field not changeable  in delivery tab of PO

    Hai friends,
                    I am new to badis..please guide me to solve the issue...
    how to make valuation type field not changeable  in delivery tab of PO...
    The field shd be in display mode only ...actually...there  a badi has been used before
    to get valuation type from a ztable depending on material and plant...
    Now ..my requirement is that the user shd not change the default value brought from the ztable...

    Hi SRINIVAS,
    You can achieve this from BADI only if BADI is allows you to do this. You cannot achieve everything from a BADI. Check if there is any expoting field in the methods that can be ticked for making the field in display mode. If not then you cannot achieve this from BADI.
    The field you want to default to display is a standard or zfield. If z, then you can changethe attribute of the screen field to Output only.
    Regards,
    Manish

  • How to make use of BAPI_CATIMESHEETMGR_CHANGE

    Hi All,
           We need to make use of BAPI_CATIMESHEETMGR_CHANGE for changing entered hours against an activity instead of adding new row for the same(BAPI_CATIMESHEETMGR_INSERT does that ) . Please guide me what all table parameters we should supply while executing this FM.
    Regards,
    Ganga.

    Hi Senthil,
    Now I have got how to make use of BAPI insert and change. But problme is when I need to add an hours entry for , say tuesaday of activity A for which already HAS monday hours,I am using  BAPI_CATIMESHEETMGR_INSERT AND IT IS ADDING ONE MORE ROW AS SHHOWN BELOW
    . But it adding new row. How top overcome this.
    <b>       Monday
          A     2</b>
    After insert
    <b>      Monday  Tuesday
          A     2
          A            3</b>
    =----
    SHould I use delete and insert.
    Please help me..;
    Regards,
    Ganga
    Message was edited by:
            Gangadharayya Hiremath
    Message was edited by:
            Gangadharayya Hiremath

Maybe you are looking for