Create a gradient of the script.

Create a gradient by scripts, the command stops and color.

Do not understand in the document of reference Photoshop cs6 javaScript, how and where to access the gradient.

Please help me, I can't do day after day...

The principle of the script consists of scanning in black and white and the texture of the color of the pixel, registration of the colours in the painting.

So in order to decompose the matrix of color from 0 to 255 black and white texture.

Until you get the texture gradient.

0 where blacks where 255 white. each color will be assigned a user ID and it will move to the color in the color gradient texture.

Sorry for my English.

Thank you!

For a large a gradient with script, you must use scriptlistener. Then modify the variables in this code to match what you want. I use this method to create gradients on the forms which are sampled from a reference image.

Tags: Photoshop

Similar Questions

  • How to create a gradient of the race in this way

    Hi all

    I'm looking to create a contour gradient as it is a color gradient that runsaround the race rather than through it?

    Thank you

    Hi real goat.

    If you are on AICS6 or above, you can try Gradient features Panel gradient color option.

    You can see more about it on this tutorial.

    http://www.adobepress.com/articles/article.asp?p=1855821

    Kind regards

    Dhirendra

  • Quick way to create a gradient of selected fill color?

    I create gradients all the time and I wonder if there is a quick way to create a gradient based on the fill color of the currently selected object. For example: I chose an area with a BLUE fill color. I'm going in the gradient panel and see that what the gradient will be if I click on it (which is usually based on a default gradient WHITE to BLACK, or it comes from the most recent gradiented object, I've touched). So I click on it and the gradient is enabled with the stops not being is not BLUE. What I want is... If I select a box with a BLUE fill and click on gradient - it will create a gradient with the two cases being the same BLUE as the fill color. It would be very convenient because instead of clicking on each stop, shift-eyedropping the blue color in an area of duplicated, it would begin immediately with the gradient of blue-blue for me to adjust (in the case below for a button I'd the superior light and lower darker stop).

    Screen Shot 2012-12-14 at 5.04.17 PM.png

    It is rather useful to select an object with a gradient to 'copy' this gradient, select a new object, click the gradient panel and have this new object to take on this exact gradient. But most of the time I'm not degraded copy but I'm creating new ones, and it makes more sense for me to create a gradient fill color. It would be helpful to someone else?

    This script is that it creates a gradient with both having the same color as the selected object

    var idoc = app.activeDocument;
    var sel = idoc.selection[0];
    
    var myGrad = idoc.gradients.add();
    myGrad.gradientStops[0].color = sel.fillColor;
    myGrad.gradientStops[1].color = sel.fillColor;
    
    var fillcolor = new GradientColor;
    fillcolor.gradient = myGrad;
    sel.fillColor = fillcolor;
    
  • Creating a gradient in particular

    Hello

    How to create a gradient as the Attaché in Photoshop?

    Thank you!

    GRADIENT_QUESTION.jpg

    There are two ways you can do and the two are very similar.

    You can apply a foreground to transparent gradient on the image it self. (it's destructive)

    You can create a mask and apply a black to white gradient in the mask for this layer of (non-destructive) image

    The advantage of going the road of mask is that the color will be filled with color regardless of the layer below the image. (If no layer is there it simulate white but is actually transparent) The layer does not have to be a solid color, it could be a model, another gradient, or even an image. This allows you to explore styles of layer as shadows and glows.

    Make sure just that if you go the road of mask that you record in a format that supports masks, layers and transparency as psd or tiff. This is so that no matter when in the future you can change your mind and change or remove the mask. That at that time, you would see the original image.

  • How do you assign the output of the script (caps/sentence case) to a variable?

    Hi, I posted a question and a user of the forum Raghu was really great and helped to get a demo of work going, but I'm still a little lost

    the demo form is attached, and as you can see that Rambeau has some cool code on the variables to make things go all CAPS and caps of the sentence, which are what we need, and you can see that it works cause he is out on text fields and is displayed correctly.

    Now that's cool, I suspect that 90 + % of path, but I don't know how to do is to have the text of entry (the rawValue field name) turned into variables so that I can use them without first placing them in the fields and with reference to those

    Raghu kindly explained that this could be done by calling it as a function, (and no doubt he's right) but I do not know how...

    can someone clarify, ideally with a fool proof example or two

    I have to be able to fix the code / call to about 20 fields in each form and have a variable for each of these fields, like this

    First name field - rawvValue entered 'Julia '.

    Middle name field - entered rawValue "katie".

    Last name field - entered rawValue 'smith '.

    to get 6 vars I call call directly IE FNUpper (by JULIA) NSFC (by Julia) MNUPPER (for KATIE) and so on

    someone out there able to explain/illustrate that in the jargon fool proof?

    Thanks for the help

    Hi Greg,.

    There are two types of variables (as I know). The first is a variable to script that you create in your script by using the function 'var '. Once you have created / he declared in the script, you can refer to him by name. The str above is an example.

    The second is a global variable, which is created and declared in the file / form properties Variable / tab. Once you have created a global variable it is no need to create it again in the script. In fact as soon as you create the global variable, you can see them in the hierarchy under variables. When you reference this script, you must use the value of property in order to define and extract the content of the global variable.

    If the script should look like this:

    var str = this.rawValue; 
    
    try{
         if(!js.isEmpty(this.rawValue))
         {
              fnUP.value = js.allUpper(str);
         }
    }
    
    catch(e){app.alert(e)}
    

    Annex specimen. The field additional two are just displays the current value of the global variables. Also test this solution, because (even with the automatic registration of the script changes), global variables can return to default values when reopened.

    Good luck

    Niall

  • The script that creates the default tabs in the margin of the document.

    I need a script that creates marks (1 cm margins: top, left, right, down and two others in the Center, a vertical and a horizontal) independent of the document size. Would look like this: whenever I create a new document, execute an action which rodadoria the script to create a document with the enclosed area, similar to the figure below: thank you!

    http://zip.NET/brsW9j

    #target photoshop;
    if(documents.length) main();
    
    function main(){
    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    app.preferences.typeUnits = TypeUnits.PIXELS;
    var cm = activeDocument.resolution/2.54;
    var W =activeDocument.width;
    var H =activeDocument.height;
    guideLine(cm,"Vrtc");
    guideLine(cm,"Hrzn");
    guideLine(W-cm,"Vrtc");
    guideLine(H-cm,"Hrzn");
    guideLine(W/2,"Vrtc");
    guideLine(H/2,"Hrzn");
    app.preferences.rulerUnits = strtRulerUnits;
    app.preferences.typeUnits = strtTypeUnits;
    }
    function guideLine(position, type){
        var desc27 = new ActionDescriptor();
            var desc28 = new ActionDescriptor();
            desc28.putUnitDouble( app.charIDToTypeID('Pstn'), app.charIDToTypeID('#Pxl'), position );
            desc28.putEnumerated( app.charIDToTypeID('Ornt'), app.charIDToTypeID('Ornt'), app.charIDToTypeID(type) );
        desc27.putObject( app.charIDToTypeID('Nw  '), app.charIDToTypeID('Gd  '), desc28 );
        executeAction( app.charIDToTypeID('Mk  '), desc27, DialogModes.NO );
    };
    
  • When I use my gradient, it creates a gradient from green pixelated when I chose a white to the black color gradient.

    As the question said, whenever I chose my gradient, used, it creates a green pixelation area where the gradient should be. Here's a picture: Gyazo - 215b161a141b90a52d180a019e431e88.png

    I use a Windows 10 PC.

    Please help me understand this, I would really appreciate it

    Thank you

    Cory

    You have a hue/saturation layer, which affects the gradient. The Red V layer in your Layer palette is blue due to the hue/sat layer, so it also affects the gradient layer. You need to cut the layer hue/sat layer underneath, by pressing the alt/opt clicking between the two layers. Or you can put this adjustment layer an other layers that you want to adjust in a group and change the blend mode of the normal group.

  • How the script create\edit\save\load file?

    I can't find a tool or a command to create the script file in the powercli environment.

    How to create or load the script file?

    It is the simplest form simply the PowerCLI prompt and a text editor such as notepad for example.

    Once you have your script in a .ps1 file, you can call/run the script from the prompt PowerCLI.

    PS C:\Scripts >./myscript.ps1

    You will have to ensure that the performance of PowerShell policy is set correctly to be able to run scripts.

    The is easier to develop and run scripts using a graphical interface that allows you to edit and run the script in the same graphical interface.

    With PowerShell comes the ISE, which became pretty good in PS v3.

    And there are other GUIs as more than Idera PowerShell and PowerGui.

    One to use is a matter of personal preference

  • How to create the script to compile procedure files in oracle - urgent deadline...

    How to create the script to compile procedure files in oracle.    about to go live and have much .prc pkg in a directory usr/tmp/ar... Po... human resources etc. need to create a script to compile all the files in the folder, then do not open all necessary .prc suggestions on how to do it.   Thank you Tom.

    (1) an urgent need, ASAP,... are words that do not in a forum of volunteer. We are here to help if you need it now, for free, open a SR.

    (2) oracle procedures are not files.

    (3) I think you are trying to run operating system packages, no Oracle procedure. right?

  • Create the Script to add a file in an Action name


    I have a picture, and I have a practical action that records, it cultures, he saves, cultures it differently and recorded once more. Currently, I have two options for these stops - I can save each crop in a separate folder and batch rename, or I have the break from the action he saves so I can customize the file name. What I would do is create a script (or, if there is an easier way), add this file name if it will save all simply in the same folder that I have to do it manually.

    Basically, I start with the name of the file: 'TEST '.

    for the first part, it I save as 'TEST '.

    for the second record, I want to save it as "TEST_P1".

    for the third record, I want to save it as "TEST_P2".

    I am brand new to scripting, and is my programming experience with Java and medium in my past, everything feels a little familiar. If someone could help me with this, I would really appreciate it!

    Another option is to use the Image Processor Pro script. You must create several actions to different cultures, you want to make to the original document size not a crop of harvest of a crop until the final harvest.  Don't have any records in these actions. Then just use meny file > Automate > Image Processor Pro.  Implement its dialog box to save the file names you want where you want to save them create.  You can also save that in action. The image pro script processor is a Photoshop plug-in.  In the dialog box, it will record the setting you used in the action stage.    Alternatively, you can save the configuration dialog for later use in the IPP dialog before running the process put in place.

    You can store as many files as you need with IPP and run your actions simple cultures for each size of harvest. IPP opens you simply file a copy to each of your operations and after the action is performed to save the modified copy of doctment under the name of file you set up. You can configure as many tabs as you want you can even have you resized using IPP option re-size crops.   If the script is easy to use his 10 + lines of script Photoshop...

  • Added keyboard shortcuts for menu items created by the script. Is this possible?

    Hi all

    I wanted to create a custom script menu and assign (on the numeric keypad) shortcuts to the menu items so that I could run a script with small changes rather than change a few (currently seven) scripts separated and assign a shortcut to each of them. But now, I realized that the custom menus are not visible in the "Keyboard shortcuts" dialog box (What a disappointment!)

    Am I missing something here? Or is there a workaround?

    1.jpg


    My idea was to trigger the main script - floating Tables.jsx - from the Manager menu item from the menu title as an argument.

    var tableMenu = app.menus.item("$ID/Main").submenus.item("Table");
    
    // "Floating Tables" sub-menu
    try {
        var subMenu = tableMenu.submenus.item("Floating Tables");
        subMenu.title;
    }
    catch(err) {
        var subMenu = tableMenu.submenus.add("Floating Tables", LocationOptions.AT_END);
    }
    
    var topLeftAction = app.scriptMenuActions.add("Top Left");
    var topLeftListener = topLeftAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topLeftMenuItem = subMenu.menuItems.add(topLeftAction);
    
    var topCenterAction = app.scriptMenuActions.add("Top Center");
    var topCenterListener = topCenterAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topCenterMenuItem = subMenu.menuItems.add(topCenterAction);
    
    var topRightAction = app.scriptMenuActions.add("Top Right");
    var topRightListener = topRightAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var topRightMenuItem = subMenu.menuItems.add(topRightAction);
    
    var bottomLeftAction = app.scriptMenuActions.add("Bottom Left");
    var bottomLeftListener = bottomLeftAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomLeftMenuItem = subMenu.menuItems.add(bottomLeftAction);
    
    var bottomCenterAction = app.scriptMenuActions.add("Bottom Center");
    var bottomCenterListener = bottomCenterAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomCenterMenuItem = subMenu.menuItems.add(bottomCenterAction);
    
    var bottomRightAction = app.scriptMenuActions.add("Bottom Right");
    var bottomRightListener = bottomRightAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var bottomRightMenuItem = subMenu.menuItems.add(bottomRightAction);
    
    var backToTextAction = app.scriptMenuActions.add("Back to Text");
    var backToTextListener = backToTextAction.eventListeners.add("onInvoke", FloatingTablesHandler);
    var backToTextMenuItem = subMenu.menuItems.add(backToTextAction);
    
    function FloatingTablesHandler(event) {
        var args = [event.parent.title];
        app.doScript(mainScriptFile, ScriptLanguage.JAVASCRIPT, args, UndoModes.ENTIRE_SCRIPT, "\"" + scriptName + "\" Script");
    }
    
    
    
    
    
    
    
    
    
    
    


    The main script reads the argument as follows:

    alert("The argument -- " + args[0]);
    
    


    If my memory is good, of Rorohiko's APID ToolKit can create "Assignable shortcut" menus I don't know this for sure at the moment because these menus a long time ago.

    BTW, the question was asked here, but he has failed.

    Kind regards

    Kasyan

    Hi Kasyan,

    If what you're asking, is if it is possible to assign a keyboard

    shortcut in the usual way with a menu created by a script item and then

    of course, of course you can.

    Add the menu item and then assign some k.shortcut you want-

    you will find your menu items in the 'Scripts' category in the keyboard

    Shortcuts dialog box.

    Ariel

  • ' Run the Scripts of "give a problem to create the domain portal

    Hi all.

    I'm new to weblogic portal development. Was trying to create my basic example of portal in weblogic_portal_10.3.4 with the help of the documentation. I get by running scripts when I was creating the field. I followed the procedure below please help me if you find any problem with my steps.

    1. downloaded and installed Weblogic_Portal_10.3.4 in my environment of windows 7.

    2. start eclipse for weblogic portal.

    3 open prospective portal in eclipse.

    4. click on the Server tab and selected 'Oracle WebLogic Server 11 GR 1 material (10.3.4)'

    5 open "Domain Configuration Wizard"

    6 selected the option button "create a new Weblogic domain.

    7. in the next screen to "generate an automatically configured domain to take in charge the following products.

    selected radio button "Weblogic Portal 10.3.4"

    8. in the next screen given DomainName

    9. the next screen provided that the password/confirm password for the administrator user

    10. in the next screen select JRocket SDK and development_mode for my domain.

    11. in the next screen just left all the default configurations for data sources. (not the data source is selected in their boxes)

    12. in the screen following just clicked the button 'Next' and 'OK' on my popup

    13. in this screen "p13nDataSource" is selected on my top left area of the window, all 3 SQL files are selected for data loading.
    Clicked on * "run the script."


    At this point, I get an error saying: "60839-CFGFWK: database Load Failed!




    java.lang.Exception: SQLException when you run the file file:/C:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/seq_drop_tables.sql
    at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:183)
    to com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$ LoadDatabaseThread$ 1.run(JDBCConfigGUITask.java:1673)
    Caused by: java.sql.SQLNonTransientConnectionException: java.net.ConnectException: error connecting to server localhost on port 1527 with Connection refused: connect.
    at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException (unknown Source)
    at org.apache.derby.client.am.SqlException.getSQLException (unknown Source)
    at org.apache.derby.jdbc.ClientDriver.connect (unknown Source)
    at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
    at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
    ... 1 more
    Caused by: org.apache.derby.client.am.DisconnectException: java.net.ConnectException: error connecting to server localhost on port 1527 with Connection refused: connect.
    to org.apache.derby.client.net.NetAgent. < init >(Unknown Source)
    at org.apache.derby.client.net.NetConnection.newAgent_ (unknown Source)
    to org.apache.derby.client.am.Connection. < init >(Unknown Source)
    to org.apache.derby.client.net.NetConnection. < init >(Unknown Source)
    to org.apache.derby.client.net.NetConnection40. < init >(Unknown Source)
    at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection (unknown Source)
    at org.apache.derby.jdbc.ClientDriver.connect (unknown Source)
    at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:273)
    at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
    to com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$ LoadDatabaseThread$ 1.run(JDBCConfigGUITask.java:1674)
    Caused by: java.net.ConnectException: connection refused: connect
    at java.net.PlainSocketImpl.socketConnect (Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket. < init > (Socket.java:375)
    at java.net.Socket. < init > (Socket.java:189)
    at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:206)
    at org.apache.derby.client.net.OpenSocketAction.run (unknown Source)
    to org.apache.derby.client.net.NetAgent. < init >(Unknown Source)
    at org.apache.derby.client.net.NetConnection.newAgent_ (unknown Source)
    to org.apache.derby.client.am.Connection. < init >(Unknown Source)
    to org.apache.derby.client.net.NetConnection. < init >(Unknown Source)
    to org.apache.derby.client.net.NetConnection40. < init >(Unknown Source)
    at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection (unknown Source)
    at org.apache.derby.jdbc.ClientDriver.connect (unknown Source)
    at com.oracle.cie.domain.jdbc.JDBCConnectionTester.createConnection(JDBCConnectionTester.java:272)
    at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:154)
    to com.oracle.cie.wizard.domain.gui.tasks.JDBCConfigGUITask$ LoadDatabaseThread$ 1.run(JDBCConfigGUITask.java:1673)


    CFGFWK-60839: database load failed!









    Please help me if you find any problem with the steps I took to create my weblogic_portal_domain.

    I followed the steps mentioned in the: http://docs.oracle.com/cd/E15919_01/wlp.1032/e14252.pdf to create my domain name to start the development of portal.

    Those are the WLP 10.3.2 instructions. But the 10.3.4 instructions in the tutorial (http://docs.oracle.com/cd/E26806_01/wlp.1034/e14252/setup_dev_env.htm#i1014619) are bad, too.

    In 10.3.4 with derby, Run the Scripts doesn't work; He still needs to work the other database (Oracle, SQL Server, etc.). Instead, for the derby, just create the field, accepting any dialog boxes warning on databases that arise. After that finish in the field directory, run create_db.cmd (for Windows) or create_db.sh (on * nix and Mac). It should create the derby database files in the field and includes everything you need.

    I'll send a note to get the updated documentation.

    Greg

  • need a script to create multiple tables as the other columns in tables

    I need script to create multiple tables as the other columns of tables respectively.

    lets consider I want to create tables from table1... table99 like tablex1... .tablex99 columns (without data) respectively (i.e table1 as tablex1, table99 as tablex99).
    declare
    
    cursor c is select object_name from all_objects where object_type='TABLE';
    
    begin
    
    for i in c loop
    
    execute immediate 'create table '||i.object_name||'_x as select * from '||i.object_name||' where 1=2';
    
    end loop;
    
    end;
    
    use can use this and put your user names accordingly.
    If you get any error please post the error.
    
  • Create the alarm to run the script when migrating a VM

    Very well, I create an alarm that triggers a script that runs whenever a virtual computer is migrated automatically in a DRS cluster. I see in the API documentation that I could use the EventAlarmExpression - & gt; new (eventType = & gt; "VmMigratedEvent") (or maybe one of the other dealing with migration eventType). " The problem is that I don't see a way to be able to use a RunScriptAction with an EventAlarmExpression. It seems the only way is to use the RunScriptAction with a StateAlarmExpression. Here is a code snippet showing if all goes well I would do:

    My = $vmName ' name_of_vm;

    My $alarmScript = ' / usr/sbin/vm_migration_update.pl';

    My $vm = Vim::find_entity_view (view_type = & gt; 'VirtualMachine.

    filter = & gt; {name = & gt; $vmName}) ;

    My $alarmMgr = Vim::get_service_content() - & gt; alarmManager;

    my $alarm = Vim::get_view (mo_ref = & gt; $alarmMgr);

    My $alarmExpr = EventAlarmExpression - & gt; new (eventType = & gt; (' VmMigratedEvent');

    My $alarmAction = RunScriptAction - & gt; (new)

    script = & gt; $alarmScript

    );

    My $alarmTrigger = AlarmTriggeringAction - & gt; (new)

    action = & gt; $alarmAction,

    1. red2yellow = & gt; 1,

    1. green2yellow = & gt; 0,

    1. yellow2red = & gt; 0,

    1. yellow2green = & gt; 0

    );

    My $alarmSpec = AlarmSpec - & gt; (new)

    name = & gt; "Migrated VM."

    Description = & gt; 'Trigger to run the script then from VM migration',

    activated = & gt; 1,

    expression = & gt; $alarmExpr,

    action = & gt; $alarmTrigger,

    );

    My $newAlarm = $alarm - & gt; CreateAlarm (entity = & gt; $vm, spec = & gt; $alarmSpec);

    The problem is with the AlarmTriggeringAction. There is nothing to test with an EventAlarmExpression (i.e. the EventAlarmExpression does not provide States of red/yellow/green). So the question is, does anyone know how to set up an alarm that will run a script when an EventAlarmExpression is used. Specifically, I'd like to be able to run a script each time a virtual machine is migrated automatically in a DRS cluster. Pointers would be greatly appreciated.

    David

    Try this:

    C:\Windows\system32\cmd.exe C:\VMware\VMwareCLI\scripts\call_migrate_perl.cmd

    In fact, you can just run scripts perl like this:

    C:\Perl\perl.exe C:\scripts\migrate.pl

    Note: the commands are executed under 'System', not the user of the connection currently. If you don't see it visually. You can take a look at using Windows Task Manager if necessary.

    In addition, you can have parameters of placeholder that will be replaced before the "scripts" are actually executed.

    Good luck!

    Steve JIN, VMware engineering

    Creator of VI Java API: http://vijava.sf.net/

  • The script "SET CREATEBLOCKSONEQ ON" don't not creating blocks

    Hello

    We used the script "SET CREATEBLOCKSONEQ ON" in a business rule, but new blocks are not created.

    Anyone can guide us in this regard?

    Thank you.

    You can correct IMGs who have 900 and 1500 members and create blocks for them based on another dimension ex:
    We have more sparse dims: entity 1000, 1000 products, 5 years, 5 Sen, Version 5 and now you want to create block for entities and products for FY11, Budget, Version1 then

    DIFFICULTY (@RLEATIVE ('entity', 0), @RELATIVE ("products", 0), Fy11, Budget)

    Version1 is Vesrion1 + 0.;

    ENDFIX;

    This will create all the block for you; It is once again a problem all the blocks of potential will be packed you can restrict the same in condition to create blocks and this condition will be dependent on the logic for ex: If the profit is > 0 then create block

    DIFFICULTY (@RLEATIVE ('entity', 0), @RELATIVE ("products", 0), Fy11, Budget)
    Veresion1
    (
    IF ("NetProfit" > 0) / * this logic may vary according to your requirement * /.
    Version1 is Vesrion1 + 0.;
    ENDif;
    )

    ENDFIX;

    Or if you have connected this BR to a web form and that you have selected use member on the data form you can use SPTR to create blocks. The room no. above may use RTP for members to make it more useful.

    See you soon... !!!

Maybe you are looking for