Script

This topic contains 12 replies, has 2 voices, and was last updated by  Cassel 1 day, 19 hours ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #25602

    Bitte
    Participant

    I try to make a script that can duplitace an image into – in this case – 72 layers incl. the first one.

    I put an image in the first square and then run my script.

    But the round bead becomes an oval bead when the script dupl. the image.

    The document is 900 x 800 pxl and the square (grid) 100.

    Any idea what i am doung wrong ?

    #25603

    Cassel
    Keymaster

    You are trying to make the script from scratch?

    What is the script copying? What command is it using in order to paste the image into subsequent spots?

    Since the first image is round, why do you need the 72 copies of it? Are they going to show some variations? or rotations?

    #25656

    Bitte
    Participant

    Yes i try to make a script duplicating and then i’ m going to make a script turning each image in degrees.

    When i started recording i used Ctrl +C and then CTRL + E.

    They are going to show different  rotations.

    The image i show was just a test with a round bead.

    #25687

    Cassel
    Keymaster

    I am still unsure why the round bead, once copied and pasted becomes oval. You are using Ctrl-E which is Paste as a selection. Maybe that is distorting? But how did you get to paste in each individual locations? Also, why not use a regular Paste as a new layer?

    #25707

    Bitte
    Participant

    When a pasted – then i just moved the bead into position. I tried to start with en oval bead and when the script duplicated the bead it becomes bigger.

    I will red0 the script. I’ ll try paste as a new layer.

    #25768

    Bitte
    Participant

    You were right. The problem was  Paste + E. Using  Paste + V makes everything looks fine.

    Thank you so much for your help.

    #26846

    Bitte
    Participant

    Now i have tried several times not using  Paste + E but the problem is back.

    I  thought it might be when i start with grid and snap to grid så i tried only with grid but the same happens.

    This is how i do:

    Start with  a document 900×800 pxl and grid 100. I place a dot  in the upper left square.

    Now i start  the scipt.

    In layer i rightclick >duplicate and mowe the dot   until all squares has a dot.

    I stop the script.

    When i try the script i put an oval –  this time  – in the upper left square and then start the script. Then every oval becomes larger almost round and fill up  each square.

    I wrote about my problem again thinking perhaps someone had the sam problem and found out how to do.

    I’ m a bit lazy  so i would be happy to find aout a way to use the script for duplicating.

     

    #26854

    Cassel
    Keymaster

    A couple of questions:

    – how do you MOVE the dot? Are you using the Move tool or another tool?
    – how is the dot made? Is it a brush imprint? A vector shape?

    #26885

    Bitte
    Participant

    I use the move tool.

    This time the dot was made with a brush – just an easy way when i try to find out what the problem is.

    I have tried vector shapes and not vector.  I have tried using tubes too.

    #26887

    Cassel
    Keymaster

    At which step is the shape changing size?

    Have you tried running the script with single step to see exactly when it happens? You can find that under File > Script > Single Step. That will then require you to say OK for EVERY single step before it continues, so that you can really see what is the next step, and what the result is before and after each of those steps. This is a common troubleshooting trick.

    #26900

    Bitte
    Participant

    I tried File > Script > Single Step. It is 3 steps before the image is enlarged.

    This is how it looks.

    Oh oh the order of the pictures was wrong when I uploaded them hmm

     

     

    • This reply was modified 5 days, 15 hours ago by  Bitte.
    #27125

    Bitte
    Participant

    I tried to redo the script several times but the same thing happens.

     

    #27128

    Cassel
    Keymaster

    I see a couple of things that MIGHT be an issue.

    1- do you have the Snap to guides active? When you recorded the script, did it snap to those guides?

    2- I see you are using the Pick tool. Can you try using the Move tool instead?

     

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.