ArtRage 5 Product PageArtRage Lite Product PageArtRage for iOS Product PageArtRage for Android Product PageArtRage  Android Oil Painter Free Product PageArtRage  Free Demos Page

Results 1 to 3 of 3

Thread: run script in different colors?

  1. #1
    Join Date
    Jan 2017
    Location
    Mountain View, CA
    Posts
    6

    run script in different colors?

    Hi there,

    Just starting to try out the scripting here, and this bit seems counterintuitive....

    I recorded a script in which I did not deliberately set the color of the tool (watercolor) being used. I just left it with the color that was set before recording began. Then I changed the selected color, and played the script, expecting it to be executed in the new color. But it still used the original color, even though I could see the color picker in the corner still showing the new color. My assumption was that, because I hadn't recorded a color change action, the color would be wherever I last left it.

    Is there a way to let scripts be played back at arbitrary colors? Or potentially with other variables changed as well? Or is it just completely inflexible?

    (I would also be interested in an option to pause the script and prompt the user to select a new color before proceeding. But it looks like the "add note" feature just freezes everything until you continue, so that won't do it. At least this is workaround-able by using multiple scripts, assuming I can sort out my above question.)

    Thanks,
    Tandava

  2. #2
    Join Date
    Jan 2017
    Location
    Mountain View, CA
    Posts
    6
    Ah, so I eventually found the scripting guide and learned that I could add this line at the beginning:

    Code:
    SetColourRGB(ColourR(), ColourG(), ColourB());
    And that will set the color used in the script to be the color already selected.

    There's also a SetToolProperty() function that looks like it might let you retain other settings as selected by the user, but I'm not clear on how it works. The color was the main thing I was interested in anyway, so I'm good for now.

    Would still love it if there were a way to prompt for the color in the middle of a script.

    -Tandava

  3. #3
    Join Date
    Jun 2011
    Posts
    7
    I have same problem, if i made a script to trace image and drag colors automatic from the image, but if i edit the script and i changue the image to drag colors i already see the new image on trace window, but the colors its the same of the old image, i dont know how to fix this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •