Simple operations with layers

Please point me in the right direction (short code or classes/methods of giving names), I need to write a plugin (I CC 2015) to do the following:

1 - toggle the visibility of a certain layer

2 - set the opacity to a certain layer (as in window > transparency Panel)

3 - select a certain layer in the "Layers" Panel

It seems I have to answer the question myself:

extern "C" AILayerSuite * sAILayer;

extern "C" AIArtSuite * sAIArt;

extern "C" AIBlendStyleSuite * sAIBlendStyle;

Result ASErr = kNoErr;

Lyr AILayerHandle = NULL;

result = sAILayer-> GetNthLayer(0, &lyr);)

1 - toggle the visibility of a certain layer

result = sAILayer-> SetLayerVisible (lyr, false);

2 - set the opacity to a certain layer (as in window > transparency Panel)

Art AIArtHandle = NULL;

result = sAIArt-> GetFirstArtOfLayer(lyr, &art);)

result = sAIBlendStyle-> 'SetOpacity"(art, 0.5);

3 - select a certain layer in the "Layers" Panel

result = sAILayer-> SetCurrentLayer (lyr);

Tags: Illustrator

Similar Questions

  • Not a Dba, try a simple operation with expdp and impdp

    Hi all

    My Oracle database: 10G

    I'm not a DBA, but I'm stuck to what looks like a simple operation, here is the context

    I exported 2 tables schema HR using expdp and here is the command:

    C:\ > expdp hr/hr@ORCL tables = EMPLOYEES, DEPARTMENTS directory = ORACLE_BKP dumpfile = hr_e_d.dmp logfile = hr_e_d.log

    so this part uptill now is no problem, now I try to use this dmp 'hr_e_d.dmp' file and the urge to put these two tables in a different pattern that is pkg_utils and here is the command that starts the error:

    C:\ > impdp pkg_utils/pkg_utils@ORCL schemas = HR = dumpfile ORACLE_BKP1 directory = hr_

    e_d.dmp

    Import: Release 10.2.0.1.0 - Production on Sunday, September 8, 2013 14:51:04

    Copyright (c) 2003, 2005, Oracle.  All rights reserved.

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - production

    tion

    With partitioning, OLAP and Data Mining options

    ORA-31655: no data or metadata of objects selected for employment

    ORA-39039: pattern Expression "(' HR')" contains no valid schema.

    Table main "PKG_UTILS." "' SYS_IMPORT_SCHEMA_01 ' properly load/unloaded

    Start "PKG_UTILS". ' SYS_IMPORT_SCHEMA_01 ': pkg_utils/***@ORCL schemas = HR.

    Directory = ORACLE_BKP1 dumpfile = hr_e_d.dmp

    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

    Work "PKG_UTILS". "" SYS_IMPORT_SCHEMA_01 "carried out at 14:51:05

    PS: the requirement is only to employees, departments of the HR export schema pkg_utils schema tables

    Concerning

    Rahul

    C:\>Impdp pkg_utils/pkg_utils@ORCL schemas = HR directory = ORACLE_BKP1 = hr_ dumpfile

    e_d.dmp

    Instead of schemas = HR try remap_schema = h:pkg_utils

    See Data Pump Import

  • Basic operations with vCO

    Hi all

    Our team of db generates a txt file and I have this zip file and send a few ftp site... This recurring transaction and I repeat every day.

    I need a workflow to move the file, copy the file, zip file, and send to the ftp site...
    Is possible this operation with vco...

    Thank you

    I see quite a few ways that you can do with vCO.  In my environment, we use vCO installed on windows hosts.  Windows hosts where is installed the vCO slightly contain other software we have created wrappers around workflow.  Among the software we have created wrappers of vco for various windows of the cli-based the eggs/ovf VMwares management tools, commands Windows AD, etc..  You can very easily run local commands that could be batch, or powershell scripts that you created.  We wrap also tricks of powershell.  If you have the device or a linux-based install of course you will need to shell script or whatever you prefer in this environment.

    There is also the ssh plugin we use pretty heavily in our environment for various tasks.  I have a general purpose host script to make calls to various utils, we have developed in-house and based on linux cli for a few different packaging products.

    There is also another great utility which is posted here as a bunch of comments script manager to run scripts on a virtual machine.  We use this a little utility for new deployments and other configuration after commissioning management tasks.

    You will also find this vCO has capabilities of management very simple file so if you just need to move files or open one up a process you can do if the text or xml.

    I hope this helps. Don't forget there are also REST and SOAP plugin to take advantage of all the products that have one of these APIs.

    Paul

  • Process * \MCSHIELD. EXE the nest (428) contained code signed or corrupted and could not perform an operation with a McAfee driver.

    XP SP3 system

    I get warnings like this when Mcafee updates.

    Process * \MCSHIELD. EXE the nest (428) contained code signed or corrupted and could not perform an operation with a McAfee driver.

    Process * \SVCHOST. EXE the nest (1632) contained code signed or corrupted and could not perform an operation with a McAfee driver.

    Is this a problem Microsoft or Mcafee?

    Do I need to fix?

    In the McAfee forums, there are several similar positions such as:

    https://community.McAfee.com/message/241542

    I'll sue your question on in their community, as they already seem to know about it.

    I would also say that, unless you are very fond of McAfee or you are forced to use it, you plan to replace it with something that has a smaller footprint, uses less resources and doesn't have these problems - something like Microsoft Security Essentials, you can get here:

    http://Windows.Microsoft.com/en-us/Windows/Security-Essentials-download

    MSE completed with the free version of MBAM and SAS should permanently keep your clean enough unless you're a daredevil like me:

    Download, install, update and do a quick scan with these free malware detection programs (not at the same time) and remove all threats:

    Malwarebytes (MMFA): http://www.malwarebytes.org/products/malwarebytes_free
    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    SAS will probably report a lot of tracking cookies and you can just let him delete them.

    Even if you keep McAfee, I always supplement it with MBAM and SAS since no single AV program does seem to know everything.  If your McAfee of your system is clean, I would interpret that means - McAfee found nothing, says he knows.  It is prudent to use more than a reputable scanner to get more coverage.

    If you choose to spend (and you can't have both at the same time), you must be sure to use the uninstaller that you can get from here:

    http://service.McAfee.com/FAQDocument.aspx?LC=1033&ID=TS101331

    Your system will give you better performance.

  • How can I configure my computer to the simple click with the mouse to double-click to open an item on the desktop instead

    How can I configure my computer to the simple click with the mouse to double-click to open an item on the desktop instead

    Hi placebow,

    Open the Options folder by clicking the Start button, clicking Control Panel, appearance and personalization, and then clicking Folder Options. On the general tab, click single-click to open an item. (To return to the standard click, click double-click to open an item.)

    The setting applies not only at the office, but also in other areas of the shell.
    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • Simple print with the models program

    I need a very simple picture with models print program to replace a HP Photo Smart Print very old program that no longer works on my Windows 7 computer.  I use a HP 6500 has.  Any suggestion would be appreciated.

    Thank you

    Hello

    You can check the HP Photo creations software which is provided by HP current photo printing software:

    http://www.HP.com/global/us/en/consumer/digital_photography/free/software/photo-creations.html

    Shlomi

  • How to make a simple video with my computer ' s web cam?

    I recently (10 minutes ago) asked a simple question on how to make a video.  For five of the most wonderful years of my life, I have designed critical systems of path for launch Pads 39A & B, the vehicle Assembly building and the robot that went out the candle to the pad.  On paper, a critical path system explained how the engineer, design and build a structure.  In this case, it was activities separate from about 3400 and when, how and how long these activities were to each other.  At the time where the Commander.  I worked and which had been granted to these contracts, had developed the method of the path critical following the guidance system of the Polaris Missile, which was incredibly hard to get a handle.  At the time where manned Apollo lunar Mission has been in place, I was one of only ten people in the world, who knew the process.  We needed honest, some answers to our questions or it would take years to accomplish what Stephen Hawking characterized as "the unique accomplishment largest in human history" you gave me answers to my questions by these 'engineers' for Microsoft on the use of a webcam and had implemented them, would not be there was a second launch of Apollo because the first three astronauts would be dead.  How to make a simple video with my computer ' s web cam?     Al wood

    http://www.WikiHow.com/use-webcam-on-Windows-Movie-Maker

    Movie Maker: http://windows.microsoft.com/en-us/windows-live/movie-maker

    Not tested.  Instructions could be for the old version of Movie Maker, but they probably give you the basics.

    (It's a way of many - that the answer does not depend on your OS, but on the software you use to interface with your webcam.  Camtasia?  Skype?  etc and so on...)

    In addition, to find this information is quite simple.  Once I decided on what software to go with in my response to you (I chose Windows Movie Maker 12 because it's easy to get, free, Microsoft, similar to products that were previously found with Windows) I did a simple search on Google:

    use Windows Movie Maker 12 with webcam

    https://www.Google.com/#q=Use+Windows+Movie+Maker+12+with+webcam

    or more demonstratively:

    http://lmgtfy.com/?q=Use+Windows+Movie+Maker+12+with+webcam

    The first hit seems to be a video market even helps you to download and install the Windows Movie Maker 12 application...

  • a simple form with the "submit" button: can it look better?

    Hi all

    I did not imagine that a simple form (with Textfields and ChoiceFields) could do a lot of problems:

    I would like to ask a few basic questions about it. First the code (Simplified):

       GridFieldManager formfm;    
    
            EditField surname = new EditField("", "-", 25, Field.FIELD_LEFT | Field.FIELD_VCENTER | EditField.FILTER_DEFAULT);
        EditField email = new EditField("", "-", 25, Field.FIELD_LEFT | Field.FIELD_VCENTER | EditField.FILTER_EMAIL);
    
        public FormFieldManager(){
    
            formfm = new GridFieldManager(2,0);
    
            formfm.add(new LabelField("who: ", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
            String[] choicewho = new String[] { "Mr", "Mrs", "Miss" };
            ObjectChoiceField who = new ObjectChoiceField("", choicewho, 0, Field.FIELD_LEFT |Field.FIELD_VCENTER);
    
            formfm.add(who);
    
        formfm.add(new LabelField("Surname :", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
        formfm.add(surname);
    
        formfm.add(new LabelField("E-Mail :", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
        formfm.add(email);
    
        ButtonField sendButton = new ButtonField("Send", Field.FIELD_HCENTER|ButtonField.CONSUME_CLICK);
        formfm.add(sendButton);
        FieldChangeListener listenerSendButton = new FieldChangeListener() {
        public void fieldChanged(Field field, int context) {
    
        try {
            String data = "send=true&surname=" +surname.getText();
            data += "&email=" + email.getText();      httpPost("http://bla/sendData.php", data);
        } catch (IOException e1) {
            e1.printStackTrace();
        }
        formfm.deleteAll();
        formfm.add(new LabelField("Grazie!"));
        }
      };
      sendButton.setChangeListener(listenerSendButton);
    

    now my questions:

    (1) don't miss something (style) for the EditFields? At the present time, it is possible to change them, but the behavior (9700 Simulator) is strange: it is 'difficult' to get from one field to the other and everything moves sometimes when editing...

    How do you define a standard form that seems 'normal' and can be completed as expected in other applications? (Swifts nothing, it is possible to access the next field with the expected key / trackpad (I have no touch screen)) and so on?

    The EditFields do not even have a border, but I guess that's the standard case on BlackBerry.

    (2) the ObjectChoiceField is also very ugly... It's too big... Is it not possible to reduce the size without much effort? (I couldn't everride it correctly). (I also tried with radio buttons, but unfortunately I can't add a RadioButtonGroup to my LayoutManager, strange)

    (3) it is perhaps a stupid question: I can't get the text selected from the ObjectChoiceField (to send it can in data).

    AM EditField, it's simple:

    editfield.getText()
    

    But how is it with my ChoiceField?

    I found getSelectedIndex() but it provides a value int not text...

    Thanks in advance for any suggestions!

    silizia

    1. you have defined fields as follows:

    EditField family name = new EditField ("vorname:", "-", 20, EditField.FILTER_DEFAULT);

    The 20 means 20 characters, so it's all the field allows you to enter.

    2. Yes, the mail filter is pretty useless.  Use the EmailAddressEditField instead

    3. you can play with the scroll, but the best thing to do is to set the focus on the first field that you want people to pull together - usually the upper part of the form.

  • combine the simple search with custom search option panel (date)

    Hello

    I have a simple search with AutoCustomizationCriteria Panel. The search includes the number of columns in a table. A column is of type DATE and I need to have a search interval criteria (date time) a way to 'Date From' and 'Date' to provide a date range for the search.

    Is it possible to include this type 'date' of the criteria on a panel of simple search to perform this search? Alternatively, the only way is to have a query that is run on the original Version that will build the result set based on the values fields "Date of" and ' Date to '?

    The client is reluctant to use the Advanced Search Panel.

    Thank you

    Anatoliy

    Anatoliy salvation,

    I've done this type of requirement and its a well worked.

    Please check below the code, I hope it helps.

    Create two search boxes in the control panel simple search on the page for the same date field.

    For example in the table invoice_date is only a single column, but you create two research SearchInvoiceDateFrom and SearchInvoiceDateTo

    write below the code in the controller to manage any logical date

    package rec.oracle.apps.ap.invoice.webui;

    import com.sun.java.util.collections.Vector;

    import java.io.PrintStream;

    java.sql.Date import;

    Import oracle.apps.fnd.common.VersionInfo;

    Import oracle.apps.fnd.framework.OAApplicationModule;

    Import oracle.apps.fnd.framework.OANLSServices;

    Import oracle.apps.fnd.framework.OAViewObject;

    Import oracle.apps.fnd.framework.server.OADBTransaction;

    Import oracle.apps.fnd.framework.webui.OAControllerImpl;

    Import oracle.apps.fnd.framework.webui.OAPageContext;

    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;

    Import oracle.apps.fnd.framework.webui.beans.layout.OAQueryBean;

    SerializableAttribute public class InvoiceLineSearchCO extends OAControllerImpl

    {

    public static final String RCS_ID = "$Header$";

    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion ("$Header$", "% packagename");

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processRequest (pageContext, webBean);

    OAApplicationModule am = pageContext.getRootApplicationModule ();

    }

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processFormRequest (pageContext, webBean);

    OAApplicationModule am = pageContext.getRootApplicationModule ();

    OAViewObject vo = (OAViewObject) am.findViewObject ("InvoiceSearchVO1");  Catch the VO Page

    vo.setWhereClause (null);

    vo.setWhereClauseParams (null);

    vo.clearCache ();

    VO. Reset();

    Day convDate1 = null;

    Day convDate2 = null;

    TXN OADBTransaction = am.getOADBTransaction ();

    OAQueryBean oaquerybean = (OAQueryBean) webBean.findIndexedChildRecursive ("QueryRN");

    String InvoiceDateFrom = pageContext.getParameter ("SearchInvoiceDateFrom");

    String InvoiceDateTo = pageContext.getParameter ("SearchInvoiceDateTo");

    String currentPanel = oaquerybean.getCurrentSearchPanel ();

    If (InvoiceDateFrom! = null) {}

    JavaSqlDate1 date = txn.getOANLSServices () .stringToDate (InvoiceDateFrom);

    convDate1 = javaSqlDate1;

    }

    If (InvoiceDateTo! = null) {}

    JavaSqlDate2 date = txn.getOANLSServices () .stringToDate (InvoiceDateTo);

    convDate2 = javaSqlDate2;

    }

    If ((!)) ("Search".) Equals (currentPanel))) | (convDate1 == null). (convDate2 is nothing)) {

    return;

    }

    System.out.println ("key GB Hi is Catched");

    System.out.println (convDate1);

    System.out.println (convDate2);

    Vector of parameters = new Vector (1);

    StringBuffer whereClause = new StringBuffer (100);

    whereClause.append ("INVOICE_DATE BETWEEN: 1 AND: 2" "");

    parameters.addElement (convDate1);

    parameters.addElement (convDate2);

    vo.setWhereClause (null);

    vo.setWhereClauseParams (null);

    vo.setWhereClause (whereClause.toString ());

    Object params [] = new Object [2];

    parameters.copyInto (params);

    vo.setWhereClauseParams (params);

    vo.executeQuery ();

    vo.clearCache ();

    VO. Reset();

    }

    }

    Thank you

    Dilip

  • As an operator with the long data type

    Oracle 10g.

    Hi gurus

    I want to apply as an operator on the long data type, but I get the error message, can you please help me why is that I use as an operator with the long data type. I did some research and but unable to find a solution, see query for more details below...

    Query

    SELECT trigger_body FROM user_triggers

    WHERE trigger_body LIKE '% UPDA % CASE % ';

    Error

    ORA-00932: inconsistent data types: expected NUMBER got LONG

    00932 00000 - ' incompatible data types: wait %s %s got. "

    * Cause:

    * Action:

    Error on line: column 2: 7

    Concerning

    Muzz

    Adrian Billington wrote to the top of your options.

    working with long columns

  • Try to make a simple website, with only a few images-links

    DreamWeaver CC 2015

    I haven't used DreamWeaver over the years and now I'm a bit lost for what I think should be a very simple thing.

    I want to make a site with fixed height and width which will play only on an iPad 12.9 Pro.  So I want to fix the site for only this resolution.

    I also want to just make a few simple html with images files to fixed locations with links to other html files.

    I can't understand how the non dynamic page size (if that's the correct term).

    I also can't understand how simply to add six images on two rows and three columns and Center.

    Please help :-)

    P. S.

    I don't need to use built in templates.  I want to build the pages from the ground up.  They are very simple.

    First, I recommend that you watch the video below and follow some of the tutorials-

    https://helpx.Adobe.com/Dreamweaver/how-to/create-responsive-Web-design.html

    Building a web page aimed at just the iPad pro can be done simply by setting a media query to use the correct resolution, that is.

    2732 x 2048 resolution 264 pixels per inch (DPI)

    The parameter supplied your values width and height for the values (in pixels), 2732 x 2048.

    However, remember that you will need to use images of salvation-ppi, as although the features of Hi-dpi resize the correct size of the text, without distortion or Burr the same does not apply to images.

  • Problem with layers

    Hi all

    I'm having a problem with layers and have been racking my brain trying to figure out all day. Here's the thing:

    I have a widget of particles on a single layer. The layer above it, has my Gallery thumb nails. The particles are still show if they are on the top layer.

    Is there a fix, something with the widget, or is there a step I'm missing?

    Thanks in advance

    I do not use the widget but guess it keeps track of your cursor to work... the life of cursor over each layer

    How to add an interactive particle effect to your Adobe Muse Web site | Adobe Muse CC Widget | Muse - YouTube

    You can try to put the widget on a master pager and the other images on the homepage... in code terms a master page is lower, but this is my only idea.

    Good luck

  • Photoshop PDF with layers in InDesign

    Rich PDF content

    Creates accessible PDF files that include tags, hyperlinks, bookmarks, interactive elements and layers. This set of options uses PDF 1.5 and incorporates subsets of all fonts. It also optimizes files for the service of the byte. These PDF files can be opened in Acrobat 6.0 and Acrobat Reader 6.0 and later versions. (The Rich content PDF preset is in the Extras folder).

    Note:

    This preset was called eBook in earlier versions of some applications.

    Save the PDF files in Photoshop

    Hello

    I'm trying to save a Photoshop file with layers to PDF and preserve the layers so that I can put this PDF file in InDesign and control layers in InDesign options there.

    The above makes no sense and I can't find the folders or files, it refers.

    Whole CC membership everything to date.

    Screen Shot 2016-06-13 at 11.50.09.png

    Thank you

    Eugene

    Doesn't seem to not apply to Photoshop, just common verbiage to all app help. In particular "tags, hyperlinks, bookmarks, interactive elements" have no equivalent of Photoshop, so it is optimistic to think that they will still make layers. This answer seems final How to import a PSD file into Indesign WITH layers so it can be edited/saved as an InDesign file? May be possible in Illustrator.

  • Trying to save the Fireworks file as a .psd with layers... when opened in PS, it is a flat file.

    What the devil I'm doing wrong?  Fireworks said it is registered with layers in .psd format when I completed the function "save under".  But when I open PS, the layers are gone.  It's so frustrating.  I bought PS because Fireworks is currently abandoned and I need to start moving my files to PS at this point I could use any application because I'll have to start over with a large part of this work if I can't translate.  So frustrating.  I go back PS if it does not work.   Can someone tell me what I need to do so that the function "save under" work as it says it works?  I am running Mac OSx and the CS6 for Fw and Ps - CC 2015.

    You might do better in the Fireworks forum.  Keep this thread and start a new one there.

    Fireworks

  • Adobe reader on my iPad can display PDF files with layers?

    Adobe Reader on my iPad can display PDF files with layers?

    Hello

    Currently, mobile products Acrobat DC (for iOS and Android) don't support any change to the visibility of the layer.  If you are not able to activate or deactivate layers in a PDF using Acrobat DC for iOS.

    You would file a feature request?

    Adobe - feature request/Bug Report Form

    Our product management team will take your request into consideration for a future release.

    Thank you.

Maybe you are looking for

  • Pavilion s5229uk VG238AA #ABU: System Recovery

    I replaced the HDD with a SSD Crucial.  I'm trying to recover from sytem with the disks 'System Recovery' four HP I bought in 2011 when my first HARD drive died.  The system seems to load OK software from disks, but it does not install Windows.  Afte

  • Cannot connect 'username or password OK'

    I use a windows XP Pro and tries to connect to a Windows 2003 server via remote desktop. I did this for a while now without any errors. Today when I tried to log in, I received a message indicating that I have the name of incorrect user or password a

  • Smartphones blackBerry need to re - install BB Maps

    I recently deleted BB Maps of my storm (don't ask me why) and now I need to reinstall it, but when I search the site Web of BB he says it is not downloadable via USB and is told to go to the mobile site via my browser. It is where I have a moment of

  • CC Bend it effect anchors don't turn?

    HelloI have an image and I use the 'CC Bend It' after effects CC 2014. I animated and changed the elbow Start and End anchors and they work fine, but as I convert this image into vector shapes, the anchors start and end stopped turning and the rotati

  • 1080 p imported, but 720 p listed as source

    I'm still a novice with first, so please forgive my ignorance. I am trying to create a short film. My input files imported are all 1080 p, and I managed to put together a small sequence with a sound track, etc.   But when I get to the export settings