Using previous rendering result

Hello all,
I write an effect plugin which work interactively with layer/composition viewer. Effect uses its own brush (see Paint or Distort->Liquify effects for example) and user can draw something on video with this effect.
Example:
So i rerender current frame with each user action (with each new brush stroke added). I save all strokes and can render resulting frame from "source" layer frame, but this way is a bit slow. More efficient solution is to use result of previous rendering and apply new brush stroke to it.
Is there a way to get previous rendering result for current frame in AE? (it should be saved in cache at least).
Thanks!

Thx for reply, shachar!
shachar carmi wrote:
i'll begin with the bad news.
you can't ask AE for the last output of your plug-in.
maybe it's cached, maybe it's not, but either way you can't access it.
Thx, my doubts are gone)
shachar carmi wrote:
 you can cache it yourself in the sequence_data memory block.checkout the following thread:
http://forums.adobe.com/message/2732025#273202
it's very similar to what you'd want to do if you choose to cache your output.
Yes, i agree. I thought about it too. But when I attempted to realize this solution first I faced with the problem of input frame resolution chaos (when AE can't calculate result realtime, it try to get result with lower resolution). Indeed, your proposal partially solves the problem.
Thanks again.

Similar Messages

  • Renderfarm error: Pre-Flight Error: Unable to import previously rendered file

    I have an error message I am receiving during network rendering on a  renderfarm, and was hoping for some help. The error is this: "Pre-Flight  Error: Unable to import previously rendered file."
    Here is my setup and some details:
    The user makes a comp, and adds it to the render queue set to render as a  quicktime movie file. Then they run a script which precomps everything  and sets it to render as a image sequence with "Skip existing files"  checked. This comp also has a post-render action set to import &  replace usage. After this comp is rendered, it gets pulled back into the  project and the original render item starts rendering the movie file  using the previously rendered image sequence as it's only layer.
    This project gets saved to a server where our render nodes are watching  the folder. All the render nodes pick up the project and proceed to  render the image sequence. Then, after they are done, 1 machine will  pick up the second render item and begin rendering the image sequence  into the final quicktime movie.
    All of this goes smoothly about 90% of the time. However, in some cases  an error shows up in the watch folder html page for the 2nd render item  (the one converting the image sequence to the movie). The error says  "Pre-Flight Error: Unable to import previously rendered file." After the  error occurs, no machines will start rendering the project.
    My first guess is that the render engine on one machine somehow skips  rendering the image sequence comp, and then tries to render the  quicktime movie comp and fails because the image sequence has not yet  been rendered. However, I can't figure out why After Effects would skip  rendering the first comp.
    Does anyone have any idea?
    Thanks for the help, and let me know if you have any more questions about the setup,
    Adam

    Well, you should get used to the fact that it's simply gone... Just looking at your screenshot makes me grind my teeth. From delayed writing of files to fragmentation in user folders to Windows doing obscure things this could be anything, but seriously, saving important files on the desktop? That is simply sloppy data management. There is no other way to say it. Read up on what proper file naming, incremental saving and backups are good for and why keeping work files separate and away from your user home directories is actually a quite simple, yet effective concept to avoid exactly that kind of issue.
    Mylenium

  • OA Query Region shows previous search results when moving between pages

    Hello All,
    I have a custom OA Page which has a query region based on a LOV for searching device names. The problem I am facing is once device name is searched and I go to another page through the quick links and come back to same Search Device page, it shows the previous searched results. I am not retaining AM for any page navigation.
    Things I have already tried :
    1 . I have tried refreshing VO by using clearcache and reset methods on VO.
    2. Get the Go button from the query region in ProcessFormRequest and on Go button click I use forwardImmediatelyToCurrentPage. And in Process Request method I am querying the results manually when Go button is clicked. Otherwise I am manually making the where clause condition 1=2 and ensuring that the VO does not return any rows.
    But still I am not able to get rid of the issue.
    The code used is pasted below for your reference. It is urgent. Can you please provide any pointers.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    try
    VpaAdminAMImpl am = (VpaAdminAMImpl)pageContext.getApplicationModule(webBean);
    TkvpaDeviceSearchVOImpl deviceAll = am.getTkvpaDeviceSearchVO1();
    deviceAll.clearCache();
    deviceAll.reset();
    deviceAll.setWhereClause("1=2");
    deviceAll.setWhereClauseParams(null);
    String query = deviceAll.getQuery();
    System.out.println("getSearchResult query :="+query);
    deviceAll.executeQuery();
    OAQueryBean queryBean = (OAQueryBean)webBean.findChildRecursive("region1");
    String goAction = queryBean.getGoButtonName();
    if(pageContext.getParameter(goAction) != null)
    getSearchResult(am, pageContext, webBean);
    catch(Exception ex)
    throwException("SearchDeviceCO.processRequest",ex);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    String action = pageContext.getParameter(EVENT_PARAM);
    OAQueryBean queryBean = (OAQueryBean)webBean.findChildRecursive("region1");
    String Go = queryBean.getGoButtonName();
    System.out.println(pageContext.getParameter(Go));
    if(pageContext.getParameter(Go) != null)
    pageContext.forwardImmediatelyToCurrentPage(null,false,"N");
    public void getSearchResult(VpaAdminAMImpl am, OAPageContext pageContext, OAWebBean webBean)
    try
    String device = pageContext.getParameter("deviceSearch");
    StringBuffer sb = new StringBuffer();
    if(device != null && device != "")
    sb.append(" DEVICE_NAME = '");
    sb.append(device);
    sb.append("'");
    String sql = sb.toString();
    TkvpaDeviceSearchVOImpl deviceAll = am.getTkvpaDeviceSearchVO1();
    deviceAll.setWhereClause(sql);
    deviceAll.setWhereClauseParams(null);
    String query = deviceAll.getQuery();
    System.out.println("getSearchResult query :="+query);
    deviceAll.executeQuery();
    }catch(Exception e)
    e.printStackTrace();
    Thanks in Advance,
    Abhishek Mishra

    Hi Anand,
    The getSearchResult method also does the same thing. I have also tried to remove the dependency on getSearchResult and wrote the same code in ProcessRequest() but still it does not solve the problem.
    In fact, I have ensured that the VO does not contain any records and have checked these by using SOPs and debug in JDEV. The interesting point is the VO does not have any records but still the previous search data and search criteria is shown when we navigate to the page. Printed the query just before performing execute query and that query does not return any records. Also tried printing something if there are any records in the VO by using vo.hasNext().
    Data gets stored somewhere and it is shown when the page is navigated from other page. FYI, this page is accessed from quick links and there are other pages also in the quick links and when we navigate between these pages we get to see the previous search results. Tried methods clearCache(), reset() on VOs but still unsuccessful.
    Not even that I thought that the VO may be corrupted in some sense so I created a new VO instance in the AM and then used newly created VO instance in the query region. But still no luck.
    Any pointers will be appreciated.
    Thanks in Advance,
    Abhishek

  • I want to show previous test result on uut screen?

    Hi.
    I'm using Test Stand 2013. I want to show previous uut result on new uut screen. How can i do it? Which variable can i use for it?

    You could store the previous results using the PostUUT callback (or near that if you are changing the process model directly) and store the result status in a FileGlobal indexed by testsocket index. For example something like:
    FileGlobals.LastTestSocketStatus[RunState.TestSockets.MyIndex]
    To make sure the array is big enough you could dynamically size it somewhere using SetNumElements() once you know how many testsockets there are.
    Hope this helps,
    -Doug

  • Calculate using previous column and rows

    Hello TNO members,
    I have a complicated problem I need to solve, how ever I am missing knowledge about calculating using previous rows and columns in current select.
    Test data
    with t as (
      select 1 as box, 1 as box_group, 10 as max_qty from dual union all
      select 2, 1, 15 from dual union all
      select 3, 1, 40 from dual union all
      select 4, 1, 45 from dual union all
      select 5, 2, 15 from dual union all
      select 6, 2, 20 from dual union all
      select 7, 2, 20 from dual union all
      select 8, 3, 20 from dual)Expected Output result
    box box_group max_qty assigned_from_60
    1   1         10      10  
    2   1         15      15
    3   1         40      17
    4   1         45      18
    5   2         15      0
    6   2         20      0
    7   2         20      0
    8   3         20      0The problem:
    In total 60 items are shared among the boxes in the same group, ordered by the lowest max_qty.
    10 items can be assign to each box in group 1. (Used items: 40)
    The remaining 20 items will be assigned to the other boxes in group 1.
    5 more items can be assign to each box in group 1 (Used items: 15)
    The remaining 15 items will be assigned to the remaining boxes in group 1.
    2 more items can be assign to each box in group 1 (used items: 4)
    One item remains. When items cannot be shared equally among the remaining boxes, ordered by the highest max_quantity, assign +1 till no item remains.
    My solution in steps:
    1. Calculate max_qty difference. How can I calculate the difference between the max_qty from box 1 and 2? Tricky is not to calculate the difference between different groups.
    This means output result should be something like
    box box_group max_qty qty_dif
    1   1         10      10  
    2   1         15      5
    3   1         40      25
    4   1         45      5
    5   2         15      15
    6   2         20      5
    7   2         20      0
    8   3         20      202. Remaining boxes in the same group. I want to know how many boxes are in the same group. Especially the remaining boxes when the current max_quantity is filled.
    Using the following code does not result in the correct output, what is wrong or missing here?
    count(*) over(partition by box_group order by max_qty asc range between current row and unbounded following) This means output result should be something like
    box box_group max_qty qty_dif rem_boxes
    1   1         10      10      4  
    2   1         15      5       3
    3   1         40      25      2
    4   1         45      5       1
    5   2         15      15      3
    6   2         20      5       2
    7   2         20      0       1
    8   3         20      20      13. Calculate costs. This one is faily easy rem_boxes * qty_dif (*per row*)
    This means output result should be something like
    box box_group max_qty qty_dif rem_boxes cost
    1   1         10      10      4         40
    2   1         15      5       3         15
    3   1         40      25      2         50
    4   1         45      5       1         5
    5   2         15      15      3         45
    6   2         20      5       2         10
    7   2         20      0       1         0
    8   3         20      20      1         204. Calculate rem_items. 60 - (rem_boxes * qty_dif of box 1) - (rem_boxes * qty_dif of box 2) - (rem_boxes * qty_dif
    of box n). How can I calculate using results of previous rows? (*all, not per group*)
    This means output result should be something like
    box box_group max_qty qty_dif rem_boxes cost rem_items
    1   1         10      10      4         40   20
    2   1         15      5       3         15   5
    3   1         40      25      2         50   -45
    4   1         45      5       1         5    -50
    5   2         15      15      3         45   -95
    6   2         20      5       2         10   -105
    7   2         20      0       1         0    -105
    8   3         20      20      1         20   -1255. Assign full quantity. For each row check if rem_items > 0 then 1 else 0
    This means output result should be something like
    box box_group max_qty qty_dif rem_boxes cost rem_items assign
    1   1         10      10      4         40   20        1
    2   1         15      5       3         15   5         1
    3   1         40      25      2         50   -45       0
    4   1         45      5       1         5    -50       0
    5   2         15      15      3         45   -95       0
    6   2         20      5       2         10   -105      0
    7   2         20      0       1         0    -105      0
    8   3         20      20      1         20   -125      06. Calculate assign quantity attemp 1. Calculate assign quantity of remaining boxes per group
    When assign = 1 then max_qty else pervious a_qty (*within same group*)
    This means output result should be something like
    box box_group max_qty qty_dif rem_boxes cost rem_items assign a_qty
    1   1         10      10      4         40   20        1       10
    2   1         15      5       3         15   5         1       15
    3   1         40      25      2         50   -45       0       15
    4   1         45      5       1         5    -50       0       15
    5   2         15      15      3         45   -95       0       0
    6   2         20      5       2         10   -105      0       0
    7   2         20      0       1         0    -105      0       0
    8   3         20      20      1         20   -125      0       0How to solve the rest, I do not know yet. Any other suggestion to solve this problem, is welcome.
    Since I'm not really a professional this is what I tried till now
    with z as (
      select 1 as box, 1 as box_group, 10 as max_qty from dual union all
      select 2, 1, 15 from dual union all
      select 3, 1, 40 from dual union all
      select 4, 1, 45 from dual union all
      select 5, 2, 15 from dual union all
      select 6, 2, 20 from dual union all
      select 7, 2, 20 from dual union all
      select 8, 3, 20 from dual)
    select u.*,
           case
             when u.assign = 2 then u.max_qty
             when u.assign = 1 then 0
             when u.assign = 0 then 0
           end as assigned_qty
    from
        select v.*,
               case
                 when 60 - sum(v.max_qty) over (order by v.box_group, v.max_qty, v.box) >= 0
                   and v.rem_items_before >= 0 then 2
                 when 60 - sum(v.max_qty) over (order by v.box_group, v.max_qty, v.box) < 0
                   and v.rem_items_before > 0 then 1 else 0
               end as assign
        from
            select w.*,
                   w.rem_items_after + w.max_qty as rem_items_before
            from
                select x.*,
                       60 - x.qty_assigned as rem_items_after
                from  
                    select y.*,
                           y.max_qty * y.rem_boxes as total_cost,
                           sum(y.max_qty) over (order by y.box_group, y.max_qty, y.box) as qty_assigned
                    from 
                        select z.*,
                               count(*) over (partition by z.box_group order by z.max_qty, z.box asc range between current row and unbounded following) as rem_boxes
                        from z
                      ) y
                  ) x
              ) w
          ) v
      ) uKind regards,
    Metro
    Edited by: 858378 on 30-mei-2011 4:39
    Edited by: 858378 on 30-mei-2011 5:05

    Hi, Metro,
    858378 wrote:
    Hello, thanks for your help so far.
    The course I am in, teaches you how to use the basic pl sql language such are selecting from tables.Is it about PL/SQL or SQL?
    I have learned things about
    - SELECT
    - FROM
    - WHERE
    - GROUP BY
    - ORDER BY
    - SUB SELECTION IN SELECT
    - SUB SELECTION IN FROM
    - SUM, COUNT, MIN, MAX
    - CASES
    - INNER, OUTER, LEFT, FULL, CROSS JOINSAll of these are parts of the SQL language, not PL/SQL.
    We are now at partitioning.Are you specifically at partitioning, or iare you at a point where the book talks about analytic functions, which sometimes, but not always, have a PARTTION BY clause?
    It's written in Dutch, I tried to translate it, so it might not be well written English.
    Excercise 192
    Distribution center 'One by one' wants to automate the distribution process.
    Items are distributed to the boxes one by one. Sorry, I can't figure out what Exercise 192 is, based on just that.
    It is similar to the next excercise, but this above was a lot more straight to the point.
    *Excercise 193*
    Distribution center 'All in one box' wants to automate the distribution process.
    One of the major changes in this process is to distribute items equally to all boxes in the same group.
    This means starting from the lowest quantity, assign the lowest quantity to all boxes in the same group if possible.
    If this is not possible distribute the amount of items divided by the number of boxes in the same group. If the amount of items per box is lower than 1 and not 0.
    Divide the remaining items per box ordered by the box with the highest quantity, till there are no items left.
    When it is possible to distribute the lowest quantity to all boxes, move up to the next box in the same group.
    When all boxes in the same group are filled to their maximum quantity, move up to the next group and repeat this process. ...
    So Exercise 193 is what you asked yesterday, right?
    A) Order the following information by box_group and max_qty as described.
    B) Calculate the distribution results for 60, 120, 170 items.
    When I have 60 items, the following output result should be
    box box_group max_qty assigned_from_60
    1   1         10      10  
    2   1         15      15
    3   1         40      17
    4   1         45      18
    5   2         15      0
    6   2         20      0
    7   2         20      0
    8   3         20      0Box 1 and 2 can be filled completely as you can fill atleast 10 to box 1,2,3,4 and an additional 5 to box 2, 3 and 4.
    The last item goes to the box 4.
    when I have 120 items
    box box_group max_qty assigned_from_120
    1   1         10      10  
    2   1         15      15
    3   1         40      40
    4   1         45      45
    5   2         15      3
    6   2         20      3
    7   2         20      4
    8   3         20      0
    Based on what you posted, it seems like the following should be equally acceptable:
    box box_group max_qty assigned_from_120
    1   1         10      10  
    2   1         15      15
    3   1         40      40
    4   1         45      45
    5   2         15      3
    6   2         20      4
    7   2         20      3
    8   3         20      0That is, the last 10 items have to be distributed among the 3 boxes in box_group=2 as equally as possible. So one box will get 4 items and the others will get 3. The extra item will go to the box with the highest max_qty, but in this case, there is a tie: box 6 has just as much of a claim to having the highest max_qty as box 7. The line marked "***** Add if needed *****" in the query blow guarantees that, in case of a tie like this, the box with the higher box value will be considered "larger" than another box with the same max_qty.
    when I have 170 items
    box box_group max_qty assigned_from_170
    1   1         10      10  
    2   1         15      15
    3   1         40      40
    4   1         45      45
    5   2         15      15
    6   2         20      20
    7   2         20      20
    8   3         20      5
    I accidentally posted the wrong query yesterday. This is what I should have posted:
    WITH     cntr     AS
         SELECT     LEVEL     AS n
         FROM     (  SELECT  MAX (max_qty)     AS max_max_qty
                 FROM    z
    --             WHERE   box_group     = :target_box_group          -- *****  Removed  *****
         CONNECT BY  LEVEL  <= max_max_qty
    ,     got_r_num     AS
         SELECT     z.box
         ,     c.n
         ,     ROW_NUMBER () OVER ( ORDER BY  box_group          -- *****  Added  *****
                                   ,            c.n
                             ,         z.max_qty     DESC
                             ,            box          DESC     -- ***** Add if needed  *****
                           )     AS r_num
         FROM     cntr     c
         JOIN     z          ON c.n     <= z.max_qty
    --     WHERE     z.box_group     = :target_box_group               -- *****  Removed  *****
    ,     got_assigned     AS
         SELECT       box
         ,       COUNT (*)     AS assigned
         FROM       got_r_num
         WHERE       r_num     <= :total_items
         GROUP BY  box
    SELECT     z.*,     NVL (a.assigned, 0)     AS assigned
    FROM          z
    LEFT OUTER JOIN     got_assigned     a  ON     z.box     = a.box
    ORDER BY     z.box_group
    ,          z.max_qty
    ;Yesterday, I described how you need to remove 2 lines and add 1, but the code I posted was the unchanged query. The query above is what I should have posted then. Look for comments beginning "*****" above for the changes. I apologize for my mistake.
    This query gets the results you posted for all 3 values of :total_items that you posted. If it doesn't work for some other value, or some other data, post the new values and the correct results you want from them, and point out where the query above is wrong.
    C) Sum the maximum quantities per group
    D) Get the amount of boxes in each group
    E) Create a column for remaining boxes per group
    F) For each distinct quantity, count the amount of boxes with this quantity
    G) Calculate how many items are required to fill all boxes in the same group
    H) Create a plan how to solve this distribution problem described in the introduction?
    I) Solve this problem using your plan.Are these the steps that the book suggests using?
    I don't understand that approach. It might be a good way to solve the problem without using a computer. It might be a good way to solve the problem using a procedural language, such as PL/SQL. It might be one way of solving the problem in SQL, but I think it will be more complicated and less efficient than what I psoted.
    The approach above is iterative; that is, you repeat certain steps, with different values. For example, you distribute a certain number of items to all boxes in a box_group. The you remove the smallest box(es) from the group, and repeat, distributing the remaining items among the remianing boxes. That's not hard to do in a language like PL/SQL, where you have loops and variables. In SQL, the closest thing to that is the MODEL clause. I'm sure you could write a MODEL solution to this problem, but, if your book hasn't mentioned MODEL yet, then that's certainly not what it's expecting you to do.
    Even using the approach in steps A) trhough G) above, I don't see how a PARTITION BY would help.

  • How to use one query results in another query

    hi,
    in help.sap I have founded that using variable type replacement path I can use one query results in another query. It is wrote there that I have to choose query name results I want to get in variable definition but I do not know where.
    How I can do this?
    Result I want to get is:
    In one query I have material prices in another material quantities. I want to calculate inventory value (price * quantity). Moreover prices are on plant level, quantities on storage type level. Plant is atribute of storage type.
    Can I do this?
    Regards,
    Andrzej

    Hi Andrzej,
    please check out this thread: Set parameters values depending on other parameters
    I had a discussion about query results as input for another query in there.
    For creating a workbook, just click on the save button after you ran your query in the bex.
    Siggi
    Message was edited by: Siegfried Szameitat

  • How to use previous year keyfigure data in current year for other keyfig

    Hi Expert,
    I have 1 requirement wherein I need to use previous year data for some keyfigure calculation.
    Details are as follows:
    I have designed query with CKFs Turnover & UVG (in rows) & Fiscal year period in columns.
    Suppose Keyfigure Turnover data is displayed from Apr2009 to Mar 2011. In UVG: for Apr 2010, i need Turover data of month Apr 2009, for May 2010 turnover data of May 2009 similarly for other months.
    As per my understanding, I need to use customer exit which will store kf turnover data in internal table & in turn it will be used for UVG.
    But I'm not able to put it into syntax.
    Kindly suggest your inputs in this scenario.
    Thanks,
    Shamkant

    Hi
    Note that the variable ZCALCCALMTH is exit type and variable ZCALMTHREF is ready for input.
    WHEN 'ZCALCCALMTH'.
    IF i_step = 2. "après le popup
    READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'ZCALMTHREF'.
    IF sy-subrc = 0.
    CLEAR l_s_range.
    year1(4) = loc_var_range-low(4).
    year1(4) = zyear1(4) - 1.
    zmonth1(2) = loc_var_range-low+4(2).
    CONCATENATE zyear1(4) zmonth1(2) INTO loc_var_range-low(6).
    zyear2(4) = loc_var_range-high(4).
    zyear2(4) = zyear2(4) - 1.
    zmonth2(2) = loc_var_range-high+4(2).
    CONCATENATE zyear2(4) zmonth2(2) INTO loc_var_range-high(6).
    l_s_range-low = loc_var_range-low(6).
    l_s_range-high = loc_var_range-high(6).
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    ENDIF.
    bye
    Boujema

  • How to use filters on ios mobile devices (iPhone/iPad) using GPU rendering (Solved)

    Many moons ago I asked a question here on the forums about how to use filters (specifically a glow filter) on a mobile devices (specifically the iPhone) when using GPU rendering and high resolution.
    At the time, there was no answer... filters were unsupported. Period.
    Well, Thanks to a buddy of mine, this problem has been solved and I can report that I have gotten a color matrix filter for desaturation AND a glow filter working on the iPhone and the iPad using GPU rendering and high resolution.
    The solution, in a nut shell is as follows:
    1: Create your display object... ie: a sprite.
    2. Apply your filter to the sprite like you normally would.
    3. Create a new bitmapdata and then draw that display object into the bitmap data.
    4. Put the new bitmapdata into a bitmap and then put it on the stage or do what you want.
    When you draw the display object into the bitmapdata, it will draw it WITH THE FILTER!
    So even if you put your display object onto the stage, the filter will not be visible, but the new bitmapdata will!
    Here is a sample app I created and tested on the iphone and ipad
    var bm:Bitmap;
    // temp bitmap object
    var bmData:BitmapData;
    // temp bitmapData object
    var m:Matrix;
    // temp matrix object
    var gl:GlowFilter;
    // the glow filter we are going to use
    var sprGL:Sprite;
    // the source sprite we are going to apply the filter too
    var sprGL2:Sprite;
    // the sprite that will hold our final bitmapdata containing the original sprite with a filter.
    // create the filters we are going to use.
    gl = new GlowFilter(0xFF0000, 0.9, 10, 10, 5, 2, false, false);
    // create the source sprite that will use our glow filter.
    sprGL = new Sprite();
    // create a bitmap with any image from our library to place into our source sprite.
    bm = new Bitmap(new Msgbox_Background(), "auto", true);
    // add the bitmap to our source sprite.
    sprGL.addChild(bm);
    // add the glow filter to the source sprite.
    sprGL.filters = [gl];
    // create the bitmapdata that will draw our glowing sprite.
    sprGL2 = new Sprite();
    // create the bitmap data to hold our new image... remember, with glow filters, you need to add the padding for the flow manually. Should be double the blur size
    bmData = new BitmapData(sprGL.width+20, sprGL.height+20, true, 0);
    // create a matrix to translate our source image when we draw it. Should be the same as our filter blur size.
    m = new Matrix(1,0,0,1, 10, 10);
    // draw the source sprite containing the filter into our bitmap data
    bmData.draw(sprGL, m);
    // put the new bitmap data into a bitmap so we can see it on screen.
    bm = new Bitmap(bmData, "auto", true);
    // put the new bitmap into a sprite - this is just because the rest of my test app needed it, you can probably just put the bitmap right on the screen directly.
    sprGL2.addChild(bm);
    // put the source sprite with the filter on the stage. It should draw, but you will not see the filter.
    sprGL.x = 100;
    sprGL.y = 50;
    this.addChild(sprGL);
    // put the filtered sprite on the stage. it shoudl appear like the source sprite, but a little bigger (because of the glow padding)
    // and unlike the source sprite, the flow filter should acutally be visible now!
    sprGL2.x = 300;
    sprGL2.y = 50;
    this.addChild(sprGL2);

    Great stuff dave
    I currently have a slider which changes the hue of an image in a movieclip, I need it to move through he full range -180 to 180.
    I desperately need to get this working on a tablet but cant get the filters to work in GPU mode. My application works too slow in cpu mode.
    var Mcolor:AdjustColor = new AdjustColor();   //This object will hold the color properties
    var Mfilter:ColorMatrixFilter;                           //Will store the modified color filter to change the image
    var markerSli:SliderUI = new SliderUI(stage, "x", markerSli.track_mc, markerSli.slider_mc, -180, 180, 0, 1);   //using slider from http://evolve.reintroducing.com
    Mcolor.brightness = 0;  Mcolor.contrast = 0; Mcolor.hue = 0; Mcolor.saturation = 0;            // Set initial value for filter
    markerSli.addEventListener(SliderUIEvent.ON_UPDATE, markerSlider);                          // listen for slider changes
    function markerSlider($evt:SliderUIEvent):void {
        Mcolor.hue = $evt.currentValue;                        
        updateM();
    function updateM():void{
        Mfilter = new ColorMatrixFilter(Mcolor.CalculateFinalFlatArray());
        all.marker.filters = [Mfilter];
    how would I use your solution in my case
    many thanks.

  • SSRS 2008R2 : Not able to use Previous aggregrate function in matrix columns cell

    Hi Expert,
    I have used a matrix tablix in my report. It is working fine. But when I am trying to use Previous aggregrate in one matrix column cell I get the below error:
    The use of previous aggregrate function ia a tablix cell with in 'Tablix1' is not supported.
    Please help me regarding that.
    Thanks Rana

    Hi Rana,
    In your scenario, you use previous function in the “Data” cell, right? Previous function cannot be used in the overlapping parts of row group and column group. One workaround of this issue is use custom code to get the previous value.
    Public Shared previous as Integer
    Public Shared current as Integer
      Public Shared Function GetCurrent(Item as Integer) as Integer
         previous=current
         current=Item
         return current
      End Function
      Public Shared Function GetPrevious()
         return previous
      End Function
    Then you can use the expression below in the “Data” cell to get the previous value:
    =Code.GetCurrent(fields!Score.Value) & "-Previous-" & iif(Code.GetPrevious()=0,"",Code.GetPrevious())
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    Hi, thanks for the answer, I did that already. Unfortunatly this doesn't help me at all, as I often forget to check the menu. For me composing the message is writing the text, the subject, the person to who is addressed and than press "send".
    I often forget to check the "from", and this is a problem because the software select itself one of the accounts.
    Isn't there a way at least to put as a default a blank field instead of one of the accounts? or an account which doesn't work so if I forget to specify the "from" I will be rnotofied that the message can't be sent.
    I guess this could be a rather common problem for many people!
    Thanks
    Sergio

  • Unable to get values within scope of the RowGroup(only got values using Previous and current scope value)

    Hi All,
    I already calculated a row(Add Total row) like  Gross profit within Group1 (a,b,c,d,e which are sub groups) using Previous and current scope column group values. ex: Gross Profit = a - b. (within group1)
    Gross Profit = Previous(Sum(Fields!Trans_amount.Value)) - Sum(Fields!Trans_amount.Value) in Group1
    Now, I want to get values for Net income like  Net income = a - b - c in Group1.  (OR)
    Net income = Gross  Profit - c in Group1 (Using Gross Profit textbox values using Reportitems!textbox.value). but, values different.  Since Expression got new calculation)
     Please help me.
    Thanks Advance.
    - Prem Kumar T D http://www.sharepointbasic.com/

    Hi Premtd,
    As per my understanding, there are group and subgroups in the report, you added total to a group with the expresson: Previous(Sum(Fields!Trans_amount.Value)) - Sum(Fields!Trans_amount.Value). You want to add a text box to the report to calculate Net income
    with the expression: Previous(Sum(Fields!Trans_amount.Value)) - Sum(Fields!Trans_amount.Value) - Sum(Fields!Trans_amount.Value). In order to improve the efficiency of troubleshooting, I need to ask several questions:
    • “I already calculated a row(Add Total row) like  Gross profit within Group1 (a,b,c,d,e which are sub groups)” What’s the meaning of Group1 and subgroup a, b, c, d, e ? Could you please mark Gross profit and the groups in the screenshot?
    • How to calculate Net income? Please provide some more detailed information of your requirements. I would be appreciated it if you could provide sample data and clear screenshot of the report.
    This may be a lot of information to ask for at one time. However, by collecting this information now, it will help us move more quickly toward a solution.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • I already downloaded the ios 6.0.1 for my iphone when i connected my another iphone to update its asking again to download the ios 6.0.1  how can i use previously downloaded software

    i already downloaded the ios 6.0.1 for my iphone when i connected my another iphone to update its asking again to download the ios 6.0.1  how can i use previously downloaded software

    plzz help me as soon as possible

  • How should i use the two results sets in one single report data region?

    Hi frnz,
     I have to create a report using the below condition...
    Here my given data  set query gives you the two result sets ,so how should i use that two result sets information in single report....when i accessing that data set query it will take the values off the first result set not for the second result set.
    without using sub report and look up functionality..... if possible
    is there any way to achieve this.....Please let me know..
    Thanks!

    You cant get both resultsets in SSRS. SSRS dataset will only take the first resultset
    you need to either create them as separate queries or merge them into a single resultset and return with ad additional hardcoded field which indicates resultset (ie resultset1,resultset2 etc)
    Then inside SSRS report you can filter on the field to fetch individual resultsets at required places. While merging you need to make sure metadata of two resultsets are made consistent ie number of columns and correcponding column data types should be same.
    In absence of required number of columns just put some placeholders using NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Can not use previous password in ISE 1.1.2 patch-5

    this is my password-policy:
    password-policy
      lower-case-required
      upper-case-required
      digit-required
      no-username
      disable-cisco-passwords
      min-password-length 6
      password-lock-retry-count 5
    I also entered the followings:
    conf t
      password-policy
      no password-locked-enabled
      no no-previous-password
    my initial "admin" account has the password of "Checkpoint1234".  It locked me out after 5 attempts from the webUI.  Fine, I CLI into the box and reset
    the password, when I tried to reset the password for "admin" to "Checkpoint1234", it tells me that I can NOT use a previous password.
    How do I disable this option altogether?  In other words, I want to use previous password. 
    By the way, in the webUI password-policy, you have to set the "Password History" between 1 and 10.  WTF!!!
    Thanks in advance.

    Admin account for the web UI seems to be locked out. So it needs to be reset from CLI.
    An incorrect password for your administrator user ID entered enough times to disable the administrator password. The minimum and default number is five. The Cisco ISE user interface “locks you out” of the system and suspends the credentials for that administrator ID until you have an opportunity to reset the password that is associated with that administrator ID. It does not affect the CLI password for the specified administrator ID
    Step 1    Access the direct-console CLI and enter the following command:
    admin# application reset-passwd ise
    Step 2    Specify a new password that is different from the previous two passwords that were used for this administrator ID:
    Enter new password:
    Confirm new password:
    Password reset successfully
    If you only want to use the previous password, you should change the password policy first. After you have successfully reset the administrator password, the credentials become immediately active in the Cisco ISE and you can log in with the new password without having to reboot your system.
    Review the section "Password Negated Due to Administrator Lockout" at the folowing location:
    http://www.cisco.com/en/US/docs/security/ise/1.1.1/installation_guide/ise_postins.html

  • Issue using Tools- Options- Result to Text to customize column delimiter

    Hi all,
    I need to export a large dataset (greater than 6 GB) to text file.
    Since the dataset contains special characters, I cannot use Import and Export Wizard to export it into text file. (Error Message).
    So I used Tools --> Options --> Result to Text. However, I cannot actually customize the delimiter.
    First of all, I can only enter one character as the delimiter, and thus no character combination allowed.
    Secondly, I entered # and ^ as the customized delimiter. Neither of them worked. The delimiter is always | (pipe), which does not work well for my dataset.
    Does anybody have the same experience? Please help.
    Thanks.

    You don't need to do a replace, I think it will complicate the things.
    Use the Import-Export Wizard to export the data.
    If you have "|" in your data still you can go ahead and use the pipe character as delimiter. However in that case you should mention the text qualifier which will be used to enclose each column value.
    This can be a single or many characters.
    and here is how my output looked like after I exported the below table
    create table TestExport(id int identity(1,1), textdata varchar(100))
    insert into TestExport values('Some|deletimete~data');
    I used " (double quote) as the text qualifier here
    Here you will be able to distinguish between the actual delimiter and the delimiter character appearing in the data.
    While exporting the data into the another data destination(I am assuming you are not going to sit and read a 6GB text file:) ), you can mention the  same text qualifier and import the data
    Satheesh
    My Blog |
    How to ask questions in technical forum

Maybe you are looking for

  • "read from measurement file" reads only first line of data

    Hello, I have a problem when trying to read a .lvm file through "Read from Measurements file" with the following block diagram Problem: it reads only the first line of data from what I can see in the probe window,. A part of the lvm file for referenc

  • Problem for using oracle xml parser v2 for 8.1.7

    My first posting was messed up. This is re-posting the same question. Problem for using oracle xml parser v2 for 8.1.7 I have a sylesheet with <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">. It works fine if I refer this xsl file in xml fil

  • How to remove drop down fonts?

    I have changed font collections in font book and have been able to disable fonts in Word and text edit, but not in photoshop. I have rebooted my computer, and I still get hundreds of drop down fonts.  I only use about 20 of the fonts and hate scollin

  • Project documentation....urgent

    hi every1....i need 2 rite a project report(including project documentation) for my project....plz help.....how do i do it????

  • My Apple TV says I have updated software, however it's only 6.2.1.  How can I download the 7.1?

    My Apple TV downloads automatically and when I just checked About, it says I have the 6.2.1 version and I see there is a 7.1 version.  When I click on Update Software, it says I am updated.  What next to get the 7.1 version?  I'm using Yosemite on a