How to draw pixel data in a layer of generator

Hello

How can you draw arbitrary RGBA data in a layer?

Is there an API that do this directly? So I'm guessing not, could go in the target box, by selecting each pixel and then by a fill with the color needed operation - or maybe draw each pixel with the pencil tool, etc. Is there a standard way to do such things? I guess people must have had to do, but I couldn't find any discussion or the code examples.

If the use case is not clear, I call generator.getPixmap on a layer, then I change the data and want to draw the results in another layer. It is through generator, generator of code or JSX would work (although the API generator would be much easier to work with).

Thank you!

Hi, it's weird, it worked, maybe it's because the progress bar, I know that sometimes it crashes Photoshop when you have a palette window... I tested the script with the latest version of the CC on Windows and it worked fine... In any case, you can do this effect desired directly in Photoshop and interactivity as well. I created a screen on how I did it:

This way when you edit the smart object it will automatically update the margins of threshold. All you have to be careful is not having a black with the glow of the 0 in your color. You can have it with a value of 1 instead.

Tags: Photoshop

Similar Questions

  • How can I draw dynamic data that I get a hardware DAQ against each other?

    Hi all

    I am trying to acquire voltage and current data of DAQ hardware. My goal is plotted against votlagein current a continuous path. As the votlage is increased at intervals of 1 Volt, every second I want to see how the current. However, this data is dynamic and I need help find how to draw in a single chart. Any thoughts on how to draw the two different dynamic data against each other in the same graph?

    You help will be very appreciated.

    Thank you

    If I understand what you're saying, looks like you want to have the update of XY graph with each new data point (or points) acquired, but also choose to keep the previous data on the XY graph.  If that's what you're after, I build on my previous example.  For the method of use of the express VI build XY graph, you can simply double click on it and uncheck the "erase data on each call.  For the other method of construction of the dashboard cluster, you will need to add a few records to offset to maintain the previous itterations table values.  Here's the updated image:

  • How to get input on the arbitrary draw event data?

    Hi all

    I'm trying to draw a histogram on an arbitrary parameter (such as the effect of 'Levels'). Part of the draw is good, but I have a problem with the data in the input layer (param [0]).

    All I have to do now is read the entry about the event draw arbitrary data. But there is not the input on the draw event pointer. So I called the PF_CHECKOUT_PARAM() function to get the input data, and it works!

    When I test in AE, I created a layer A, and added some color correction effects to the layer before my effect added A layer. The problem is the input layer that read my effect is not the result of the previous effects that I applied before.

    Has any way to read the latest entry in the arbitrary event data?

    Thank you.

    the result of caching is a smart thing to do, but as you mentioned, when the

    the user sets the controls in a State that AE has already cached the image

    for, any rendering happens, and your user interface crashes on an irrelevant screen.

    (as is the case with 'levels' (or at least was))

    You can use PF_GetCurrentState PF_HasParamChanged during a draw event to

    know if your plug-in State param has changed sine the last call to draw.

    If so you can't, for a new record using PF_OutFlag_FORCE_RERENDER

  • How to solve "here has been a problem to read the data in the layer. read the composite data instead? »

    Hello

    I'm working on the UI for a 2 month Word Press theme, and it has a ton of layers with file size of 900 MB.

    When designing, I get a message that says:

    "here was a problem to read the data in the layer. read the composite data instead? »

    Please solve this problem because I am so tired of working on this that I don't want this effort in vain.

    and sorry if my English is bad.

    dffd.jpg

    Hi AymanAlrifai,

    Would you be able to share the file problem with me zipped upward? petgreen [at] adobe [dot] com

    I'll see if I have the same problem and check with the team to investigate the issue here and see if we can resolve it for you.

    Kind regards

    Pete

  • How to draw simple shapes in PF_EFFECTWORLD / PF_LAYERDEF

    Hi, AE community!

    My question is perhaps a little strange, but I'll try

    Is there (SDK) a methods to create Visual as forms a circle or oval, line, perhaps something like a point of color and pen?

    What I want to get:

    Read data (color, position) of composition/layer source and create small shapes with the same brightness and the same position in the new world, then mix it with the output.

    Available solutions I see:

    1. with the help of suites, as a

    Suites.FillMatteSuite2()->fill()
    
    
    
    

    with a form of circle in the arguments. Fill() receive a PF_Rect, I know not, but might a similar solution undeclared in SDK_Guide ?

    2. with the help of the DrawBot with bows or similar courses with filling.

    I found different examples 'ColorGrid' and 'CCU' practices, but with the help of DrawBot confuses me, because in my PF_OutFlag_NON_PARAM_VARY project used Pavilion and I should call Render function to calculate the particles of the post each time and move them. With DrawBot (I understand the Guide), I have to use DrawBot in the Draw event. Or maybe it's all wrong way and DrawBot are not created for tasks like my.

    3. using an iteration suites.

    In the examples of projects, I found complex loops with iterate world of entry and draw pixels in a special for the area of the circle (if I understood). In other words, I can create array with (special for my task) pixel coordinate system, creating points for particles in this table, then loop through that array and move at the same in the world of the output. OK, if this way right, then I need to use mathematics to calculate ovals or circles, and then calculate the feathers or aliasing for this form. The problem requires clear that computing power

    Maybe all these solutions won't and I can use another way to solve my task? There may be some functions to draw different shapes and I missed them in the SDK Guide? I'm afraid to reinvent the wheel, because so far got only square

    Anyway, thanks for any advice or the way to solve my problem!

    Well, I found answers to my questions. If someone needs my help, please, write them in this thread.

  • Panel SWF: How get/set pixel or better - enter and paste BitmapData

    Hello world

    try to understand how to read and write the color of the pixel image or better - layer current, but does not include how to proceed. Is this even possible? The main idea - it of the current pick layer, put it in the SWF panel. Doing some modifications and return to Photoshop or write per pixel. Is not serious.

    How do I know?

    I'm using Win7 x 64, Photoshop CS6

    We do not have a direct way to get data back from a panel pixel.

    You can try to get a connection socket via the SDK of connections and is this way pixel data. Not sure how hard that would be. There is an example of the AIR in the connections of the SDK, but I am not sure if the socket interface will work inside the SWF panel.

    Photoshop to write them to disk and then read in your Panel to tell would be probably quite awkward.

  • Yosemite does not support AppleWorks. What are the alternatives for the light, drawing, spreadsheets, data management?

    No more Appleworks in Yosemite. What software do I need to do the simple drawing, spreadsheets, data management?

    Yes, it's old enough ;-)

    For drawing, how about something like Acorn (on the Mac App Store)? For calculation and processing sheets, there are numbers and Pages available at Apple, the Mac App store.

  • How to draw a box under a trace of waveform?

    Hi all

    I have a graph of waveform of 3000 point showing a series of peaks.  For one of these peaks, for which I know the beginning and end clues, I would draw a box under the waveform on the graph, to highlight its position programmatically.  I don't know if there is a way to do it.

    I figured out how to draw cursors at the beginning and at the end, but finally I do for multiple peaks, and forest of cursors quickly becomes confused.  A simple shaded box works much better.

    Any ideas?

    Many thanks in advance,

    RipRock99

    A great thank you GerdW!

    The code LV was very close to what I wanted to do and is easy to use to determine how to make my code produces the result I wanted.  Basically, I added another form of wave to my chart, using my known indices x to set the values of Y for the areas I wanted to be gray as + infinity and leaving the rest to =-infinity.  I then plotted this second graph on top of the original waveform and the property node to set the fill indicator for - infinite.

    That does not answer the general question of how to draw a filled rectangle with the coordinates on a graph, but this does not fix what I wanted to achieve.

    Bravo and thanks,

    RipRock99

    PS: I'm including a preview of the result and a snapshot of the code used to define the property node programmatically.  I do not understand my code just as it is complicated, and I would also need to add a large set of data.  I hope that the pictures are enough to help someone else referencing this Council!

  • How to draw text bordered on Bitmap usgin class Graphics?

    Hi guys.

    I'm drawing text on a line graph.

    Here is the example.

    The text color is black. Border is white (edge of letters).

    How to draw like this?

    Thanks in advance.

    If you are interested in a vaguely similar effect, but without all the subtle shadows, I have a suggestion. Draw the white text, several times, gap between the nominal position of a pixel or two in different directions and then draw the text in black at the nominal position. The idea is that white copies create an enlargement of each letter which becomes an overview when you draw the black letter on it. You may need to do this a letter at a time, allowing more space between the letters, rather than draw the entire chain at the same time.

  • How to draw a circle in photoshop using vbs

    How to draw a circle in photoshop using script, do not pathitems

    You don't want to use a shape layer? You can use scriptlistener to record make a circle for it, then put in a variable for values. You can also use scriptlistener to make a round selection and then caress than. You could also do a bunch of small round pieces that you can fill out and then use a little math to place a series of them in a circle.

  • How to subtract the DATE CURRENT SYSTEM and tire of Siebel

    Hi Experts,

    How to subtract the date of DAY and Date, which came in Siebel?

    Example:
    The DAY - Date records in Siebel

    Current date = 25/11/2012
    Registration date in Siebel = 20/11/2012

    Technically the answers I want will be 5.
    How can I do this? My idea is to put a phrase in the MDB layer, but I want to just get your ideas:

    Current_Date - "Oracle Data Warehouse. "'"' Catalogue'."" """dbo"."" TABLE_NAME ". "' COLUMN_NAME '.


    Thank you!

    Hello

    You can use the available in OBIEE timestampdiff function to get the difference between two dates. This is one of the blogs that can help with the syntax.

    http://Shahin-OBIEE.blogspot.in/2012/04/various-calculations-for-date_16.html

    You can also google timestampdiff function for details on usage and syntax.

    Thank you

  • How to draw a trace of round clip exactly where you want

    I need to put some text bent in this white space where the circle but thin is just at the top.  I know how to draw a circle with the tool path ellipse and then insert the top text tool and enter the text.  What I am having a period very difficult is how to draw this way and re - its size so that fits it exactly where I want to go?  what I do now is that I put the cursor anywhere on the canvas, select the ellipse tool, hold down the SHIFT key for a perfect circle but when I call he's not where I want it. then when I choose the paths, I can not actually move the path to where I want to.

    If I go back and move my cursor down on the Board for re - draw the path, I still can't get it wherei like it.

    can anyone help at home.

    sticker.jpg

    It isn't really round.  It is slightly flattened vertically.

    In any case...

    I have an Action which places the guides at 50% (50pc) vertically and horizontally to give me exactly in the middle of a file image, or you place them manually with view > new Guide.

    After doing that I would put the circular select this center point using the keys SHIFT and Alt (Opt) and get it more or less where I wanted.  Then change the selection in a work path.

    You can use a manual for remodel transformation and position who work the path by selecting it in the Trace Panel.

    Then place your text and if you need tweaking, use free transform again, but on the text layer.

    You can also use free transform to reshape the BG graphic to make around it.

  • How to draw a similar to the logo SOCL smile?

    Hello

    How to draw a similar to the logo SOCL smile? Please send me. PSD file, I want to know!

    I've seen the Logo SOCL, a smile is and I tried to do similar but failed
    several times, I wish someone could send me a. PSD with the logo and thicknesses, etc.

    This is the logo of btw: http://www.indiesunlimited.com/wp-content/uploads/2012/12/SOCl-logo.jpg

    Thanks in advance...

    This forum is intended to help you learn how to use Photoshop, does not ask us to do things for you.

    If you want to replicate the smile exactly and do not want to use the pen tool, here are some steps on how to do it:

    1. take the magic wand tool and select the smile.

    2 go to Select > refine edge... to refine your selection.

    3 go to layer > New > Layer Via Copy to add your selection to a new layer.

    You should now have the part smile of the logo on its own so that you can edit freely.

    See you soon,.

    Kendall

  • How to draw a line in Muse?

    I think that it is a stupid Questtion, but I can't.

    How to draw a line?

    Draw a rectangle with 1 Pixel in height and no respect.

    If you want to dashed or dotted lines:

    http://forums.Adobe.com/ideas/1944#comment-5008

  • How to draw lines on a map with CS4

    I have CS4 and would like to know how to draw lines on a map image. I'm a beginner, so what do I do?

    It's about CS6, but CS4 would be a similar process:

    Here's a way to draw a line:

    Select the pen tool.

    Make a new layer which will be placed on top of the existing layer in the map.

    Draw a line with the pen tool, you can see the points that I made to create curves.

    Here is more information on the pen tool: http://psd.tutsplus.com/tutorials/tools-tips/photoshops-pen-tool-the-comprehensive-guide/

    http://www.Tutorial9.NET/tutorials/Photoshop-tutorials/pen-tool-basics-in-Photoshop/

    In Photoshop, you have to go back to the options bar and select "shape". This allows you to place a 'coup' on the path (line) that you just created. Otherwise, it will not be displayed.

    You can see the settings in the Option bar above, I did. I made that Fill was placed on 'none', and I chose a color for my race, but also a point of size for the thickness of the line until its visible on my card.

    It comes to the final.

    Good luck!

    Janelle

Maybe you are looking for