From one viewpoint to another via a third viewpoint

Hi!
I need help to make a function/script, on a button, that takes me from one viewpoint to another via a third viewpoint.
I want it to be like this:
When I push a button I want to change from view1 to view2 but before the camera goes to view2 it will go to view3, wait 1 second and then continue to view2.
I have this function for changing views, which works fine:
b var ViewExterior = function(viewname)
b {var context3D = getAnnots3D(0)[0].context3D;
b context3D.viewManager.goToView(viewname);}
On the buttons I have:
b ViewExterior = (view1); (or view2)
I have tried with some delay function like:
b function Delay(milliseconds)
b {var date = new Date();
b var curDate = null;
b do { curDate = new Date();}
b while(curDate-date < milliseconds);}
and on the buttons:
b ViewExterior = (view3);
b callMy3DFunction = getAnnots3D(0)[0].context3D.Delay(1000);
b ViewExterior = (view2); (or view1)
What happens is that the program waits for 1 seconds, without going to view3, and then moves on to view2 (or view1).
Any help on this would be helpful.
With regards,
Joachim Wilhelm

Sorry about the delay.
/Joachim
//====================================================================
//======== Begin - ViewManager.js
//====================================================================
// This class provides a method of saving camera views and smoothly
// transition between them. It uses the CameraRotate class to provide
// the camera motion
// Daniel Beardsley, Adobe Systems, Inc.
// March, 2006
// Updated: 07/06/06
console.println( "* The Javascript 'ViewManager.js' is now being read..." );
function ViewManagerObject(cameraRotateObject)
var Me = this;
// Internal Data Objects
var Views = new Array();
var cameraRotate = cameraRotateObject;
// Internal State Variables
this.ShouldUpdate = false;
var FirstUpdateHappened = false;
var timeline = new TimeLineObject();
var FromView = null;
var ToView = null;
var CurrentView = new CameraPosition(null,0,0,0);
// Public Variables
this.viewTransitionTime = 2;
this.smoothness = 1;
this.getView = function(Name){return Views[Name];}
this.AddView = function(Name, targetPosition, pitch, yaw, dist)
Views[Name] = new CameraPosition(targetPosition, pitch, yaw, dist);
this.AddViewCameraPos = function(Name, CamPos)
Views[Name] = CamPos;
this.goToViewWithoutTransition = function(Name)
cameraRotate.setCameraPos(Views[Name]);
this.goToView = function(Name)
FromView = cameraRotate.getCameraPos();
ToView = Views[Name];
timeline.start(this.viewTransitionTime);
this.ShouldUpdate = true;
FirstUpdateHappened = false;
this.Update = function(delta)
if(!FirstUpdateHappened)
FirstUpdateHappened = true;
return;
timeline.update(delta);
var value = timeline.getEaseInOutValue();//getSmoothedValue(cameraRotate.smoothness);
var yawDiff = ToView.getYaw() - FromView.getYaw();
if(yawDiff > Math.PI)
yawDiff -= (2*Math.PI);
else if(yawDiff < (-Math.PI))
yawDiff += (2*Math.PI);
CurrentView.CamVector.y = FromView.getYaw() + (yawDiff * value);
CurrentView.CamVector.x = FromView.getPitch() * (1-value) + (ToView.getPitch() * value);
CurrentView.CamVector.z = FromView.getDistance() * (1-value) + (ToView.getDistance() * value);
CurrentView.TargetPosition = FromView.TargetPosition.blend(ToView.TargetPosition, value);
cameraRotate.setCameraPos(CurrentView);
if(!timeline.getRunning())
this.ShouldUpdate = false;
//====================================================================
//======== End - ViewManager.js
//====================================================================

Similar Messages

  • How can I send stuff from one iPhone to another via Bluetooth?

    How can I send stuff from one iPhone to another via Bluetooth?

    There are some apps that will let you send photos from one iOS device to another over BT.

  • HT3819 Can I transfer music from one computer to another via home sharing?

    Can I transfer my music from one computer to another via home sharing?

    So long as they are on the same wifi network, yes.
    Have both computers running and have iTunes open on both computers.
    Now, in the iTunes on the computer you want to transfer music to, select the library that you want to transfer music from, as per the following screenshot:
    Once the other library loads, go down to the bottom of the screen and in "Show:" select "Items not in my library":
    If you want to import all of the songs you can now see, head up to the iTunes menu bar and go "Edit > Select all". Then head down to the bottom of the screen again and click the "Import" button in the bottom-right-hand corner.
    If there's a lot of stuff in the library you're transferring from, the transfer may take some time.

  • How do I transfer audio books from one computer to another via Iphone?

    I purchase 2 audiobooks on an iphone 4 and I synced them with a different computer and put them on the computer. I no longer have the phone to put on the main computer. How do i transfer songs from one computer to another?

    You can try using DROPBOX.
    Get them on both computers and drag and drop.
    It's free depending on how much you are transferring.

  • How to copy data from one BB to another via Desktop Manager

    I've got two BBs (8900 and 9300), both actively in use and with different data (contacts, memos, etc.) on them.
    I need to copy my tasks, memos and contacts from 8900 to 9300. I tried "switch phones" option, but it substitutes data, while I need to syncronize it, so that data from 8900 is added to what is currently is on the 9300. 
    Is it possible to do it via Desktop Manager? It seems there was somewhere an option "copy data from another BB", but I can't find it in the latest Desktop Manager version.

    You would need to use Desktop Mangaer to sync BB1 with a local PIM program (such as Outlook or Lotus Notes) to get the information off BB1. Then use Desktop Manager to sync BB2 with the same PIM program. 

  • Transferring Mail from one Mac to another via Screen Sharing

    Hi,
    I live in California. My Mother lives in Montreal. She has to computers. A Mac Mini and new MacBook.
    What I want to do is transfer her Mail from the Mac Mini to the MacBook via Screen Sharing or Remote Management. In other words, I want to do this from my computer.
    How does one go about this? What somewhere is needed to make it all work?
    Thanks in advance.

    you can't screen share between 3 computers. but you can between two. the easiest way is via ichat. users need to log into ichat on both computers and then you can send a request to share screen via ichat. it's also possible to do it without ichat but that might be more difficult that your mother can manage if she is not too computer savvy which I suspect is the case here. first she has to enable screen sharing in her system preferences->sharing. that's easy. but if she has a router (does she) then she need to port forward port public port 5900 on the router to the port 5900 on her computer so that you can get through the router when trying to screen share from outside. particular instructions on port forwarding depend on the router model. once the port is forwarded you can vnc to here computer from where you are by going to go menu-.connect to server in finder. then in the popup enter
    vnc://ip.address
    where the ip.address is the ip address of her router. she can find it out by going to this website for example
    http://www.whatismyip.com/
    but all in all, it's much easier with ichat as no port forwarding is required.

  • Send data from one phone to another via IR port

    Hi
    I am trying to implement a J2ME program over a Nokia 3200 to exchange data with another phone via IR. Is there any API to do it? Any suggestions, pls.

    So you want to do a online request while navigating to second screen using the employee ID selected? If yes follow this,
    Assume we have 2 screens, screen1 and screen2. Create a editbox in screen 2 and map the key of the editbox with key of employee ID.
    Drag and drop a a HTMLView from control to screen2. and in the properties>default field provide this : <div id = "HTMLList"></div>
    Create a custom action in screen2,ex.GetDetail. The online request of this custom action will do the second call to SAP with employee ID as input. So map the employee ID present in the screen2 as input of this request and give the success screen as screen2 (same screen). A method will be created for this action, call that method inside function customBeforeShowScreen:
    if(screenToShow==="Screen2") {
             menuItemCallbackScreen2GetDetails();
      return true;
         4. For the HTML View write code to show the data as mentioned in the blog, Developing HWC app with Customized List
    Midhun VP

  • Move audiobooks from one computer to another via iPod Touch

    I have two 'authorized' computers with audiobook files. I want to move the files between the two computers, but when I plug in the iTouch it gives me the 'You can only sync with one library, shall I erase and replace?' My computers, my files.. how can I get iTunes to let me transfer them?

    Have a look at this article in the Apple Knowledge Base and Hudgie's User Tip . Post back if you need any clarification.

  • Moving iPhotos from one account to another via "Shared" folder

    Every once in awhile, I like to share photos between accounts on the same iMac, so that my wife can use some of the pictures. Lately, if I put them in the "Share" folder on the HD, they come out NOT useable in the other account. They are usually in jpeg format, but my wife's account gets a "corrupted" message.
    What am I doing wrong? Is there another way to transfer the pictures?
    thanks, Barry

    thanks again

  • SAP CRM  2007 - How to Access a Table from one view to another via ABAP BSP

    Hi experts, I need your help.
    I am working in SAP CRM 2007 developing code modifiying views using transaction "BSP_WD_CMPWB" and my problem is the following:
    After the "Account Identification" process I go to "Create Case" and click in "Complaints" option in the navigation bar.
    Here there are several views involved, like "General data" and "Parties involved"
    "General data" belongs to the component "BT126H_CALL" and the name of the view is "SCDetails.htm"
    "Parties involved" belongs to the component "BTPARTNER" and the name of the view is "Partner.htm"
    The "Partner.htm" view has a table that is displayed using a "<chtmlb:configTable . . . table = "//BTPartner/Table" instruction.
    I need to acces the table "//BTPartner/Table" that belongs to "Partner.htm" in the view "SCDetails.htm" and add data into it.
    How can I do that ?
    Add the data in the view "Partner.htm" itself is very simple, I am using the "EH_ONINSERT" method but I have not idea how to do that from "SCDetails.htm".
    Thanks in advance for your help.
    Best Regards.
    Exequiel.

    Hi,
    as I understand from your question you would like to add a partner to the complaint document.
    The complaint document is a 1Order document and has the root genil node named BTOrder. Using the genil relationships you have to get the BTPartnerSet and then the right Partner Relationship.
    You will find a lot of information in the newsgroup on how to do this by doing a search.
    But a quick help would be to use the sapgui transaction genil_model_browser, component set ONEORDER and using the tree structure navigate from the BTOrder root node to the Partner set.
    Best regards,
    Erika

  • How to pass a variable from one scene to another

    I'm making a call from one scene to another via a button, but I have two buttons calling the same scene, each for a different purpose, and I need to pass certain variables tied to each button to that called scene. How can I do this?

    import flash.events.MouseEvent;
    stop();
    var nam:String="test";
    testscene2.addEventListener(MouseEvent.CLICK,fn);
    function fn(e:MouseEvent){
        nam="Raja";
        gotoAndStop(1,"Scene 3");
    testscene1.addEventListener(MouseEvent.CLICK,fn1);
    function fn1(e:MouseEvent){
        nam="Emily";
        gotoAndStop(1,"Scene 2");

  • Moving Library from one computer to another

    Hi,
    I know I can share my library from one computer to another via a network, which I am doing. My issue is that I cannot do anything with the music on the computer that is sharing. I am wondering if there is a way to get the entire library from one computer to another. I have a Mac and a PC. I would like my library on both systems instead of just one. I need to be able to update ipods, create playlists, burn music etc... from both computers. Is that possible?
    Any help would be greatly appreciated.

    I've got the same type question. Is it possible to transfer my purchased songs from a computer at work via a flash drive? The firewall at work will not allow me to share files with my home computer, however, the computers at work download the songs I buy in about 15 seconds, my slow a** dial up at home takes over 15 minutes per song. I think this is still considered stealing, but I'm not sharing the songs with anyone, I just want to download them at work, then transfer them to my main home computer iTunes library.

  • I am looking for a simple app to enable me to crop a face from one pic to another(fun). is it possible to do this via iPhoto or aperture?

    i am looking for a simple app to enable me to crop a face from one pic to another(fun). is it possible to do this via iPhoto or aperture?

    No, you will need something more advanced, like Photoshop.

  • How to play song from one iPhone to another iPhone via Bluethooth?

    How to play song from one iPhone to another iPhone via Bluethooth and AirPlay?

    You don't. Such is not supported.

  • Move file from one library to another library via SharePoint 2010 Designer Workflow

    Can SharePoint 2010 designer be able to move a file from one library to another using workflow?  I tried to use the copy list item but it won't show my destination library.  I prefer not to use the 3rd part workflow like
    http://www.codeplex.com/SPDActivities
    Please advise.
    Brian
    Brian

    Hi Brain,
    From your narration, I undersatnd that you want to move document to another library across site or site collection. However,
    the copy list item action is used for coping list item to another library or list in the same site, so you can’t achieve it through ootb workflow action. So to move document to another library across site under the same site collection, then you can use site
    content and structure. If across site collection, then I suggest you use that the 3<sup>rd</sup> part workflow action.
    For more information about site content and structure,
    http://office.microsoft.com/en-us/sharepoint-server-help/work-with-site-content-and-structure-HA010131723.aspx
    Best Regards.
    Kelly Chen
    TechNet Community Support

Maybe you are looking for

  • How to access the visibility of layer comps in indesign through scripting? [JS][CS5.5]

    Hi, I'm pretty new to scripting in adobe, but I thought this should be a simple one (think again...): I wanted to go over an array of all the psd-images in a selection or on a page in indesign, and then try to set their layer comp to a specific one (

  • Compatability between Windows 8 and my HP Officejet J3680

    I just got a new laptop with Windows 8.  That is hard enough to get used to.  Now my printer does not communicate with my laptop.  I have downloaded drivers and updates.  Changed portsand used HP Doctor whatever.  Nothing seems to work.  Help. This q

  • Mass deletion purchase order text in the info record

    Hi, I'm trying to delete the purchase order text of the info record of some materials. I thought to use MEMASSIN transaction... but it is not working because I can not choose the text to delete. Anyone any idea how to? Thanks a lot in advance! PS: Th

  • A Callers recompile is NOT undone when the subVI's changes are undone

    Hello All I suspect this is expected behavior and not a bug, but I will ask anyway. Load a top level VI into memory and then open a subVI (a.vi) from somewhere within its hierarchy, also ensure a.vi's caller (b.vi) FP is open somewhere just so you ca

  • How to export Synonym where owner=PUBLIC

    Hi, Im using oracle 11g on AIX 5.3, I have taken the export backup with data pump of one schema. its imported successfully, but the all synonyms are not imported, My table onwer is user whose backup i have taken , bt the owner of the synonyms are PUB