Switching Gradient Type? Is it possible?

Hi!
Does anybody know, if it's possible to switch current gradient type (Radial, Linear etc.) with scripts,
patchpanel, or either way programmatically in Photoshop?
Thank you!
Anastasiy

Micheal, I was actually thinking of recording the whole using of a Gradient tool if you know which one you wanted to use then you could have a script change the way in which its applied (I only went and picked Spectrum as an example Doh!)
var docRef = app.documents.add(500, 500, 72, 'docRef', NewDocumentMode.RGB)
// The 5 Gradient Modes are below:
// 'Lnr ', 'Rdl ', 'Angl', 'Rflc', 'Dmnd'
SpectrumGradient(250, 250, 250, 0, 'Rdl ')
function SpectrumGradient(x1, y1, x2, y2, gradMode) {
  function cTID(s) { return app.charIDToTypeID(s); };
  function sTID(s) { return app.stringIDToTypeID(s); };
    var desc99 = new ActionDescriptor();
        var desc100 = new ActionDescriptor();
        desc100.putUnitDouble( cTID('Hrzn'), cTID('#Pxl'), x1 ); // Start Point
        desc100.putUnitDouble( cTID('Vrtc'), cTID('#Pxl'), y1 ); // Start Point
    desc99.putObject( cTID('From'), cTID('Pnt '), desc100 );
        var desc101 = new ActionDescriptor();
        desc101.putUnitDouble( cTID('Hrzn'), cTID('#Pxl'), x2 ); // End Point
        desc101.putUnitDouble( cTID('Vrtc'), cTID('#Pxl'), y2 ); // End Point
    desc99.putObject( cTID('T   '), cTID('Pnt '), desc101 );
    desc99.putEnumerated( cTID('Type'), cTID('GrdT'), cTID( gradMode ) ); // Toggle Gradient Modes
    desc99.putBoolean( cTID('Dthr'), true );
    desc99.putBoolean( cTID('UsMs'), true );
        var desc102 = new ActionDescriptor();
        desc102.putString( cTID('Nm  '), "Spectrum" );
        desc102.putEnumerated( cTID('GrdF'), cTID('GrdF'), cTID('CstS') );
        desc102.putDouble( cTID('Intr'), 4096.000000 );
            var list7 = new ActionList();
                var desc103 = new ActionDescriptor();
                    var desc104 = new ActionDescriptor();
                    desc104.putUnitDouble( cTID('H   '), cTID('#Ang'), 0.000000 );
                    desc104.putDouble( cTID('Strt'), 100.000000 );
                    desc104.putDouble( cTID('Brgh'), 100.000000 );
                desc103.putObject( cTID('Clr '), cTID('HSBC'), desc104 );
                desc103.putEnumerated( cTID('Type'), cTID('Clry'), cTID('UsrS') );
                desc103.putInteger( cTID('Lctn'), 0 );
                desc103.putInteger( cTID('Mdpn'), 50 );
            list7.putObject( cTID('Clrt'), desc103 );
                var desc105 = new ActionDescriptor();
                    var desc106 = new ActionDescriptor();
                    desc106.putDouble( cTID('Rd  '), 255.000000 );
                    desc106.putDouble( cTID('Grn '), 0.000000 );
                    desc106.putDouble( cTID('Bl  '), 255.000000 );
                desc105.putObject( cTID('Clr '), cTID('RGBC'), desc106 );
                desc105.putEnumerated( cTID('Type'), cTID('Clry'), cTID('UsrS') );
                desc105.putInteger( cTID('Lctn'), 614 );
                desc105.putInteger( cTID('Mdpn'), 50 );
            list7.putObject( cTID('Clrt'), desc105 );
                var desc107 = new ActionDescriptor();
                    var desc108 = new ActionDescriptor();
                    desc108.putDouble( cTID('Rd  '), 0.000000 );
                    desc108.putDouble( cTID('Grn '), 0.000000 );
                    desc108.putDouble( cTID('Bl  '), 255.000000 );
                desc107.putObject( cTID('Clr '), cTID('RGBC'), desc108 );
                desc107.putEnumerated( cTID('Type'), cTID('Clry'), cTID('UsrS') );
                desc107.putInteger( cTID('Lctn'), 1352 );
                desc107.putInteger( cTID('Mdpn'), 50 );
            list7.putObject( cTID('Clrt'), desc107 );
                var desc109 = new ActionDescriptor();
                    var desc110 = new ActionDescriptor();
                    desc110.putDouble( cTID('Rd  '), 0.000000 );
                    desc110.putDouble( cTID('Grn '), 255.000000 );
                    desc110.putDouble( cTID('Bl  '), 255.000000 );
                desc109.putObject( cTID('Clr '), cTID('RGBC'), desc110 );
                desc109.putEnumerated( cTID('Type'), cTID('Clry'), cTID('UsrS') );
                desc109.putInteger( cTID('Lctn'), 2007 );
                desc109.putInteger( cTID('Mdpn'), 50 );
            list7.putObject( cTID('Clrt'), desc109 );
                var desc111 = new ActionDescriptor();
                    var desc112 = new ActionDescriptor();
                    desc112.putDouble( cTID('Rd  '), 0.000000 );
                    desc112.putDouble( cTID('Grn '), 255.000000 );
                    desc112.putDouble( cTID('Bl  '), 0.000000 );
                desc111.putObject( cTID('Clr '), cTID('RGBC'), desc112 );
                desc111.putEnumerated( cTID('Type'), cTID('Clry'), cTID('UsrS') );
                desc111.putInteger( cTID('Lctn'), 2744 );
                desc111.putInteger( cTID('Mdpn'), 50 );
            list7.putObject( cTID('Clrt'), desc111 );
                var desc113 = new ActionDescriptor();
                    var desc114 = new ActionDescriptor();
                    desc114.putDouble( cTID('Rd  '), 255.000000 );
                    desc114.putDouble( cTID('Grn '), 255.000000 );
                    desc114.putDouble( cTID('Bl  '), 0.000000 );
                desc113.putObject( cTID('Clr '), cTID('RGBC'), desc114 );
                desc113.putEnumerated( cTID('Type'), cTID('Clry'), cTID('UsrS') );
                desc113.putInteger( cTID('Lctn'), 3441 );
                desc113.putInteger( cTID('Mdpn'), 50 );
            list7.putObject( cTID('Clrt'), desc113 );
                var desc115 = new ActionDescriptor();
                    var desc116 = new ActionDescriptor();
                    desc116.putUnitDouble( cTID('H   '), cTID('#Ang'), 0.000000 );
                    desc116.putDouble( cTID('Strt'), 100.000000 );
                    desc116.putDouble( cTID('Brgh'), 100.000000 );
                desc115.putObject( cTID('Clr '), cTID('HSBC'), desc116 );
                desc115.putEnumerated( cTID('Type'), cTID('Clry'), cTID('UsrS') );
                desc115.putInteger( cTID('Lctn'), 4096 );
                desc115.putInteger( cTID('Mdpn'), 50 );
            list7.putObject( cTID('Clrt'), desc115 );
        desc102.putList( cTID('Clrs'), list7 );
            var list8 = new ActionList();
                var desc117 = new ActionDescriptor();
                desc117.putUnitDouble( cTID('Opct'), cTID('#Prc'), 100.000000 );
                desc117.putInteger( cTID('Lctn'), 0 );
                desc117.putInteger( cTID('Mdpn'), 50 );
            list8.putObject( cTID('TrnS'), desc117 );
                var desc118 = new ActionDescriptor();
                desc118.putUnitDouble( cTID('Opct'), cTID('#Prc'), 100.000000 );
                desc118.putInteger( cTID('Lctn'), 4096 );
                desc118.putInteger( cTID('Mdpn'), 50 );
            list8.putObject( cTID('TrnS'), desc118 );
        desc102.putList( cTID('Trns'), list8 );
    desc99.putObject( cTID('Grad'), cTID('Grdn'), desc102 );
    executeAction( cTID('Grdn'), desc99, DialogModes.NO );
I would do well to pick a shorter one next time!!!

Similar Messages

  • Transaction type ZGC not possible (posting to affiliated company) in ABSO

    Hi all,
    We have depreciation areas 01, 30, 31, 32 .
    dep area 30, 31, 32  inherits the values from 01.
    We want to post credit value to dep area 01 after doing the aqusition .
    Hence we created a seperate transaction type ZGC ( in aqusitions- Tcode AO73) and limited it to dep areas 01, 30, 31, 32.
    Transaction type ZGC is having credit and " do not post to affliated company " radio button is selected.
    Now the issue is when we run ABSO to do a credit post in dep area 01 we are getting the below error .
    Transaction type ZGC not possible (posting to affiliated company)
    Message no. AA390
    Diagnosis
    For the current document, you specified either implicitly (via the customer/vendor), or explicitly (with a manual entry), that this posting is to an affiliated company. In this case, Asset Accounting requires you to use special transaction types.  This enables the system to separately identify such transactions.
    Procedure
    Check the line items that you have already entered, and the transaction type you entered.
    Not sure why it is asking for affliated company .
    It will be great if any one help on this why we are getting this issue.

    Hi Daya,
    Please try to choose Trans.Type 100 in AO73 transaction code and select the radio button  Post to affiliated company under Posting type.
    Thanks,
    Kumar

  • Transaction type 180 not possible (no affiliated company specified)

    Hi,
    I am trying to do the down payment Request in F-47 with Purchase order and asset. When I am trying to do this by giving the Asset number and Purchase order with Item 10. I am getting this error Transaction type 180 not possible (no affiliated company specified). The vendor is also not linked to trading partner and not an affilated company specific.
    Please help me solving this issue.
    Regards,
    Raj

    Hi Raj,
    If in OBY6, no company ID is defined for company codes,  they are NOT affiliated companies and the opposite.
    Please check also via OBA7 (document type), if the field "Enter trading partner" is flagged
    If yes -> you need to use a transaction type (AO74) which post to affiliatedcompany
    If no  -> you need to use a transaction type which does NOT post to affiliated
    Best regards Bernhard

  • Transaction type 230 not possible (no affiliated company specified) inABT1N

    Dear Experts,
    While I am posting transaction through ABT1N i am getting an error message
    Transaction type 230 not possible (no affiliated company specified)
    Message no. AA389
    I checked in the transaction type 230 but here posting to affiliated co tick is their.Please advice at an earliest.
    Regards,
    Rahul

    Hi,
         Refer this thread Problum in ABT1N
    Regards
    GK

  • Transaction type 100 not possible (no affiliated company specified)

    Hi Experts,
    At the time of posting asset acquisition in F-90 I am getting following error
    Transaction type 100 not possible (no affiliated company specified)
    Message no. AA389
    I checked transaction type 100 config. there, "Post to affiliated company" is selected
    Awaiting your valuable reply.
    Regards
    Anand

    Hi,
    check SAPNET note 127650.
    Best regards

  • While  F-92 posting with T type 210 not possible  (No acquisition posted)

    Hi
    Asset Retirement Not Possible
    We have uploded legacy data in our Production server on 01.04.2010.. after that we have to sale one of them asset .
    I am using T.code :- F-92 .. but i couldn't sale that and system gives me error
    Posting with trans.type 210 not possible (No acquisition posted)
    Message no. AA324
    Diagnosis
    Transaction type 210 belongs to a transaction type group, which can only be used to post to assets to which posting has already been performed. However, no postings have been made to this asset.
    Procedure
    Use a transaction type from a transaction type group, which can be used for the first acquisition to an asset.
    Ajay
    yes we are using Group Assets for income tax depreciation
    when checked at AS83 no values found under taken over value for the group asset
    ***. aquistion val  - 0
    and all other values are zero
    Edited by: johnrambo on Oct 4, 2010 12:09 PM
    Moderator: Don't repost threads which were locked by moderator

    Hi
    As I said, go to AS82 and upload the Income tax values for this group asset....
    Unless you do that, system wont allow you to proceed.. May be you can enter a nominal value if it is important to sell the asset now and later on correct it
    Regards
    Ajay M

  • Error : Posting with trans.type 200 not possible (No acquisition posted)

    Dear All,
      Iam getting error while doing asset retirement thru ABAVN. Error is mentioned below. Pls do the needful.
    Posting with trans.type 200 not possible (No acquisition posted)
        Message no. AA324

    Dear Bird,
      Already asset has been posted , but then also it shows the same error.
    pls help on this.
    regards
    Ranjit..

  • ABT1N  Intercompany Asset Transfer  error: AA390   T type 230 not possible

    Dear experts,
    I am trying to post an intercompany asset transfer with trx code ABT1N but when simulating the error code
    Transaction type 230 not possible (posting to affiliated company) appears. This is the explanation of the error:
    Message no. AA390
    Diagnosis
         For the current document, you specified either implicitly (via the
         customer/vendor), or explicitly (with a manual entry), that this posting
         is to an affiliated company. In this case, Asset Accounting requires you
         to use special transaction types.  This enables the system to separately
         identify such transactions.
    I do not understand the error because TType is "Retirement to affiliated company with revenue" so should be correct.
    Does anybody know what could be wrong?
    Cheers

    Hi
    Firstly, check out Note 209643.                                                                               
    Secondly, please read the long text of the error message again. The           
    transaction type must be set as "post to affiliated company".  And            
    you must check back the followings :-                                                                               
    1.  Please execcute function:  SAP IMG -> FI -> asset accounting ->           
        transaction -> specify default transaction type.                          
        You can find the default transaction type for "retirement from            
        inter-company transfer" and "acquisition from inter-company               
        transfer".                                                                               
    Then check in their definition whether they are relevant to               
        affiliated company.                                                                               
    If they are NOT RELEVANT to affiliated company, you can                   
        substitute them with other transaction type Relevant to affiliated        
        company.                                                                               
    2.  Please check the definition of transfer variant. In the transfer          
        variant, you have assigned the transaction type for both retirement       
        and acqusition for relation type 1. Both transaction types should be      
        set as "post to affiliated company" .    
    Please note that the abovementioned points must be checked because        
    the system logic will check the validity of the default value in          
    Point 1.                                                                               
    Then the transaction type in the point 2 will be used instead and         
    re-checked again.                                                                               
    Have you try to use 'No Reveune' in the specification for revenue?,       
    I think if it is afflicated companies, you are not allowed to use         
    revenue.                                                                               
    This error can also be produced because a wrong definition of the trans-  
    fer variants. Please have a look on note 327088 for further details.                                                                               
    Most of the issues on this matter were solved with this last Note.        
    Cheers, Blaz

  • Asset Retirement (ABAON) error - Posting with trans.type 210 not possible

    HI All,
    I was trying to sell an asset using transaction ABAON which is fully depreciated, but I am getting the error -
    " Posting with trans.type 210 not possible (No acquisition posted)"
    The Scenario is, there is an asset(car) which was uploaded during implimentation and it got depreciated fully in the month of april.
    The same asset(car, which is fully depreciated) is sold for an amount of Rs 40000/-.
    So, I was trying to post it with some revenue vlaue in transaction ABAON, but I am getting the above error.
    (The Asset value was an uploaded during implimentation,it was not an acquisition value from SAP. It was an uploaded value from legacy data)
    Could any one help in this, or let me know the correct process for this kind of transactions.
    Awaiting for a reply.
    Regards,
    Upendra

    HI Mamta,
    Thanks for the reply.
    While Uploading the data was uploaded as asset balance upload for prior year with value.
    Plase let me know what do you propose, to be done for this.
    Regards,

  • FI _AA errr Posting with trans.type 210 not possible (No acquisition posted

    Asset Retirement Not Possible  
    Dear,
    We have uploded legacy data in our Production server on 01.04.2010.. after that we have to sale one of them asset .
    I am using T.code :- F-92 .. but i couldn't sale that and system gives me error
    Posting with trans.type 210 not possible (No acquisition posted)
    Message no. AA324
    Diagnosis
    Transaction type 210 belongs to a transaction type group, which can only be used to post to assets to which posting has already been performed. However, no postings have been made to this asset.
    Procedure
    Use a transaction type from a transaction type group, which can be used for the first acquisition to an asset.
    Can anyone Help on this topic
    Regards,
    rambo
    deleted
    Moderator: Please, search SDN*

    Hi Rambo
    I think you are using Group Assets for income tax depreciation
    If yes, have you uploaded values into Group assets from AS82? Can you please check this and revert
    Regards
    Ajay M

  • MIRO error Posting with trans.type 159 not possible (No acquisition posted)

    Hi,
    I have the following probem while doing MIRO.  Would appreciate if someone could help.
    Error in Purchase invoice posting MIRO  :-
    The user has created a PO for asset in  FY2010 and has performed a MIGO in FY2010.
    Now in FY2011 the user tries to  invoice against the  above asset and wants to post it thru Trans MIRO.
    System gives an  error during MIRO  "Posting with trans.type 159 not possible (No acquisition posted)"  Message no AA 324
    Trans type 159 has trans type group 12 attached to it.
    MIGO can not be reversed  because it belongs to the closed FY.
    Please help

    Hi
    refer notes 1526247 and 1507808... Though it relates to Japan, but the issue is same
    Br, Ajay M

  • ASSET TRANS-Posting with trans.type Z30 not possible(No acquisition posted)

    Hi Experts,
    Am creating a sub asset 001 for my_asset_1, via 'BAPI_FIXEDASSET_CREATE1'. Fine.
    Then, am trying to post the Asset transfer for my_asset/001 by using a BAPI of  'AMDP_BAPI_CALL_ON_TRANSACTION'.
    But, am getting the Error(via ABUMN am NOT geetting any ERROR)- <i><b>Posting with trans.type Z30 not possible (No acquisition posted)</b></i>
    Am passing paras, like,
    so, pls. clarify that,
    1 - Wht is the meaning of Error message am geeting?
    2 - How to fix it?
    thanq.
    Message was edited by:
            Srinivas
    Message was edited by:
            Srinivas

    closing, bcoz, did not get good answer

  • MIRO - Posting with trans.type 159 not possible (No acquisition posted)

    Hi all,
    I have a case where an asset PO was created with multiple account assignment in one line item.  For example, purchase 10 pc of printer with 10 asset numbers specified in the account assignment tab.  By standard SAP, the GR is non-valuated.
    The GR of the PO was done in the previous period.  Now, when the invoice is to be posted thru MIRO.  The system generate error message to me.  The error message is "Posting with trans.type 159 not possible (No acquisition posted)" and message number is AA324.
    The reason of this error is due to no acquisition date in the asset master.  GR is non-valuated hence, the acquisition date is not populated in the asset as well.  I believe this is quite a common problem.  Kindly advise any workaround solution.
    Thanks.
    Tom

    Hi
    refer notes 1526247 and 1507808... Though it relates to Japan, but the issue is same
    Br, Ajay M

  • Error posting with trans.type 159 not possible (no aquisition posted)

    Hello All,
    A user has created an PO for asset with GR non valuated  in 2007 and has performed a MIGO/GR in the same year 2007. Now in 2008 the user has received an invoice against the said asset and wants to post it thru Trans MIRO.
    At the time of posting the invoice the user gets the error "posting with trans.type 159 not possible (no aquisition posted)" . Since this is a completely new asset and GR non valuated asset process is a standard in SAP why is the system recognising the transation type as 159 i/o trans type 100 ie new asset aquisition.
    If i post a dummy value to the same asset using FB01 the system accepts the value but the same process if i intend to follow usin MIRO system does not allow.
    Can you guys help me
    Thanks
    Nelson

    Thanks Paul for your reply, I checked the depreciation key. inthe key the "Aqu only allowed in capitalization year is marked as NO"
    Therefore the problem is not the depreciation key
    Thanks
    Nelson

  • ABUMN: Posting with trans.type 300 not possible (No acquisition posted)

    Hello everyone,
    I have seen a few threads on this topic, however I am still not finding a resolution to my issue.  I am very new to the FICO configuration scene and probably need a little more hand holding than the others who have asked this question.
    I am having and issue using ABUMN while transfering a Capital Investment Project (CIP Asset) under a asset class of AUC, to a standard fixed asset.  The CIP has been capitalized.  However, when I try to perform the transfer I am receiving the following error:
    Posting with trans.type 300 not possible (No acquisition posted)
    Message no. AA324
    Diagnosis
    Transaction type 300 belongs to a transaction type group, which can only be used to post to assets to which posting has already been performed. However, no postings have been made to this asset.
    Procedure
    Use a transaction type from a transaction type group, which can be used for the first acquisition to an asset.
    I have read through SAP NOTE 327088 (for retirements transfer variant 4) and it just doesn't help me with the issue.  I know it probably should, but I do not know enough about this process in order for it to make a whole lot of sense.
    If anyone can help me with this, it would be greatly appreciated.  Again, I am very new, so I will probably have several follow-up questions as well.
    Thanks in advance for the help!
    Rhonda

    Okay...
    I have finally figured this out on my own.
    When trying to transfer a capital investment project asset with an AuC class (asset under construction), ABUMN is not to be used.
    1st.  The internal order needs to be fully settled (KO02).  Create a settlement rule "FUL" for the designated fixed asset.
    2nd.  Run "Actual Settlement" run via KO88.
    This should transfer everything from the CIP asset to the fixed asset.  You can double check this via the S_ALR_87011967 - ... by Plant report.  Run this report prior to performing the steps above and the money will show in the CIP asset account, run it again after the above steps.  The CIP should be zeroed out and the fixed asset should now carry the amount.

Maybe you are looking for