Specifying a filename in a plugin dialog

I'm completely new to AE plugin development, so bear with me. I'm going to attempt to update the AEFlame plugin to the latest version of the flame renderer (AEFlame is now 8 years behind!)...but the most important thing I can see as far as the interface isn't particularly straightforward to implement.
There's already a great flame editor (Apophysis) so there's no need to recreate that in the plugin. What is absolutely essential is that we are able to select a file to use as the source of the flame data (XML), and I can't see a way to do this through standard parameter types. I'd want to change some render settings, but nothing more complex than that - the flame contents would be hidden from the user.
It seems to me like the most elegant solution would be to write support for a new file type (.flame or .flam3) that would permit AE to treat these files as elements of the project - parametric descriptions of bitmap images. Is that correct? Is there an easy way for me to be able to select a file from a dialog within an effects plugin?
Many thanks for any recommendations or assistance.
Regards,
Erik Reckase
flam3dev

ECW = Effect Control Window (I just meant a custom UI for your effect plugin.)
In addition to painting the "Open" button (or whatever UI element), your custom UI could also paint a drop-down combo box or list box to allow the user to select the appropriate flame item from the chosen file. You could then populate this element dynamically after the user selects the XML file.
Your custom UI could also paint the filename text after the user selects one. And something like "(Select a file)" if the user has not yet chosen one.
You'll need to save your custom UI data in the plugin's sequence data, so that when the project is saved (or a preset is created), the effect retains all of the user's selections. One of the example projects shows how to flatten & unflatten sequence data, can't remember which one off the top of my head but if you search for "flatten" I'm sure you'll find it.
You *could* load the XML file each time you need to render, but it'd be better to cache it and then access that cache each time you need to render.
I'm not sure if an arbitrary data type would be a better/alternative option -- I've not used them myself but they may be worth investigating too.

Similar Messages

  • Plugin Dialog not visible in Photoshop CS4 64bit

    Hi all,
    I am new in the world of photoshop plugins. I am using adobe photoshop CS4 64bit environment.
    I have converted a 32bit plugin into a 64bit plugin. I have succesfully loaded the plugin .
    Now my problem is when i click on the pluginName from the menu list, my plugin dialog is not visible. I am using DialogBoxParam API to show the
    dialog within the  "DoUI" method but this API(DialogBoxParam) is returning an error value. I have used the GetLastError and got the below mentioned
    error:
    Error 1813: The specified resource type can not be found in the image file.
    The 32bit plugin is running succesfully with this dialog resource. I am using the same .rc file which i am using in 32 bit plugin.
    Please help me, it is very urgent for me..
    Thanks in advance.. Any type of help is highly appreciated. If anybody has any problem in understanding my problem please revert me back i will try to
    make it more clear
    Regards
    Hemant

    Hi,
    I think i have not described my problem well..
    I'll try it again to make it more clear..
    I have a 32 bit filter plugin, which is running successfully on Photoshop CS4 32-bit environment. Now i want my plugin to be run on CS4 64bit environment as well. When i tried to run my plugin in the 64-bit environment with all the 64-bit settings which are required, my plugin is not loaded succesfully. Then i used a sample 64-bit plugin(Dissolve) and put my plugin code inside dissolve plugins code. Changed the dissolve.r file with my plugin .r file and dissolve.rc file with my plugin .rc file. Now my plugin is loading succesfully but when i click the plugin from filter menu list, my plugin dialog is not shown. I  do not understand why is it happening? Plz provide some information.
    Regards
    Hemant

  • Set default filename for file save dialog

    Hi,
    I am using AxAcroPDF control to view pdf files in windows forms.
    Is there any option to set the default filename in the save dialog?
    Thanks for your help.
    Freedon

    Hi,
    I've found a solution.
    public void Open(string filePath)
    axAcroPDF.LoadFile(filePath);
    //this will set the correct name in the save file dialog.
    axAcroPDF.src = filePath;
    Thanks for your help.
    Freedon

  • Set default filename for file save dialog on Save button click

    Hi,
    I am using AxAcroPDF (version 9.0) control to view pdf files in windows forms (C#). The pdf loads into the viewer in the form. Now, when I click on the Save button in the viewer, a Save dialog pops up with a default filename having complete path info.
    If I have loaded the pdf file into AxAcroPDF viewer with filename:
    "C:\Documents and Settings\KB_Kravi\My Documents\CustomerList.pdf"
    then in the save dialog, the default filename will be:
    "C_Documents_and_Settings_KB_Kravi_My Documents_CustomerList.pdf"
    Is there any option to set the default filename in the save dialog to some short name, instead of this lengthy name?
    Thanks,
    Ravi.

    Hi,
    I've found a solution.
    public void Open(string filePath)
    axAcroPDF.LoadFile(filePath);
    //this will set the correct name in the save file dialog.
    axAcroPDF.src = filePath;
    Thanks for your help.
    Freedon

  • How do i specify the filename for a binary file generated by a JSP?

    I am writing a report generator that has the ability to generate Excel files. The user clicks on a link (exporter.jsp), the page's content-type has been set to "application/vnd.ms-excel" which naturally prompts the user to either save to a file or open directly in Excel.
    It works fine, but requires the user to manually rename the generated file from "exporter.jsp" to "whatever.xls". Furthermore, Firefox will not let you rename the file in save dialog box, it just automatically saves the file as "exporter.jsp", you must rename it from the file browser.
    How do specify the output file name from within JSP?
    Btw, right clicking and selecting "save link as" allows for specifying the file name, but the file that is created is empty.
    Thanks

    You need to set the content-disposition header as well as the content-type.
    here is one article on the subject
    res.setContentType("application/vnd.ms-excel");
    res.setHeader("Content-Disposition", "attachment; filename=" + filename);

  • Filename in Save As dialog when saving PDF file

    I have a web site serving up PDF files. Without going into details, the URLs of the PDFs are not just your basic URL but look simething like this:
    http://www.domain.com/WorkFlowApp/Clients/demo1/secure/Promo%20Cover%20Cool-MedH i.pdf?userId=55b64ad5-28a2-490e-b3d6-4944099a390f#collab=CollabService@http://ww w.domain.com/ICCollab/IC_Service.asmx?WSDL
    In this case the actual filename is "Promo Cover Cool-MedHi.pdf"
    While viewing in Safari (OS X), if the user saves the PDF to their local machine, the Save As dialog comes up and the filename field is automatically populated. The problem is, instead of using just the filename, the field contains this:
    http---www.domain.com-WorkFlowApp-Clients-demo1-secure-Promo%20Cover%20Cool-MedH i.pdf?userId=55b64ad5-28a2-490e-b3d6-4944099a390f#collab=CollabService@http---ww w.domain.com-ICCollab-IC_Service.asmx?WSDL
    I know when performing the same action on Windows using Internet Explorer, the Save As dialog box filename field is populated correctly with just the filename (although it shows up URL encoded as Promo%20Cover%20Cool-MedHi.pdf, which is OK).
    I'd like to be able to force Safari to use just the filename in the Save As dialog box. Has anyone come accross this problem and figured out a solution?

    Hello Ebnul.nao
    I am having this same problemwith trying to work this out.
    Did you succeed in the end?
    I will really appreciate your help if you did
    Kind regards

  • To display non US-ASCII filename in file download dialog - Help Needed

    Hi,
    Our application supports to upload a file with name in chinese/japanese language. When user tries to download filedownload dialog box is appearing with the filename as junk characters.
    How to solve this issue to display the filename as uploaded.
    Thanks in advance
    ~kans

    bsampieri, issue is in display of the file name in
    file download dialog.
    ~kansI understood that, but my thought was that the HTTP headers content type containing a charset of UTF-8 might help. I don't know for sure, but otherwise, I don't know how to get the browser to otherwise not assume ASCII.

  • Any way to get unique filename in "Save as" dialog?

    is there any kind of 3rd-party add-on or whatever that would give an option in the "Save as" dialog to simply make up a file name that would be unique in whatever folder it's trying to save to?
    Mike

    Kappy wrote:
    Do you mean to automatically insert a filename for you in the Save As: field of the dialog? Why is that needed when the field is usually always in a selected state so you can enter a filename of your choice? Maybe I don't quite understand what you are asking.
    ok. Suppose I am downloading files from an on-line web archive where many of the files have the same name. This means that for each one, I have to modify the name manually in the Save As: field, so they don't overwrite each other when I'm saving to a folder on my local hard drive. I certainly can enter new names for each, but it gets very tedious when there are a lot of files. I was wondering if there's any 3rd-party software that puts an extra option on there to automatically save with a unique name.
    thanks,
    Mike

  • Specify Output Filename in Frame Document

    WebWorks provided a clever way to specify the name of the
    HTML output file within the source FrameMaker file; it involved
    using a 'filename' marker type and specifying the name of the file.
    Does RoboHelp offer an analogous approach?

    This is not supported in RoboHelp 7.

  • Set default filename in JFileChooser (Save Dialog)

    Hi,
    how can i set a default filename in a JFileChooser-Save-Dialog?
    The file does NOT exist, so setSelectedFile(new File("FileName")); does not work.
    Thanks in advance.
    Filo

    Did you test this? It works fine for me.

  • Specifying the filename for outbound FTP transport in OSB

    I want an OSB based service that will send via FTP a file with a specific name to a remote ftp location.
    It appears OSB can't do this because the FTP transport on a business service only allows you to specify the prefix and suffix and then generates a big long file name for the midlle parts.
    Does someone know how to override this and specify the name that you want teh remote file name to be called?

    mdsrobbins wrote:
    Your response was helpful but being new to OSB I'm still not quite there because I want to pass a "variable" to the file name. Now given I want to ftp a CSV file I've specified a proxy messaging service in an MFL format behind a jms queue. The business service underlying this is the ftp service again using the MFL format. This all works but in the message flow I for the proxy I can't seem to get access to a user defined property which contains the filename which I could then pull out and stuff into the "filename" header as suggested above.
    Doe anyone have any ideas how I can get access to a filename property from a JMS message?From what i understand
    JMSQ--- JMS PRoxy (MFL)----Pipeline ----->BS (MFL/FTP)---FTP server
    So you would like to set the filename that is contained the JMS message custom headers?. While creating your JMS Proxy you have to follow these steps
    1) While creating JMS Proxy in Transport Configuration page select Get All Headers =Yes
    2) If file name is set as user defined property in JMS message then use $Header in you pipeline/message flow. This variable will hold your user defined properties. If the user defined property is part of JMS message then use $body.
    thanks
    Manoj

  • Need to specify default filename for SaveAs

    I am using the command app.execMenuItem("SaveAs"); in the click event of a button. Is there anyway that I can specify a default filename for the user? I do want the user to get the Save As window and the ability to change the name if possible.
    The form is generated by the RenderForm Java script, and the name being generated as a default for the SaveAs window is RenderForm.pdf
    Thanks,
    Velvet

    Chris, I think you missed this one.
    I think you want to change the name when calling app.SaveAs via javascript from the client not on the server. Since app.executeMenuItem("saveAs") will not take any parameters to suggest a file name. I think you will have to use doc.saveAs which will allow the name to be specified. This would require a trustedFunction which may or will not work unless you have known users. You will also need to prompt for the file name before making the call.
    Here is some untested code to get you started...
    You will need to create a trustedFunction (see AcroJS.pdf for details) ..
    saveFunc = app.trustedFunction(function (filename) {
    app.beginPriv();
    try {
    event.target.saveAs({cPath: filename});
    } catch (err) {
    app.alert("Error: " + err);
    app.endPriv();
    Code for your event...
    var suggestedName = "MyPDFName.pdf";
    // Note This will only work if you know where they will be saving it
    var cPathToSaveTo = "/c/temp/";
    var cResponse = app.response({
    cQuestion: "What name would you like to use for this PDF?",
    cTitle: "File Name",
    cDefault: suggestedName,
    cLabel: "File Name:" })
    if(cResponse != null)
    saveFunc(cPathToSaveTo + cResponse );
    Hope this helps.
    Rich Ruiz
    Novanis

  • Reverse geocoding suggestions data invisible for filename templates and plugins

    Hi,
    Reverse geocoding are amazing, saves me a lot of work, but filename template I use seems don't work well with that feature.
    With file naming scheme like this: "Country-City-Sequence # (001)" the result is "--001.jpg" instead of "France-Paris-001.jpg" and I have to confirm address for hundreds photos manually to see country and city information in filename.
    Same situation in jf PicasaWeb plugin, when using caption scheme like this: "{Country}. {City}. {YYYY}. {Caption}." the result is ". . 2012. Example caption." instead of "France. Paris. 2012. Example caption."
    It is possible for Lightroom to use address suggestions in this situations whenever address fields are empty?
    Most important for me is to plugins see the address suggestions like normal (hard) data if address fields are empty.

    Reverse geocoding are amazing, saves me a lot of work, but filename template I use seems don't work well with that feature.
    With file naming scheme like this: "Country-City-Sequence # (001)" the result is "--001.jpg" instead of "France-Paris-001.jpg" and I have to confirm address for hundreds photos manually to see country and city information in filename.
    On the face of it, Lr4's implementation of reverse geocoding is excellent, and it is when dealing with images taken at the same location. However, its handling of mixed locations is painful. In my case I use Jeffrey Friedl's plugin. It fully integrates with the Map module and allows you to reverse geocode without the limitations your currently experiencing. Very likely not what you wnated to read, but it does provided a painless solution to the problem you've identified.
    Jeffrey's plugin can be downloaed from http://regex.info/blog/lightroom-goodies/gps

  • Where is the location for filter plugin dialog in AI CS4?

    Hello All,
    Im using CS4. In CS4 SDK sample projects, "Tutorial" is a filter type plugin and I want to test this plugin.
    Project is compiled fine and plugin created. Placed this plugin in plugins folder of AI.
    and then started AI. The Tutorial plugin is showing under Object -> Filter -> SDK -> Tutorial
    I have clicked on "Tutorial" plugin in filters menu. A dialog is opened. set the some parameters in the UI and then clicked on OK.
    The dialog is disappeared after OK button clicked.
    now, how can I get the same ("Tutorial") dialog again? Where can I see the "Tutorial" dialog in AI?
    Just like if we apply a 3d Rotate effect, then the 3D Rotate effect dialog is visible under Appearance Panel. If we want to change the settings, we can click on "3D Rotate" in Appearance panel, then 3D Rotate dialog will be opned.
    Please tell me.
    - mind

    Depending on what your filter does (namely, if it leaves an effect or if it just modifies the art) it may leave an entry in the Appearance panel. This is usually for 'Effects' not filters though the distinction is a little blurry. One of the reasons they took out the Filters menu in CS4 is because most 'filters' were in fact just art operations and better suited to be placed as menuitems in more appropriate places. Effects are really bits of code that get fired when necessary on art to modify their representation on the page based on parameters.
    If you're just doing something to art once (like simplifying the art, or reflecting the art) then you're not an effect. If that's the case, you can just create a menuitem anywhere you feel is right if you don't want to be locked into Object > Filter. Being a filter doesn't actually give you much advantage anymore. You might just want to create a menuitem, respond to it and do your work. Filters come with baggage like filter parameters and 'fire last filter' and whatnot, and frankly, that's being phased out. Its more a Photoshop concept shoehorned into Illustrator.

  • Folder level script? How can I use field value as a pdf filename in save as dialog box

    I read somewhere that if you use a folder level script, you can do things like save a pdf with a specific filename - possibly based on a field name.
    How would one set up a folder level script?
    How do you execute a script from the PDF?
    What code would you use to change the PDF name to the contents of the fFieldName text field?
    Or, is this really just impossible to do?

    The article is interesting.  It suggests you place code like this:
    // Page Replacement Function
    var ReplaceLastPage = app.trustedFunction( function(cPath) {
    app.beginPriv();
    this.replacePages(this.numPages-1, cPath); app.endPriv();
    In the trusted folder.  What is the path of the trusted function(s) that get automatically loaded into Acrobat?
    I assume in the example above, function(cPath) is a function inside of the PDF...

Maybe you are looking for

  • I can only access some webpages

    I have a wireless windows laptop that can connect to the internet fine, but my iMac, that is connected by ethernet cable through the wireless router can only access some. It can, for example, connect to this site, and yahoo, but can't connect to yout

  • Using 2 apple Tvs home sharing problem

    HI I have a problem using an 2nd gen and 3rd gen apple tv at the same time. When I watch 3rd gen in the lounge my 2nd gen in the bedroom shows home sharing not activated. I then exit itunes and reopen my 2nd gen will then show my files shared. The 3r

  • Adding attachments in OTL

    Hi Friends, Can we add attachments while entering the time cards in OTL. Any pointers on this will be greatly helpful. Thanks

  • Songs don't advance

    When I play the iPod on my iPhone (not 3G) the songs will not automatically advance. I have to advance the song manually. If I don't, the last song just repeats over and over. Is there any solution?

  • Deleting photos bug?

    HI! I Think a have a problem with a new iPhoto`08. When i delete a photo in edit mode, and then use Command+Z to revert it back do Library - it's thumbail does not appear back in this preview on top of iPhoto. I have to go back to Library to see it.