FileFormat Plugin Access/Store selections

Hi everybody,
I'm developing a file format plugin which reads/writes layered image data.
The file format also contains selections.
My question: How can I store these selections in the document so the user could load them via Selections->Load Selection?
I wonder if this can be done by using the Resource Suite or Channel Ports.
Any help would be greatly appreciated.

Update
ChannelPortProcs is not working for writing data to additional. I think the port is the problem.
It is possible to create a new write port and store the data in it, but I was not able to determine where this port points to or what is the level in the pyramid of the image,
which is mentioned in WritePixelToBaseLevel documentation.
After some trying I think this not the way to go.
The other way was to set the planes field in the FormatRecord to (color planes + transparency + additional alpha channels)
Just specifying this gaves me a new Alpha Channel in the opened document but the transparency read in plane=3 was gone.
Setting the data to full transparency overlapped all layers and the document was full transparent.
I think because the channel will be displayed automatically.
I can't check it at the moment maybe the layer transparency is not lost at all.
So at the moment the only way I see is to do it in this way and write an automation plugin,
which hides the additional alpha channels and rename them.
Maybe it is possible to write the selection names to the script parameters and read them in the automation plugin.

Similar Messages

  • How to access the Java plugin certifcate store from a signed applet?

    Is there any easy way I can access the certificates in the Java plugin certificate store?
    I think I can load the C:\Documents and Settings\<login user>\ Application Data\Sun\Java\Deployment\security\trusted.certs into a KeyStore and examine the certificates that way.
    But I just wonder if there is more robust way to do this without loading up an external file since an applet is executed within a Java plugin.
    Thank you :)

    Is there any easy way I can access the certificates in the Java plugin certificate store?
    I think I can load the C:\Documents and Settings\<login user>\ Application Data\Sun\Java\Deployment\security\trusted.certs into a KeyStore and examine the certificates that way.
    But I just wonder if there is more robust way to do this without loading up an external file since an applet is executed within a Java plugin.
    Thank you :)

  • Itunes will not connect to the internet or access store with working internet connection. ive already tried updating to latest version and turning off windows firewall. running a new dell computer w/ windows 7 with minimal programs installed

    Itunes will not connect to the internet or access store with working internet connection. ive already tried updating to latest version and turning off windows firewall. running a nItunes will not connect to the internet or access store with working internet connection. ive already tried updating to latest version and turning off windows firewall. running a new dell, windows 7 ultimate, no virus or firewall programs installed.

    This my sound too simple, but I just kept clikning on the arrow next to the selected music and it finally "Kicked" in.
    I live in Europe ,So Be persistent and don't give up !  Aug. 2013

  • FileFormat plugin issue

    Hi ,
    I am facing a issue in fileformat plugin in PhotoShop CS6...  i am doing some fuctionalaties on "formatSelectorFilterFile" signal. But in MAC, Photoshop is sending this signal twice. first, when user do File -> open(in PhotoShop CS6) and just select any photoshop file and second when user click on open button. first time PhotoShop is sending signal as MAC tries to open file to show preview in  open dialog box. I am not finding any way so that  I can differntiate between these two condition. actully i don't want first one.
    Thanks in advance
    -Harsh

    I guess the first one was put there for a preview/thumbnail generation (Adobe folks probably know better though).
    In any case, this selector simply asks whether you plugin can handle the filie format and therefore it has to be lightweight, since youy don't really want to introduce delays as the user goes over the file list. If properly implemented as only a test, you shouldn't really care about this selector being invoked multiple times.

  • How can I access the selected element of a DropDownByIndex-box?

    Hi,
    I want to create a WebDynpro with two web services. I created the first request with the first web service and the results are displayed in a DropDownByIndex-Box. Now the user should choose one of the results and I would like to use this for the request with my second web service. How can I access the selected Element of a DropDownByIndexBox in the Code?
    Thank you!!
    Julia

    Hi Julia,
    when user select one element in drop down it automatically set lead selection of node binded to dropdown.
    For example if you bind a dropdown to node myNode with value attribute myAttribute the lead selection of node myNode is set in the position of element choose from user.
    So to take this chooised element use this code:
    wdContext.currentMyNodeElement.getmyAttribute()
    bye
    Andrea

  • Itunes is stuck accessing store? Windows 7 64 bit, just did 10.6.1.7 upgrade

    Itunes is stuck accessing store . Windows 7 64 bit just upgraded to 10.6.1.7 , tried uninstall and trind winsock reset neither worked

    Try here:
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    You seem to have an iTunes problem and not an iPod problem. The iTunes forum is likely a better forum to post in.

  • Getting intermittent AccessViolationExceptions when accessing stores from Outlook.Stores object

    We have a very strange situation in which we get random AccessViolationExceptions when trying to access stores (in particular our own) via the Outlook.Stores.
    Here's a code snippet of how we're calling this (currently done in our Outlook.ExplorerEvents_ActivateEventHandler handler, and only the first time is is called)
    Outlook.NameSpace ns = ThisAddIn.OutlookApplication.GetNamespace("MAPI");
    Outlook.Stores stores = ns.Stores;
    Outlook.Store store = null;
    int nStoreCount = stores.Count;
    for (int i = 1; i < nStoreCount; i++)
    store = stores[i];
    String name = store.DisplayName;
    store = null;
    When we get to the point of accessing a store via index, we will sometimes get the AccessViolationException, but only sometimes and only (as far as I can tell, since the order isn't always the same from run to run) our message store.
    We originally had this bit of code in our ThisAddin_Startup sequence, but it would actually crash Outlook completely when the exception occurred, so I moved it out of there and it at least now doesn't bring down the whole application.
    MFCMAPI has no trouble opening the message store ever.
    I have seen some references in my research to problems with .net 4.0 and earlier with regards to SynchronizationContext being null, and we are using 4.0 and getting null SynchronizationContext.current values. But we get that when the exception doesn't happen,
    too, so I don't know if that's a red herring. However, this code is a back-port from a newer version of our software that was coded against .Net 4.5, and we don't see the issue there at all. As this is going into a patch, build with VS2010, we can't change
    the target platform.
    I have tried moving the call to worker threads, and I even saw one suggestion of trying to do it in our Outlook.ExplorerEvents_SelectionChangeEventHandler code, but nothing seems to work.
    I should note that after the exception occurs, and the Outlook Explorer window opens and populates, if the user manually clicks our message store node, the MSProviderInit->IMSProvider::Logon sequence fires, and fires without the MDB_NO_DIALOG flag being
    sent in. During Outlook's start-up, we get that sequence of calls several times, but always with the MDB_NO_DIALOG set, so we return MAPI_E_LOGON_FAILED and don't execute the code which creates our IMsgStore object. So the user's manual operation causes our
    IMsgStore to get created and everything is fine. The reason the above code is added is to try to simulate the user's manual action and sort of 'tickle' the store creation process.
    When the AccessViolationException does not occur, we get the full MSProviderInit->IMSProvider::Logon, etc sequence. When it does except, we don't even get our MSProviderInit entry point called. It's almost as if our dll gets loaded and then Outlook loses
    it.
    Any thoughts on this?

    Hi Kevin Delgado,
    >>if somebody knows what these other flags mean/are defined as in the context of the IMSProvider::Logon call, that would be great<<
    Did you mean that the value of ulFlags? If yes, you can refer to the document below:
    ulFlags                               
    [in] A bitmask of flags that controls how the logon is performed. The following flags can be set:
    MAPI_DEFERRED_ERRORS                   
    The call is allowed to succeed even if the underlying object is not available to the calling implementation. If the object is not available, a subsequent call to the object might raise an error.
    MAPI_UNICODE                   
    The passed-in strings are in Unicode format. If MAPI_UNICODE is not set, the strings are in ANSI format.
    MDB_NO_DIALOG                   
    Prevents the display of logon dialog boxes. If this flag is set, the error value MAPI_E_LOGON_FAILED is returned if the logon is unsuccessful. If this flag is not set, the message store provider can prompt the user to correct a name or password, to insert
    a disk, or to perform other actions that are necessary to establish connection to the store.
    MDB_NO_MAIL                   
    The message store should not be used for sending or receiving mail. The flag signals MAPI not to notify the MAPI spooler that this message store is being opened. If this flag is set and the message store is tightly coupled with a transport provider,
    the provider does not need to call the IMAPISupport::SpoolerNotify method.
    MDB_TEMPORARY                   
    Logs on the store so that information can be retrieved programmatically from the profile section, without use of dialog boxes. This flag instructs MAPI that the store is not to be added to the message store table and that the store cannot be made permanent.
    If this flag is set, message store providers do not need to call the IMAPISupport::ModifyProfile method.
    MDB_WRITE                   
    Requests read/write permission.
    Also you can get more detail about IMSProvider::Logon function from link below:
    https://msdn.microsoft.com/en-us/library/office/cc842201.aspx
    Hope it is hlepful.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Installed iTunes 9 as advised and now I can't access store

    Hi, just installed iTunes 9 and advised when trying to purchase a film and now I can't access the store. I can access my account etc but just get a blank screen when trying to access store! Have tried technical support but they say it's my computer's problem. Why? when I was on the iTunes store 10 minutes previous! Have limited computer knowledge but any help would be appreciated as I'm about to be flying and need some new films!

    I have exactly the same problem. I haven't had access to the iTunes Store since upgrading to 9.0.1 nearly two months ago and none of the suggested fixes have worked for me. I use iolo as my firewall. Does anyone have any ideas?
    Microsoft Windows XP Home Edition Service Pack 3 (Build 2600)
    Dell Computer Corporation Dimension 4300
    iTunes 9.0.1.8
    QuickTime 7.6.4
    FairPlay 1.5.18
    Apple Application Support 1.0
    iPod Updater Library 9.0d11
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 2.6.0.32
    Apple Mobile Device Driver 1.45.0.0
    Bonjour 1.0.6.2 (118.5)
    iTunes Serial Number
    Current user is an administrator.
    The current local date and time is 2009-10-29 07:43:00.
    iTunes is not running in safe mode.
    Video Display Information
    NVIDIA GeForce2 MX/MX 400 (Microsoft Corporation)
    ** External Plug-ins Information **
    No external plug-ins installed.
    iPodService 9.0.1.8 is currently running.
    iTunesHelper 9.0.1.8 is currently running.
    Apple Mobile Device service 2.50.39.0 is currently running.
    ** Network Connectivity Tests **
    Network Adapter Information
    Adapter Name: {E6040F81-0D24-49D2-BF10-A1C14EF963E4}
    Description: 3Com EtherLink XL 10/100 PCI For Complete PC Management NIC (3C905C-TX) - Packet Scheduler Miniport
    IP Address: 99.141.197.14
    Subnet Mask: 255.255.255.0
    Default Gateway: 99.141.197.15
    DHCP Enabled: Yes
    DHCP Server: 192.168.0.1
    Lease Obtained: Thu Oct 29 07:41:34 2009
    Lease Expires: Thu Oct 29 07:51:34 2009
    DNS Servers: 192.168.0.1
    192.168.0.1
    Active Connection: LAN Connection
    Connected: Yes
    Online: Yes
    Using Modem: No
    Using LAN: Yes
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to iTunes Store was successful.
    Secure connection attempt to iTunes Store was successful.
    Secure connection attempt to iPhone activation server was successful.
    Last successful store access was 2009-10-29 07:28:11.

  • ITunes has stopped working.  Can play songs, but cannot access store.  What do I do?

    iTunes has stopped working.  Can play songs, but cannot access store.  What do I do?

    Hello there, Ellen317.
    The following Knowledge Base article provides some great in-depth steps for troubleshooting your issue. Start with the section titled Troubleshoot issues in Windows:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro

  • Itunes crashes when I try to access store

    Itunes works fine, until I try to access store, when the whole program crashes. Clicking on the itunes store button causes the gray loading bar on top of the screen to progress as usual, but whole program crashes when it fully loads. The following message from windows is displayed:
    iTunes has encountered a problem and needs to close. We are sorry for the inconvenience.
    Dell Dimension 8400   Windows XP  

    Try gn_id's suggestion from the following post:
    Re: iTunes 11 crashes when opening the store - no error message

  • How to convert an excel file where customers have partial access for selecting items.

    Please Advise,
    I have created an excel file with columns that calculates price and quantity. I need to know how my customers can access the file without seeing all my calculations, etc. and just select the number of items. I need to keep my excel formula info confidential and at the same time having the customers the ability to select the items.
    This excel file will be placed on my web site and linked where customers have access to it. They make their selections and emailed back for processing.with their selected items. If the excel file is converted into a pdf file, Then placed and linked for customer access how can customers have partial access and select in certain columns and have excel fuction for calculations?
    Thanks,
    Dan

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • Allowing access to select few public objects (moved from Native forum)

    I am moving my posting from Java Forums > Fundamentals > Key Classes > Native forum to this one. Sorry for posting it on the wrong forum earlier. Before each reply I have added a lien for clarity.
    Allowing access to select few public objects
    Author: COOLNM Posts: 5 Registered: 12/21/05
    Dec 21, 2005 9:59 AM
    I am developing a java application. I need to provide some scripting support (using Jython or Rhino) to my application so that the user can better use my application. Now the problem is I just want a select few public objects to be accesible via scripts and not all public objects I have written internally. I read somewhere that class name and code obfuscation could be a option but not a full proof solution. Can anyone suggest how a full proof solution can be achieved? Would running the script interpreter in seperate JVM help (and propogate the calls to the original JVM) ? Would a custom class loader help? Please suggest.
    Thanks,
    COOLNM
    Re: Allowing access to select few public objects
    Author: IanSchneider Posts: 1,381 Registered: 10/26/00
    Dec 21, 2005 10:14 AM (reply 1 of 10)
    I read somewhere that class name and code obfuscation could be a option but not a full proof solution.Correct, someone could still can call obfuscated methods.
    Would running the script interpreter in seperate JVM help (and propogate the calls to the original JVM) ?No.
    Would a custom class loader help? Possibly depending upon how the interpreter dispatches calls.
    Can anyone suggest how a full proof solution can be achieved?With jython, you could write custom PyObject subclasses (or general java facade classes) to expose only the methods you want to. The former technique allows more cool scripting functionality, the latter would presumably work in other interpreters. This would have to be done for every object you want to expose.
    Alternatively, you could enable a SecurityManager and allow only trusted code to invoke yours.
    Re: Allowing access to select few public objects
    Author: COOLNM Posts: 5 Registered: 12/21/05
    Dec 21, 2005 9:36 PM (reply 2 of 10)
    I read somewhere that class name and codeobfuscation could be a option but not a full proof
    solution.
    Correct, someone could still can call obfuscated
    methods.
    Would running the script interpreter in seperate JVMhelp (and propogate the calls to the original JVM) ?
    No.Could you please explain why this wouldn't work?
    The plan is:
    Let say I have 2 public objects A & B and I want the user to only use A via their scripts.
    In JVM1: I use both A & B
    In JVM2: I write a psuedo A and not B. For all the methods of A, I propogate the calls to JVM1 (I think this is achievable but not sure how)
    The script interpreter runs on JVM2.
    Now if the user tries to access A then the call would go to JVM1 but if he tries to access B then there is no B available in JVM2 so the user cant access B.
    I know this method could be heavy as each call would have to go from JVM1 to JVM2.
    By sepeate JVMs I mean seperate instance of java.
    >
    Would a custom class loader help? Possibly depending upon how the interpreter
    dispatches calls.
    Can anyone suggest how a full proof solution can beachieved?
    With jython, you could write custom PyObject
    subclasses (or general java facade classes) to expose
    only the methods you want to. The former technique
    allows more cool scripting functionality, the latter
    would presumably work in other interpreters. This
    would have to be done for every object you want to
    expose.
    Alternatively, you could enable a SecurityManager and
    allow only trusted code to invoke yours.-----------------------------------------------------------------------------------------------------
    Re: Allowing access to select few public objects
    Author: allquixotic Posts: 12 Registered: 12/19/05
    Dec 22, 2005 5:09 AM (reply 3 of 10)
    RMI has a way for multiple JVMs to communicate programmatically; you could also use sockets on the loopback network device (localhost). These techniques are how mature Java products constrain their number of running instances to a finite number (usually 1), they terminate any starting JVM early in the initialization procedures of the main method if the "already-running test" indicates one is running.
    If you use the networking method, you could basically read from a ServerSocket on the "executing" JVM, while the "scripting" JVM writes to a Socket. Then use reflection in the executing (server) side to determine if the method or object being referenced is one you want to expose. If not, do something -- like write back to the client that the method invocation was invalid. Reflection will slow down your code a lot though, so I don't recommend it for apps that already take up 50 megs or more of RAM ;)
    Regards,
    Sean
    Re: Allowing access to select few public objects
    Author: IanSchneider Posts: 1,381 Registered: 10/26/00
    Dec 22, 2005 9:05 AM (reply 4 of 10)
    Would running the script interpreter in seperate JVMhelp (and propogate the calls to the original JVM) ?
    No.
    Could you please explain why this wouldn't work?It could work. I said no because the other methods are better - easier to implement and vastly more performant without wasting resources.
    Re: Allowing access to select few public objects
    Author: COOLNM Posts: 5 Registered: 12/21/05
    Dec 23, 2005 12:48 AM (reply 5 of 10)
    Ya, the seperate JVM approach seems complex and might not be fully achievable.
    Can someone give small code snippets on how the method level control be achieved using Java SecurityManager. Just a recap on what I am trying to achieve -
    A & B are two public objects defined internally by my app.
    I have to give the user of my app the ability to write some code. But only B
    is to be exposed to client and not A.
    Let say I have this code -
    Object A = Interpreter.InitializeEngine(..);
    A.executeFromUser(stdin);
    The user mostly uses some scripting language, say Python and the Interpreter
    is Jython. Now my Interpreter is capable of understanding calls to Java
    objects from Python. If the user tries to access B via the scripts then it
    should be allowed to do so but access to A should not be allowed via the
    scripting language.
    Thanks,
    Neeraj
    Re: Allowing access to select few public objects
    Author: bschauwejava Posts: 721 Registered: 1/13/04
    Dec 26, 2005 2:13 PM (reply 6 of 10)
    What you probably want is to give the user access to an interface - not a class - that only exposes the methods that you want to expose.
    This is the way all RMI APIs are exposed to client programs.
    Re: Allowing access to select few public objects
    Author: bschauwejava Posts: 721 Registered: 1/13/04
    Dec 26, 2005 2:16 PM (reply 7 of 10)
    Just one more comment. You haven't said very much about the runtime model of the scripting environment vs your java environment. How many processes do you expect to have running to make the system work? Are you expecting your java code to wind up in a jar file and get loaded by the Python process? Or are you planning on the java code executing in a separate process? If the latter, then RMI is probably your best bet.
    Re: Allowing access to select few public objects
    Author: COOLNM Posts: 5 Registered: 12/21/05
    Dec 27, 2005 4:20 AM (reply 8 of 10)
    I haven't finalized on the runtime model yet as the scripting security issue is still not resolved. But I am sure that the java app code would init and run the scripting code and not the other way round. The app is pretty huge with heavy UI. Ya, the java code would be wrapped in jars (but mostly not in a single jar as I dont want the jar to be too hefty).
    Can someone comment on the use of SecurityManager in this case. My initial investigation shows that the objective on implementing method level security can't be implemented by this.
    Re: Allowing access to select few public objects
    Author: IanSchneider Posts: 1,381 Registered: 10/26/00
    Dec 27, 2005 9:14 AM (reply 9 of 10)
    My initial reply suggested writing a facade in java or by subclass PyObject. I highly recommend this path for ease of development, use, and runtime performance.
    Given that you don't understand the basics of java security, I will recommend this again.
    Re: Allowing access to select few public objects
    Author: COOLNM Posts: 5 Registered: 12/21/05
    Dec 27, 2005 11:33 PM (reply 10 of 10)
    I have started investigating on facade in java and subclassing PyObject. But I am not sure how these would resolve the primary issue. Even if I use these and if the script writer knows that there is a public class, say XYZ in my app then he can always access that class directly skipping my subclassed PyObject or the Java facade. Or am I missing something here?

    I have started investigating on facade in java and subclassing PyObject. But I am not sure
    how these would resolve the primary issue. Even if I use these and if the script writer knows
    that there is a public class, say XYZ in my app then he can always access that class directly
    skipping my subclassed PyObject or the Java facade. Or am I missing something here?Presumably your objects are somehow connected to the application. Your user could do something like:
    from com.foo import Player
    p = Player()
    p.setGold(Integer.MAX_VALUE)But of course the new Player object would not be part of the game. Now if you have some kind of static/singleton game state, then the malicious user could insert the Player into the game model...
    The real trick lies in understanding how to setup the jython interpreter. If your interpreter classloader can only load facade classes (and system classes) then the client script could not load other classes. There is also a hook for the import keyword so you could disallow importing java classes. Each interpretor instance has the ability to setup the locals and globals for the session so you can insert live game objects.
    I am only familiar with jythons internals, so this may or may not be applicable to rhino.

  • Why is the itunes store selection different on my mac and apple tv?

    Why is the itunes store selection different on my mac and apple tv. when i browse the documenteries on my apple tv, i can purchase/rent only 3. when i look on the itunes store on my mac, there's a whole page of docs to select from.

    "ah, so It's really up to the artists/ Distributions people that decide what can be published or sold? "
    Yes.

  • Store select-options on database

    Hello ABAP community,
    I would like to store select-options on the database. Of course, beforehand they need to be entered by the user. From this, the two questions arise:
    • Is here a way to put select-options on a regular dynpro?
    • Is there a re-usable mechanism of saving select-options to the database. Such a mechanism should exist because saving variants of a report is doing basically this.
    Thanks for your input,
    Christian

    Hi Christian
    To use select-options features at an ordinary screen you can use the FM <b>"COMPLEX_SELECTIONS_DIALOG"</b>.
    <b>OR</b>
    You can code a selection screen
    SELECTION-SCREEN BEGIN OF SCREEN 1001 .
    SELECTION-SCREEN END OF SCREEN 1001 .
    within your program and call it as a subscreen at your screen.
    "Variant Management" feature of selection screens is a whole process. That is you can find and utilize it using its FMs (e.g. RS_CHANGE_CREATED_VARIANT, RS_CREATE_VARIANT, RS_REFRESH_FROM_SELECTOPTIONS,...) conveniently. However, I guess it will be sophisticated, i.e. variant id's, and other stuff...
    Regarding to your scenario you can prefer storing them by your own procedure at whose basis again the structure <b>"RSPARAMS"</b> exists.
    Hope this helps...
    *--Serdar

  • FileFormat-Plugin: Writing multi layer image

    Hi,
    I've another problem with a FileFormat-Plugin.
    I want to write multiple layers to a file.
    The plugin is correctly supporting format layers and is receiving the "writeLayerStart" event.
    There I can see the that PS is giving me the background layer and I'm writing it to the file.
    But after that I receive the "writeFinish" event.
    All other layers are ignored.
    Is there anything I should set in the FormatRecord so PS will give me the next layer?
    Thanks in advance,
    Christian

    thank you for answering...
    LayerFormat Example?!
    I have only 3dformat, simpleformat and textformat in the format folder of the sdk sample code.
    I have taken the simpleformat sample as a start.
    Added  FormatLayerSupport { doesSupportFormatLayers }, to the PiPL resource,
    added functions for the additional events (layerWriteStart, ...Continue, etc.) and put my write code into the
    writeLayerStart function.
    It is the code from the simpleformat writeStart function.
    So an error is not returned.

Maybe you are looking for