Looking for a way to switch views using Javascript

Hi ! I'm currently studying Acrobat 3D. <br /><br />I've got a PDF document with a 3D Annotation, which was imported from a U3D file. I defined 3 views : "initial", "front" and "top".<br /><br />My problem is that I'm looking for a way to switch views using Javascript. <br /><br />In fact, when I list cameras using the following code, I only get one camera called "DefaultView". So my question is : where has my "initial", "front" and "top" views been ? Is there a way I can switch between them using Javascript ?<br /><br />for(i=1;i<scene.cameras.count;++i)<br />     {<br />          Cam = scene.cameras.getByIndex(i);<br />          <br />          console.println("camera " + i + " : " + Cam.name);<br />     }<br /><br />Thank you very much in advance.<br /><br />françois

Are the dates on these entries correct??!! Doesn't seem like it. Anyway, just in case, here's some code to help:
//=========================================================
backgrounder = new RenderEventHandler();
backgrounder.onEvent = function(event)
runtime.removeEventHandler(this);
canvas = event.canvas;
background = canvas.background;
keyer = new KeyEventHandler();
keyer.onEvent = function(event)
switch (event.characterCode)
case 49:
cam = scene.cameras.getByIndex( 0 );
canvas.setCamera( cam );
break;
case 50:
cam = scene.cameras.getByIndex( 2 );
canvas.setCamera( cam );
break;
case 51:
cam = scene.cameras.getByIndex( 3 );
canvas.setCamera( cam );
break;
runtime.addEventHandler( keyer );
runtime.addEventHandler(backgrounder);
//inform user
console.println("Use the 1,2,3 Keys to toggle between cameras");
//===============================================

Similar Messages

  • Wi-Fi WEP security - looking for a way to make my use more secure.

      Having system results even using Kaspersky as a Internet application for security, and found the reinstall not just slow as a result of my attempts to reinstall, and failing to complete the down load. Looking for a tool that can help, any suggestions?

    Second the advice to remove the Anti-Virus software.
    WEP - Are you using System Preferences -> Sharing -> Internet Sharing?
    If you are, you cannot change the protection.  It is WEP only.
    I would suggest you get a dedicated router which is capable of WPA/WPA2 encryption.
    If you have a short term need for Internet Sharing (such as a hotel room with ethernet, and you want to share with your iPhone/iPad/iPod Touch, etc...), then Internet Sharing for that is not that much of an issue.  After all you are trusting the hotel network :-)

  • We are currently looking for a way to link images to a design file within programs like InDesign and Illustrator using an HTML link instead of a local file.  We are hosting our images in SharePoint and need the design file to retain it's links, no matter

    We are currently looking for a way to link images to a design file within programs like InDesign and Illustrator using an HTML link instead of a local file.  We are hosting our images in SharePoint and need the design file to retain it's links, no matter who on our network opens the design file.

    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • I am looking for a way or a PDF annotator app to use in a tablet that don't allow deletion as I edit.

    Hi All, I am looking for a way or a PDF annotator app to use in a tablet that don't allow deletion as I edit. I need to use in a controlled process that don't allow user to delete or erase edits once a mistake is made or a rewrite is needed. Thank you

    See How to call Adobe Acrobat 9 APIs to OCR the PDFs through .NET reply 4.

  • TS3152 Im using 10.7.4 and looking for a way to change the streaming port on quicktime x

    Im using 10.7.4 and looking for a way to change the streaming port on quicktime x
    used to be able to do via system preferences > quick time > advanced
    But cant find these settings anymore
    Thanks
    Pavi

    Click on the pull down window next to From: and you should be able to select the individual account you want to send from.  The account that you want to send from must be an Enabled account in the Account Preferences of Mail.

  • I am looking for a way to automate index creation using Adobe Reader Pro without having to use the screen user interface, as the indexing has to be run by a batch process.

    I am looking for a way to automate index creation using Adobe Reader Pro without having to use the screen user interface, as the indexing has to be run by a batch process.

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

  • I work for the Los Angeles Unified School District. I am looking for a way to remove or hide access to the settings on iPads using Apple Configurator (V1.7.1). Can anyone assist?

    I work for the Los Angeles Unified School District. I am looking for a way to remove or hide access to the settings on iPads using Apple Configurator (V1.7.1). Can anyone assist?

    A similar question came up yesterday. One of the responders posted this:
    Consider DEP, Device Enrollment Program. This will establish the company as the owner of the device.  It will lock an MDM to the divice which in turn will lock profiles to the device.
    Quick overview of zero-touch MDM enrollment, DEP
    http://www.apple.com/education/it/dep/
    "This document offers guidance on some important considerations for getting the most out of your iOS deployment." Covers: Prepare your infrastructure.  Set up devices.  Configure and manage devices.  Deploy apps and content.  Plan for support.
    https://www.apple.com/ipad/business/docs/iOS_Enterprise_Deployment_Overview_EN_F eb14.pdf
    [DocumentBodyEnd:d1616e95-b4ff-4e33-bf0b-3835cf3236c0]

  • Looking for automated way to test print PnP printer after install then delete

    At times we test 20 to 30 printers in a day. I am looking for automated ways to increase the efficiency of this. I would like to simply have the printer install using PnP print a test page then delete itself after the test page or on removal. Are there any settings that can be changed on the computer to change the PnP process to make this possible. I am currently trying to learn and understand the Plug and play process so that I may find out how to get started. Any ideas would be greatly appreciated.
    Thanks
    This topic first appeared in the Spiceworks Community

    Chris
    I spent all day Googling and doing side by side comparisons of my old and new systems.
    My display is a Dell U2410. It has several presets, including sRGB and Adobe RGB. I've been using sRGB.
    On my OLD system, (Win XP, PsCS2, DwCS4) there seems to be no distinction between color managed and non color managed apps, even on this wide gamut display. I could capture (digital camera) in Adobe RGB, open and edit in PsCS2, save as .psd, convert to CMYK for print, or convert to sRGB for SFW. All images looked identical and they printed and displayed perfectly. I thought this was normal, and seemed logical. This also seems to be the source of my incorrect assumptions. I was trying to get my new machine to behave like my old one.
    So I get this new machine (Windows 7, PsCS5, DwCS5) and now (still in sRGB display mode) all color managed apps appear de-saturated. Non color managed apps are OK. If I switch the display to Adobe RGB, color managed apps are OK, but non color managed apps are way too saturated. From my investigation, I believe this is normal behavior on a wide gamut display. I've tried changing the Control Panel > Display > Screen Resolution > Advanced settings > Color Management options, but to no avail. Either I'm missing something, or Windows 7 is doing color management differently.
    It seems my only option now is to use Adobe RGB display setting for Ps, etc. and switch to sRGB for Dw and non color managed apps. Or, have 2 separate files for print and web. I've Googled 'til my eyes are numb and still not sure I'm getting this. Any enlightenment would be greatly appreciated.
    Finally, I don't see an edit function here, so I can't remove my previous incorrect reply. Moderator, please feel free to do so.
    Thanks

  • Looking for a way to directly choose keyboard layout.

    I'm looking for a way to organise separated keyboard keys combinations (or single keys - the best) for every keyboard layout. I want to be able to choose layout directly. One unique key (keys combination) for each layout.
    One way may be smth. like setting a key to execute a command:
        setxkbmap -layout "us,ru"
    and
        setxkbmap -layout "ru,us"
    For keys setup in OpenBox may be used obkey, for example.
    In general it works. But in such a case, when not latin/english layout is the first one, or even single one, in the command's layout list, applications will not react on Ctrl-S, Ctrl-Z and so on. It do not depend on current layout, it depend on the first entry in last sequence to be used in the layouts list.
    I'm shure there are some other better ways to implement the idea. Please, give me advise: what a tool, or tool set to study and use?

    Stack wrote:
    the sad clown wrote:
    (just make sure that the changed layout doesn't break your keybind):
    setxkbmap -rules xorg -model pc104 -layout us -option
    Just change the layout parameters (and any other changes you need) for as many layouts as you want.
    Unfortunately, if the single layout, or first in the list layout is not 'us', but my national, GUI applications will stop to react on Ctrl-S, Ctrl-Z and similar things.
    Can it be fixed?
    Is it that Ctrl-[S,Z] don't work or that they change locations because the keyboard layout has been modified?  The first is a problem, the second is to be expected if you are changing the keyboard layout.
    Stack wrote:
    As I catch, for testing there is no difference between setxkbmap and xorg.conf. Also, there is no way to specify there layout specific switch combinations. In coma separated list of values for XKbOptions there is not binds to corresponding position in layouts list. All the combinations will do the same - cycle between layouts. http://www.xfree86.org/current/XKB-Config2.html#5
    Layout itself and layout switching mechanics are too different objects (or classes) in terms of programming. I'm not shure I'll be on a right way, if I'll decide to dive deeply into syntax of '/usr/share/X11/xkb/rules/xorg' and '/usr/share/X11/xkb/symbols/*' (mentioned at https://wiki.archlinux.org/index.php/Co … _xorg.conf ) and hacking of ready to use layouts. If I'm searching for a way to switch them only. Am I right?
    My suggestion isn't that you use the XkbOptions switch since this won't work for what you are asking.  Instead, I'm recommending you use a little keyboard shortcut utility, xbindkeys and use that to issue the setxkbmap command I mentioned earlier.  All you have to do is bind the shortcut to keys that don't change across keyboard layout changes (if you have a number pad, an easy solution is to use a modifier + one of these keys as it won't change).  This isn't a toggle like the xorg.conf edit, but can switch to any layout you choose to bind in any order you choose to perform.

  • I am looking for a way to disable the windows ct

    rl-alt-del function in a LabVIEW 6.0 VI. I also need to disable the bottom task bar including the Start key in Windows NT 4.0. My goal is to keep the VI exclusively on the screen and disable the users from switching to other programs or shut off the PC.

    rl-alt-del function in a LabVIEW 6.0 VI. I also need to disable the bottom task bar including the Start key in Windows NT 4.0. My goal is to keep the VI exclusively on the screen and disable the users from switching to other programs or shut off the PC.Public libraries use applications like WinSelect to lock down access to machines.
    http://www.winselect.com/
    But control-alt-delete in NT4.0 is a kernel level security feature that can't be
    defeated unless you hide the keyboard. By using registry settings you can
    control what is presented to the user after he hits control-alt-delete and keep
    him/her from shutting down, but you will also have to lock up the computer to keep
    your users from hitting the reset button and hide the mouse.
    If you want to boot up an NT environment without a keyboard and mouse
    you will need to go to NT Embedded. NTE allows you to build a custom
    OS that does not require keyboard or mouse to boot. You can also install
    just the components you need, ie; no browser, menus, control panel, etc.
    Regards,
    Alan
    "Dan Huynh" wrote in message news:[email protected]..
    > I am looking for a way to disable the windows ctrl-alt-del function in
    > a LabVIEW 6.0 VI. I also need to disable the bottom task bar
    > including the Start key in Windows NT 4.0. My goal is to keep the VI
    > exclusively on the screen and disable the users from switching to
    > other programs or shut off the PC.
    >
    >

  • I am looking for a way to convert Microsoft Office files to my apple and back again

    I am looking for a way to convert Microsoft Office files to my apple and vise vera.
    <Re-Titled By Host>

    you are asking about Microsoft products and using a laptop, not a workstation Mac Pro.
    The Numbers and Pages Apple Communities. or MS Community if you want those.
    Importing and Exporting, but Numbers and Pages will not do a SAVE into other formats by default, and therefore have to keep using Export which is messy.
    Changing your own thread midstream may not be ['thread hijack'] but it is like having the rug pulled out by changing the subject on us.

  • Looking for a way to export full Popularity Trends data

    Greetings!
    I'm looking for a way to access all "popularity trends" data for a SharePoint 2013 publishing site in one place. I'm probably missing something pretty basic here, (I hope), but it seems if I pull up popularity trends for the site, all I get is
    the hits & unique users for the site as a whole. If I go into my pages library and choose "Most Popular Items," I'm given a search results page that I can't run reports from. And if I select the "popularity trends" link under one of
    those search results, I get a usage report for a single, specific page.
    I've thought about doing a multi-select of pages from my site's Pages library, but I have more than 100 pages in the site, so I still can't get at everything all at once. Plus, the resulting usage.xlsx file just includes a lot of  reports on individual
    pages.
    There's got to be something more all-encompassing than this...right?
    Help!

    Hi,
    According to your post, my understanding is that you wanted to see the all popularity trends data for a site.
    Where did you export the usage report?
    Did you export the report from  Popularity and Search Reports?
    To view the Popularity Trends report for a site collection
    Verify that the user account that is performing this procedure is a member of the Owners group.
    In the site collection, on the Settings menu, click Site ettings.
    On the Site Settings page, in the Site Collection Administration section, click Popularity and Search      Reports.
    On the View Usage Reports page, in the Usage Reports section,  click Usage.
    In the message box, click Open to open the report in Excel, or  click Save or Save as to save the  report.
    Click the tabs to view the usage report for the different usage event types.
    http://technet.microsoft.com/en-us/library/jj715890(v=office.15).aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Looking for a way to create/edit a newsletter online, then be able to generate a customized PDF file

    I am looking for a way to be able to customize a newsletter online, then be able to export/generate a PDF file from that newsletter.
    Basically this is for a friend that is a real estate agent, and currently she is creating the newsletters in MS Publisher. I'm hoping to find a way to be able to allow her to login to a secure area of her webpage(that part isn't a problem) but then be able to create/customize a monthly newsletter that needs to be customizable.
    For example, the August Newsletter will be 2-sided, and most of the newsletter will be the same, but she needs to be able to have a newsletter for different apartment buildings so the customers can just go to their building link/area on the webpage and be able to download that month's custom PDF file that has a portion of the main newsletter that is a table/list of properties for that specific location.  The data will be stored in a database.
    After writing the above, I can probably create a front-end to the database so she can enter everything that way, but I still need a way for her to generate the customized PDFs after she is done with that month's data.
    I was hoping Adobe had something that could be used, or am I stuck using php or Javascript and just doing this with custom scripting?
    Anyone have any ideas?
    Thanks!
    John

    I was hoping Adobe had something that could be used, or am I stuck using php or Javascript and just doing this with custom scripting?
    I think you will have to do the latter.  While you are thinking about writing the PDF file, don't overlook fpdf (google it)....

  • Looking for a way to programmatically set the visible portion of the front panel when a subVI opens

    I am looking for a way to programmatically set the visible portion of the front panel when a subVI opens.  Haven't found any posts that relate, but I'm not sure how to ask the right question.  To be clear, I want to write a helper VI to go through a list of subVIs to make sure the background images are all in the same place when their respective subVIs open.  I hate manually playing with scroll bars before I save each of the VIs...  I'm figuring I need to find the top/left location of the background image (know how to do this already) and then set a VI FP property to  these values or some offset, but I can't find the relevant property. FP:run-timeposition:custom looked promissing, but only affects the location of the window, not the area of the front panel the window is displaying.
    Solved!
    Go to Solution.

    Cool.  Getting closer.  The way I implemented your suggestion affects the subVI only if it is open.  I can use this to do what I'm after, perhaps putting the code into each subVI.  Maybe open all subs, run the helper, and save.    Seems like I'm missing the elegant version...
    My proof of concept code:

  • I am looking for a way to develop a grammar checker for the web like spellcheckerplus can you help?

    I am looking for a way to develop a grammar checker for the web like spellcheckerplus can you help? I have my own dictionary for comparing and replacing words.

    Hi,
    The forum is about install/uninstall .NET Framework, please post your issue to dev related forum instead of here.
    Best regards,
    Barry
    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.

Maybe you are looking for