Custom Buttons for 3D Interaction?

How can I set a button to change the 3D tool using javascript?
As example, I have a button I've made to change to the zoom tool. I'd like to click on it and have the 3d tool change from the default spin tool to the zoom tool.
I've tried a couple different things but am having no luck. Any help would be greatly appreciated.
Thanks!
-Ted

Yo Zero,
Here's a hunk of code to do what you want. You should know that when Acrobat processes 3D annotations, there are TWO javascript engines running: a document-level engine (Escript) and a 3D-specific engine (Extendscript). There are reasons for this. Regardless, there are API's present to allow the two to talk to each other for page-annot interaction.
This hunk of code could be shorter (very much) but I left it a little verbose to give you an idea of what's going on.
//==============================
//get index of page containing the Annot3D object (count starts at 0)
var pageIndex = this.pageNum;
//index of the Annot3D (count starts at 0)
var annotIndex = 0;
//get the annot object
var a3d = getAnnots3D(pageIndex)[annotIndex];
console.println("a3d = " + a3d);
//now forcibly activate it
a3d.activated = true;
console.println("a3d.activated = " + a3d.activated);
//get a reference to the Annot3D script context
var c3d = a3d.context3D;
console.println("c3d = " + c3d);
//set 3D tool with the 3D API 'runtime' object global properties and methods
c3d.runtime.setCurrentTool(c3d.runtime.TOOL_NAME_ZOOM);
console.println("c3d = " + c3d);
//==============================

Similar Messages

  • How can I create a custom button for opening a form?

    I have a parent form having child forms. In my main form I want to create custom buttons for opening child forms. I want to use master-detail form but there are more than one child forms, and in master-detail form I can only create one detail form. So I will create a form based on a table and in that form I will call the child forms by custom buttons. Can I do that?
    Thanx,
    Gulsah.

    This can be easily done. First open up two instances of your Portal. In one window, you will need to go into your component you wish to link FROM. In the other window you will need to go into your component you wish to link TO. In the component you wish to link TO there will be a moduleid. Note this somewhere. Then, you will see an area that says: "Call Interface: Show". Click on this. (In the window you are linking to.). In this window, you will see a bunch of stuff. At the bottom you will see a URL call. This is the call you need to use. At the top, it explains each piece of the URL call. Just subsitute YOUR appropriate information into the URL call. In the form you wish to link FROM, create a button. Once you create this button, it will appear at the bottom, click on it and you will see an area to insert a Javascript. Click the onClick and insert:
    //this is the variable you want to pass from one form to the other
    get_field_name = getField(this.form,'COLUMN_NAME_IN_DATABASE');
    //this is so you can open the "child" form
    window.open('/pls/cc_prod/DAD_NAME.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=MOD_ID_HERE&p_arg_names=_sessionid&p_arg_values=&p_arg_names=COLUMN_NAME_IN_DATABASE&p_arg values='+GETFIELD_NAME+'&p_arg_names=_COLUMN_NAME_IN_DATABASE_cond&p_arg_values=%3D');
    In the fourth tab, where it says, "....before displaying form" insert the following: (This will tell the form how to handle the getField function.)
    htp.p('<script language="JavaScript1.3">
    < !--
    function getField(form,fieldName)
    var objName = "";
    var tmp = "";
    var dAction = "";
    var sel_idx = 0;
    var cnt = 0;
    var instance = 0;
    var slicedName;
    var fillData = new Array();
    for (var i = 0; i < form.length; i++)
    slicedName = form.elements.name.split(".");
    tmp = slicedName[2];
    instance = parseInt(slicedName[3],10);
    if (!tmp)
    continue;
    objName = tmp;
    if (objName == fieldName)
    return form.elements[i].value;
    //-->
    </script>');
    I hope this helps.
    null

  • Is it possible to create custom buttons for quizzes in Adobe Presenter?

    My company is not happy with the quiz buttons in Adobe Presenter and I was wondering if it is possibe to create custom buttons for quizzes and use them as defaults. Like you can do in Captivate.  I'm using Adobe Presenter 8 in Windows 7. 

    Hi,
    Do you want to change the appearance and position of buttons ?
    or
    Do you want to change the action when the button is pressed ?
    Thanks,
    Alpi Agarwal

  • Need custom button for Thunderbird for FF toolbar; Don't know the website.

    I have had a Thunderbird Custom Button for my FF toolbar and have lost it. This happened once before had someone gave me a website where all of the old custom buttons qwe listwed and I was able to drag & drop the button from there. Unfortunately I do nor had that website and hope that someone will be able to provide it for me. Thanks.

    Take a look at [http://www.google.com/search?q=Thunderbird+Custom+Button+for+my+FF+toolbar&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8num=100 this search]

  • Custom buttons for control 3d PDF Animate

    I am currently using the 3d PDF Animate program distributed by Tetra4d to animate some 3d models that I imported into a pdf.  The only actions that the default buttons provide are Play, PlayAll, Pause, Preivous, Next, First, and Last.  I am trying to create a button that would play specidic steps without having to hit next or previous to get to it, but nothing I try seems to work.  I have no experience in java or javascript so i am basicly just trying to piece things together based on what I see, but as I said, nothing is working.  If anybody has any experience in the program, I would sure appreciate some input.

    There are two ways to animate the contents of a 3D annotation - either the keyframe data is stored within the 3D model itself (as a timeline) or JavaScript is used to move each element based on a ticker loop. In both cases there must be a JavaScript controller function attached to the 3D annotation in order for control buttons to work, and when that code is added by a commercial plugin it is usually obfuscated so it cannot be modified.
    Aside from inspecting the internal structure of the file, you can tell where the animation comes from by how the inbuilt controls work. Open the properties of the 3D annotation in Acrobat Pro, go to the 3D tab and 'Clear' the embedded script (don't save the file!). Re-activate the 3D scene, and look at the popup toolbar. If there's an embedded timeline, the play/scrub controller on the 3D toolbar will work. If it doesn't, the animation is script-controlled.
    With embedded timelines there is usually only one animation (which covers all steps), and the various buttons assigned by the plugin simply refer to start/stop times within that animation - the 'play all' button simply tells the script to ignore all the intermediate markers. If you wanted to play a particular step, you would have to work out the time (in seconds) that the step begins and ends, then add your own code to play through only that range. However, given the code already attached to the annotation cannot be edited or removed without breaking everything, and a 3D annotation cannot have more than one attached script, the only option to make even a minor change would be to write it all again from scratch. That's the disadvantage of using tools like this - they make one thing very easy, but in doing so make it next-to-impossible to change the end result.

  • It's posible change default image for mark interactive button / not UI

    When in indesgin convert a object to button appears in background a hand with a finger pointing to a button. It's posible to change this?
    I need to use several icons if it's posible in the same document.
    Thanks !

    I make a UI for mark custom buttons for custom export in xml, is for iPad but is a for a private format, not ePub, and i need to show diferents types of buttons, (events, buttons, etc...) I need to mark the elements with a custom icon.
    My actual solution is put my icon, (non printable) in the top left corner of the element (textFrame, Rectangle...) ,group it and store all event information in a JSON object, but isn't a good solution.
    the user can delete the item ....
    I think is imposible to make a custom mark for items without insert a new item.
    The Flag icon is for mark, when the user is building the publication. This item launches an interactive event
    thank for any idea

  • Is there a way to create a button for the tool bar that will View a page in "No Style'?

    I guess what I'm asking is...Is there a way to make a customized button for the toolbar that will allow me to change the view on a webpage to 'No Style' as listed under the view menu. If so, How can I do this?

    Try this add-on: <br />
    https://addons.mozilla.org/en-US/firefox/addon/custom-buttons/

  • ***How to call BSP App when custom button event fired from toolbar group***

    Dear PCUI Experts,
       I have created one custom button for the transaction CRMD_BUS2000116.
    And my urgnet requirement is , I need to call BSP application which is used to   take data from custom fields and stores into BP table.
    How to call the BSP App. when i clicks on the button.
    Please help me..
    I will reward with great points.
    Regards,
    Stella.

    Hi Purushothaman,
                                 I have created a button in CRRM_ACCOUNT application.
    Now i want to call  a custom bsp application by clicking on that button.I have followed step given in this blog
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1646. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    But the event is not triggered.Do I have to create an iview for my bsp application?
    How to do that?Plz help.
    Regards,
    Ruby.

  • 11.5.10 UI Custom Button to Remove/Delete an Instance?

    Hello,
    I'm in 11.5.10 and I have created a UI from scratch for my base model and on it I have created a Custom Button with the the Associated Model Node->Specified->My Sub Model along with the Button Action->Add Instance. When I test the model i'm able to click my custom button that I made to make as many instances of the child model as I want, however, when I go to the UI in developer mode for the child Model i try to make a custom button for it but there is not a delete instance action. Leading me to my question, how do I then delete the child models that i have spawned off? Like say on my main model I clicked my add instance button 5 times but then I decided i would like to remove one of them, how to do this?
    Thanks

    Hi;
    In that it mentioned how to create custom top but i want to remove itI know :) As i said make steps from reverse(start from application than delete files from OS)
    Regard
    Helios

  • Disable Add Attach Button in the Interactive PDF form

    Hi all,
    Can you please let me know if is possible to disable the Add Attachment Button for the interactive form?
    I need to show the attachment icon on the toolbar (setShowOption method from IWDPDFDocumentAppearance interface) but I need to disable the ability to add an attachment.
    Thanks in advance for your time.
    Regards,
    Mirco

    Hi Mirco,
    check below link may be it will help you
    Re: Disable Save Button in the Interactive PDF form

  • Disable Save Button in the Interactive PDF form

    Hi Experts,
        I have created an interactive form using NWDS and I am able to show it as Collable Object. Now the requirement is that I have to disable the save button from the PDF.
    Can you please let me know how to disable the Save Button for the interactive form?
    Thanks in Advance
    Regards,
    Kuldeep Verma

    Hi Kuldip,
    if you're trying to hide the Save Button in the Adobe toolbar, then you can place the following code in the wdDoModifyView method to hide the whole toolbar.
    // Get interactibe form handler.
            IWDPDFDocumentInteractiveFormHandler iFormHandler = WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(), "<name of your form>");
    //     Get appearance setter. 
          IWDPDFDocumentAppearance appearance = iFormHandler.getDocumentContext().getAppearance();
         // Hide menu bar.
         appearance.hideMenuBar(true); 
         // Hide tool bars.
         appearance.hideToolBars(true);
    hope this helps,
    harman

  • Custom button table of contents widget

    Hi guys,
    I used to have a widget that would allow you to create a custom button for expanding the table of contents ... one for the default state and then it would swap the image when it was expanded, the button would attach to the right hand side of the TOC ... does anyone know if this widget still exists and preferably one that works in version 7?

    Do you really still need it? Since Captivate 6 in the TOC-settings you have the possibility to upload custom Collapse/Expand icons to use as buttons:

  • How to add Custom button to existing ALV toolbar

    Hi,
    I want to add custom buttons for varaints in the existing row PRINT VERSION/EXPORT
    How do we do that?
    Rgds
    Vara

    I have used the standard component u2018salv_wd_tableu2019 in my application and will be able to give example by adding a button named 'NEW__BUTTON' .
    In the WDDOINIT method of the component controller, use the following code to define column name, your own buttons, visible column for the same component usage.
    DATA:
    lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage,
    lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
    *Check ALV component usage
    lr_salv_wd_table_usage = wd_this->wd_cpuse_alv( ).
    IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
    lr_salv_wd_table_usage->create_component( ).
    ELSE.
    lr_salv_wd_table_usage->delete_component( ).
    lr_salv_wd_table_usage->create_component( ).
    ENDIF.
    *Get ALV component
    lr_salv_wd_table = wd_this->wd_cpifc_alv( ).
    wd_this->mr_table type ref to CL_SALV_WD_CONFIG_TABLE.
    *Get ConfigurationModel from ALV Component
    wd_this->mr_table = lr_salv_wd_table->get_model( ).
    *Set table settings
    DATA:
    lr_table_settings TYPE REF TO if_salv_wd_table_settings.
    lr_table_settings ?= wd_this->mr_table .
    lr_table_settings->set_visible_row_count( '5' ).
    lr_table_settings->set_width( '100%' ).
    DATA:
    lr_header TYPE REF TO cl_salv_wd_header,
    l_header_text TYPE string.
    lr_header = lr_table_settings->get_header( ).
    l_header_text = cl_wd_utilities=>get_otr_text_by_alias( 'NEW__BUTTON' ).
    lr_header->set_text( l_header_text ).
    lr_header->set_tooltip( l_header_text ).
    "lr_table_settings->set_selection_mode( cl_wd_table=>e_selection_mode-multi_no_lead ).
    *Set functions
    IF wd_this->mb_no_maintain NE abap_true.
    DATA:
    lr_function TYPE REF TO cl_salv_wd_function,
    lr_fe_button TYPE REF TO cl_salv_wd_fe_button,
    l_btn_text TYPE string.
    *Add the button here for validation on the top of the ALV
    *This is where you add the buttons on the same ROW.
    lr_function = lr_functions->create_function( 'NEW__BUTTON' ).
    CREATE OBJECT lr_fe_button.
    l_btn_text = cl_wd_utilities=>get_otr_text_by_alias( 'NEW__BUTTON' ).
    lr_fe_button->set_text( l_btn_text ).
    lr_fe_button->set_tooltip( l_btn_text ).
    lr_function->set_editor( lr_fe_button ).
    After defining the buttons 'NEW__BUTTON' , handle the actions for the same using the method u2018LIST_ACTIONu2019 which should have the event as u2018ON_FUNCTIONu2019, controller as u2018interface controlleru2019 and component use as the name you have given say u2018ALVu2019.
    In the method u2018LIST_ACTIONu2019, handle the actions as below. This method will have the following importing parameters.
    WDEVENT Importing CL_WD_CUSTOM_EVENT
    R_PARAM Importing IF_SALV_WD_TABLE_FUNCTION
    method list_action .
    case r_param->id .
    when  'NEW__BUTTON'.
    "Do the validation here-"
    endcase.
    endmethod.
    Thanks,
    Rajkumar.S

  • Creating a cusotm button for Portlet Titlebar

    I am trying to create a custom button for our help system. The Help System is being
    hosted external to the portal. Ideally when a user clicks on the help icon a new
    window will appear with help relevant to that portlet.
    I can update a skeleton's titlebar.jsp to add this button and pull details from
    the portlet preferences to makes sure the relevant url is generated. The issues
    i see with my code are that they may not leverage the skin api very well to retreive
    the correct help images or apply the correct style to the border of the image.
    I see there are objects out there like ButtonPresentationContext and ToggleButtonPresentationContext
    that appear to retrieve look-and-feel information. Is there a way for me to populate
    my own ButtonPresentationContext to represent this custom button?

    I am currently trying to implement the help button on the title bar (I have suppressed the portlet title bar). I am able to add the portlet button, but am not able to get the help URL specified in the webservices advanced url settings page.
    Sample code
    <TABLE cellSpacing="0" cellPadding="0" width="100%">
         <TR>
              <TD class="platportletHeaderBg platportletWideHeader portletTitle" vAlign="middle" align="left">Test Page</TD>
              <TD align="right" valign="middle" nowrap class="platportletHeaderBg customappText portletButtons">
                   <span class="portletHelpButton"><img src="images/action_portlet_help.gif" alt="Test Help." border="0" align="absMiddle"
                             height="13" width="13"></A></span>
              </TD>
         </TR>
    </TABLE>

  • Custom pagination for APEX 4.2 interactive report using Page Zero

    Hi,
    I want to implement an «Custom pagination for APEX 4.2 interactive report» using a «page zero».
    I recently migrate from Apex 3.1 to Apex 4.2 and my «Custom pagination for APEX 3.1 interactive report» using a «page zero»  is not working any more.
    So now I try to adapt an excellent example of Jari Laine for 4.0 but using a page zero.
    I put the code JavaScript to Page zero but I must create an dynamic action to fire only for an interactive report region.
    It’s a good idea?
    Thank you

    Thought I would try once more with my DatePicker question.
    On the Apex.Oracle.Com website I have created a 1 page application that has an Interactive Report.
    [url http://apex.oracle.com/pls/apex/f?p=15655:1]
    user = 'test'
    password = 'test'
    I have 2 questions :
    (1) In IE7, press 'Actions', 'Filter'. On the Column dropdown list, select 'Order Timestamp'.
    Notice the prompt icon to the right of the 'expression'. This should change to the Datepicker, but in IE7 it does not. Try the samething in Firefox or Chrome and the Datepicker will appear.
    Is this a BUG, or does Apex 4.02 not support IE7 ?
    (2) In Firefox or Chrome, where you can now see the Datepicker, you will notice that it is the new style picker, not the old style ( called 'classic' ). I want to change it so that it shows the 'classic' datepicker not the new, but cannot see how to do it, if indeed you actually can.
    I would really appreciate it if someone could take a look and let me know if I am going mad, or if we need to get all our users onto IE8. We have now gone live with Apex 4.02 and need to resolve these issues.
    Thanks in advance.
    Edited by: DooRon on 10-Mar-2011 05:13

Maybe you are looking for