Shapelayer gradient color value

Hello

Is it possible to get color data (color, opacity, location, the orientation of the gradient) of a gradient in a shapelayer by script fill?

grad.jpggrd.jpg

I can get the property with:

myShape.property("ADBE_Vector_Graphic-G-Fill").property ("ADBE vector Grad colors");

But its 'value' field has no real value. It contains an error.

gradient.jpg

Sorry for the German screenshot.

Any info would be greatly appreciated.

Thank you!

Hello

I don't have access to the right of the AE, so cannot check, but the value of the gradient is very probably type "custom value", so cannot be displayed. AE provides no script info/framework for this type of data.

On your screenshot of the propertyValueType is 5212. To find out what he is pointing you can do:

type var = myShape.property("ADBE_Vector_Graphic-G-Fill").property ("ADBE vector Grad Colors") .propertyValueType, key;

(key in PropertyValueType) if (PropertyValueType [key] = type) {alert (key); break ;};}

You will probably receive an alert 'CUSTOM', in which case there is nothing you can do.

Xavier.

Tags: After Effects

Similar Questions

  • Changing in indesign CMYK color value

    Hello

    I created a logo in Illustrator cs4 with the CMYK value 85% 45% 0% 10% when I place the AI logo file in indesign and use the pipette to check color, it returns 87.06 50.98% 5.49% 0%. Both applications are set to the same color through bridge settings. The strange thing is, codes two colors seems to be identical to the screen and on paper. Miss me probably a fundamental idea, but Im fairly new to graphics design, so any idea why color value changes, would be appreciated.

    To simplify:

    You must use the Eyedropper to sample colors, text, and objects created in InDesign, all placed graphics are just miniature rgb from the original to serve as layout. The original image and the colors are used on printing and exporting.

    You can export colors in the swatches Panel menu in Illustrator and save the file as an .ase and load these swatches from indesign using the fly to swatch Panel there.

    Transfer not degraded.

    The other way is to copy and paste illustrator objects in indesign and delete the copy and paste job. The color chart will transfer with gradients.

  • gradient color in JDE 4.5

    I use Jde 4.5. I want to fill a rectangle with a gradient color effect rounded edge. I know it can be done in 4.6 above using the base class. Is it possible to do the same thing in 4.5 also

    4.5, you don't exactly "set background".  You paint using drawTexturedPath (drawBitmap that draws a rectangle, but you want a rounded, so drawTexturedPath is suitable).  For more information on how to create the correct path and types of points for a rounded rectangle, look here;

    Code of blackBerry to a rectangle rounded with gradient fill

    This article, however, uses the net.rim.device.api.ui.decor methods, which are not available prior to 4.6. You need to replace it with their drawShadedFilledPath with your drawTexturedPath.  DrawTexturedPath settings should be as follows:

    xPts, yPts, pointTypes - remove the above article

    offsets - null (once again, as in the article)

    xOrigin, yOrigin - 0, 0

    DUX, dvx, duy, dvy - Fixed32.toFP (1), 0, 0, Fixed32.toFP (1) respectively (you do not rotate or scaling the bitmap, are you?  Hell, maybe you are - if you use fields of different heights.  Then look at the parameter dvy)

    Bitmap - any Bitmap that you generate using suggestion of Hithredin.

    Good luck!

  • Change all the names of Swatch "Name with color value"?

    Y at - it a Javascript command change the nuances in a document to the "Name with color value" box in the Swatch Options? I know there are scripts to change the names of swatch based on the value of the color, but I'm looking for a script that applies this specific to all checkbox.

    Thanks in advance!

    This should do it:

    (function(){
      var doc=app.activeDocument,
      sw=doc.swatches.everyItem().getElements(),
      c;
      for(var i=3; i

    Is this some kind of framework that I can change in Illustrator? This gap will be displayed when this file goes to print? Help, please! Thank you.

    When the image is not embedded, Illustrator samples the values of representation. Those that are managed by color management.

  • Question of Tablet pressure. Possible to set the pressure gradient color =?

    Hello!

    Not sure if this is possible, but here's what I would do:


    Tablet pressure equal to the gradient colors.


    If I put the primary and secondary colors. The lighter I caress the closest color.
    Example of
    Color A = Blue
    Color B = Red

    Stroke light blue =
    Blow hard = red
    Way races = purple

    That would make really quick rough colouring I think. Can it be done?

    (CS5 + Intuos 4)


    Thank you

    / EDIT: also is possible in Gradients to use more advanced settings? Instead of having just 2 colors and a hotline between them, could I make a curved line? It's not as important as the main issue.

    IE: Beginning at 100: 100, go to 95:90, 90:80, 85:70... etc. 00:00

    Instead of 100: 100, 90:90, 80:80, 70:70

    Hard to explain

    Sorry, neither of the two options are possible.

  • RGB color values change when I create a PDF file in Indesign

    Hi I have a night Mare, please please please help me.

    I design a lot of websites in Indesign, export to PDF and then slice and dice the pdf in Pshop, while coding I'm going.

    I just upgraded to CS5 and seem to have a nightmare when I export my drawings in PDF format. When I open the PDF file in Acrobat or Pshop RGB color values are always different from what they were in Indesign (only subtly). I tried all the options and settings I can think when I make a PDF, but still the color values are different in the final PDF file.

    Why this keep happening, this settings, I have set before you make the PDF to ensure my RGB color values remain the same.

    I use Acrobat 7 Professional.

    Do not include the profiles. You have a problem of current color management (workspaces probably not synchronized). If there is no profile, the opeing application will ask what it is or take the current work profile, which is what you want, if the numbers must be preserved.

  • How to get the RGB color values on the color picker component?

    How to get the RGB color values on the color picker component?

    trace (cp.selectedColor);

    Returns something like:

    16750950

    trace (key2cp.hexValue);

    Returns:

    ff9966

    I'm looking for RGB, for example, 0.5 0.5 0.5, corresponding to a gray color.

    Is there a chance that the RGB settings are hidden somewhere or is there a conversion function at least?

    Thank you.

    If key2cp.hexValue returns a string like 'abcdef', use:

    var s:String = key2cp.hexValue;

    var n: Number = Number("0x"+s);

    var r: Number = n > 16 & 0xff;
    var g:Number = n > 8 & 0xff;
    var b:Number = n & 0xff;

  • Another question border.fill.color.value

    I'm trying to script an if statement to set the background value according to the instanceIndex of a subform.  I tried it in the click event of the addButton and the subform indexChange event.  I saw an example of exactly what I'm trying to do, but for the life of me I can't find it now.  I searched this forum both the users of the forum and I know that it was in one of them.  In any case, here's what the script looks like:

    -form1. Main_Subform.AdditionalAssaysSubform::indexChange :-(JavaScript, both).

    If

    (form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '0') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    If(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '2') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '4') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '6') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '8') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '1') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    If(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '3') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '5') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '7') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '9') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    I also tried to use the or (|) and combine the fi.  My question is... I use the correct event; I place the conditional statement in the appropriate place; or I again in left field?  Any suggestions would be much appreciated.  Thanks in advance. -rpeterson

    Hi Renee,.

    Here is an example highlighting the background color of the field nested inside a repeating subform based on the index of the repeating subform. The background color will not change enter/exit the fields but will create a color pattern similar to shadow line of the tables.

    This JavaScript script lives in the repeating subform AdditionalAssaysSubform indexChange event.

    nIndex var = this.instanceIndex;
    nColor var;

    If (nIndex % 2 == 0)
    nColor = "240,240,240";
    on the other
    nColor = "255,255,255";

    Use the following if you want to change the background color of the object
    AddedAssaysDropdown.border.fill.color.value = nColor;
    AddedAssaysDataTable.border.fill.color.value = nColor;
    AddedAssayAvgNeg.border.fill.color.value = nColor;
    AddedAssayDisplacement.border.fill.color.value = nColor;

    Or background color of the following if you want to change the widget
    AddedAssaysDropdown.ui.oneOfChild.border.fill.color.value = nColor;
    AddedAssaysDataTable.ui.oneOfChild.border.fill.color.value = nColor;
    AddedAssayAvgNeg.ui.oneOfChild.border.fill.color.value = nColor;
    AddedAssayDisplacement.ui.oneOfChild.border.fill.color.value = nColor;

    See you soon

    Helen

  • Z50-75: gradient colors, color banding, dark / dim display (display faulty?)

    I'm having a horrible gradient on my new Z50-75 problem. Everything else seems good, but the quality of the display is terrifying. I'm afraid that this is not an unprecedented case. Is it possible if this Lenovo would sell such a display in 2014? I literally counted the shades of colors. First I thought it was a software problem, I checked all possible settings, gamma, saturation, brightness, bitrate etc. but they all seem fine. They promote this laptop as a multimedia device; screen restores all features multimedia strains. The nuances in the 1080 p movies count? Please tell me it's fixable.

    Link to photo/image

    Mod comment: Over size photo converted to establish a link.

    25/03/15 EDIT: revised subject line to improve research opportunities. Amy_Lenovo

    31/03/15 EDIT: revised once 2nd topic. Amy_Lenovo


  • Track 3D color ramp - color values

    Hi all

    The color of the 3D locations ramp shows only 3 values; not all the values for each color appears (see below).

    The actual values associated with each color is available through the properties of Plot 3D (during edit) dialog box.

    How can I access values for these colors programmatically such that I can display to the user?

    Thank you

    Battler.


  • in the cell indicator digital table according to the color value

    Is it possible to change the color of text in individual cells of a digital display indicator depends on the value of the digital displayed in this cell.

    You can use the ListBox instead of indicators in table. You can change the ownership of each cell individually.

  • How to translate a custom color for a usable COLOR value?

    I used ColorPic to select the next colour which is reddish brown:

    • WebSnap: 2168972
    • # 8 1821
    • Hue 355, Sam 211, Val 140 140 Grn 24 33 blue red

    If I'm using WebSnap value, such as the following, the background color is actually a blue-green blue. I understand that color -the color in the background the value (in the form: 0xRRGGBB).

    I tried 1402433 as well... and the background is green.

    BrowserField browser = new BrowserField();
    browser.setBackground(2168972);
    subManager.add(browser);
    

    How do I put implement a value of int custom color?

    You have in fact already. Your hex value is the color you'll put in there

    # 8 1821 is 0x8C1821

  • Selected menu Z10 color value option?

    I am looking for the value of the blue color used in the menus for the Z10, specifically the small blue bar that appears when you select an item in the menu. I was looking for a part of the design documentation but was unable to find a value for the color blue.

    Thanks in advance,

    -J

    A few screenshots of Dev Alpha C with the recent version of the OS:

    DevAlphaC1.png

    DevAlphaC2.png

    Dev Alpha A (with the old version):

    DevAlphaA1.png

    DevAlphaA2.png

Maybe you are looking for