Using modelsUnderLoc information

Hi, I have properties that I've extracted using the modelsUnderLoc command in a behavior that's used on a 3d sprite.  I need to use the #isectPosition parameter to give a position vector to a model that I place in the world on the fly.  That portion of my script looks like this:
pt = the mouseLoc - point(pSprite.left, pSprite.top)
put sprite(pSprite).camera.modelsUnderLoc(pt, [levelOfDetail: #detailed]).isectPosition
The output from the modelsUnderLoc with the detailed information within the message window looks like this:
-- [[#model: model("036 OTHER Vertebral basilar"), #distance: 37.4722, #isectPosition: vector( -2.8409, -4.5276, -5.8558 ), #isectNormal: vector( -0.2357, -0.2357, 0.9428 ), #meshID: 1, #faceID: 1958, #vertices: [vector( -2.8551, -4.6074, -5.8793 ), vector( -2.8189, -4.4988, -5.8431 ), vector( -2.8913, -4.5712, -5.8793 )], #uvCoord: [#u: 0.6492, #v: 0.2563]]]
How do I get only the #isectPosition vector out of all of that info?

If you attach the following behavior to your 3d sprite, it should output the required information:
on mouseDown(me)
  tempSprite = sprite(me.spriteNum)
  pt = _mouse.mouseLoc - point(tempSprite.left, tempSprite.top)
  m = tempSprite.camera.modelsUnderLoc(pt, [#levelOfDetail: #detailed])
  if m.count then
    -- at least one model has been raycast
    -- output the intersect position of the first model raycast
    put m[1][#isectPosition]
  end if
end mouseDown

Similar Messages

  • ITunes will not open and tells me to use the "information" to open in 32 bit rather than 64. but the information pane does not offer that option ...

    I am trying to open my iTune 10.4 on my mac mini which is running OS 10.6.8, and I get the message that I need to use the information pane to open in 32-bit rather than 64. But the information pane does not offer this option. I'm in a vicious circle of opening, getting this message, then having to close. Did this come about after the June update of iTunes? And if so, why haven't they fixed it? And what can I do? You'd think Apple would want be to be able to spend my money in their store ...

    Try following steps and test one at a time:
    1. Restart computer, right mouse click iTunes icon and select "Run As Administrator"
    2. If that does not work, check to see if this file APSDaemon.exe is the problem here.
    Close your iTunes.
    Press Ctrl-Alt-Del key and choose Task Manager. In the "Processes" Tab, select the file APSDaemon.exe and click End Prosses button, then close the task manager window.
    Now open itunes and see if it is working?
    If that works, to prevent having to do the same process everytime you restart Windows, go to. START button, type in
    MSCONFIG
    Hit ENTER
    Click STARTUP Tab, Uncheck "Apple Push", click OK.
    Restart Windows.
    3. If that fails or you don't see ApsDaemon.exe in the Processes, refer to following article to remove SC files:
    http://support.apple.com/kb/TS2363
    4. If that fails, repair or reinstall your Quicktime. START / CONTROL PANEL / PROGRAMS N FEATURES / hightlight QUICKTIME and click REPAIR.

  • I have two apple IDs i dont know how that happened but i want to delete one so i can use that information on my itouch

    i have two apple IDs i dont know how that happened but i want to delete one so i can use that information on my itouch

    You can use more than one ID oin the iPod
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • How can I programmably extract the project build information set in the project build specification. So I can then use the information in an 'About' dialog.

    Extracting Project information
    How can I programmably extract the project build information set in the project build specification.
    So I can then use the information in an ‘About’ dialog.
    Dave

    In the labview\resource\appbuild folder their are some VI's that can deal with build specs! They return a variant containing the data!
    It's the reason I build a variant probe.
    Be aware that the build info is not present in th lvproj file of the built executable!
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Use XMP Information for Alternate Text in PDF

    I would like to use the information in the metadata, specifically the Description field and use it as the Alternate Text for the images within a PDF.
    Is there a way to do this? or a script I can write to accomplish this task?
    Thanks!
    Mike

    I would like to use the information in the metadata, specifically the Description field and use it as the Alternate Text for the images within a PDF.
    Is there a way to do this? or a script I can write to accomplish this task?
    Thanks!
    Mike

  • My name is Robert Gomez. I have seen in my apple store account that someone used my information to make purchases.

    my name is Robert Gomez. I have seen in my apple store account that someone used my information to make purchases.
    someone use my account without AUTHORIZATION

    We are itunes users just like you.
    You should contact itunes support.  Click Support at the top of this page, then click the link under Contact Apple Support

  • Using user information from web site

    Hi All,
    OK, once again I need to build something more then I can
    handle.
    A user will log on to a website. In this website (Lotus
    Domino powered) I know a lot about that user. His name, type etc.
    I would like to use that information in Captivate. As a
    stupid example, say "Hi Dave" when he starts.
    On a more complex level, I want to be able to store where he
    has been and resume from there, or according to the type of user,
    start a different training.
    Is there a way to pull this info into Captivate? I think it
    is only possible using Javascript, right?
    Hmm, maybe I should build a Lotus Domino toolbox for
    Captivate, any takers?
    Please let me know if what I want to do is possible?
    Thanks.

    Sorry. What you really need is an API for communicating with
    Captivate, and the option for variable-populated fields. Adobe has
    provided neither.
    You're on the right track about communicating with Captivate
    via Javascript, but "receptacles" for holding the data you send it
    would have to be constructed in Flash...and then you'll have to
    divine a way to discover the name of your Flash variable/field once
    it's been embedded into Captivate. None of it's impossible, but it
    often requires a GREAT deal of time to work out.
    As for storing where the user has been, such things are
    typically handled via a Learning Management System (LMS) -- which
    is of course a database application that launches and communicates
    with a course...even a Captivate course. An LMS gives you the
    option of communicating with the course via the AICC or SCORM
    protocols. While I'm no Domino expert, it's probably safe to assume
    that your database environment isn't going to be able to provide
    either protocol.
    It's not too hard to get information out of Captivate one way
    or another, but getting information back into it is another matter.
    If you have skills with Flash, you might consider building a
    wrapper environment that can do some of what you need -- you could
    play your Captivate files within that wrapper, and could use it to
    figure out where Captivate has been, and then pass that to Domino
    using your own techniques.

  • [svn:osmf:] 9829: Extending ILayoutContext with an ' updateIntrinsicDimensions' method, that the ILayoutRender uses to inform the context that context' s intrinsical dimensions may have changed because its children got layed-out .

    Revision: 9829
    Author:   [email protected]
    Date:     2009-08-31 06:38:08 -0700 (Mon, 31 Aug 2009)
    Log Message:
    Extending ILayoutContext with an 'updateIntrinsicDimensions' method, that the ILayoutRender uses to inform the context that context's intrinsical dimensions may have changed because its children got layed-out. Adding implementing code to LayoutContextSprite and LayoutRendererBase.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/layout/ILayoutContext.as
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/layout/LayoutContextSprite.as
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/layout/LayoutRendererBase.as

    A slow boot time can be caused by login items.
    User Login Items:
        Flux
        NoSleep
        ClipMenu
        Canon IJ Network Scanner Selector2
        BetterTouchTool
        USBOverdriveHelper
        TotalFinder
        Gmail Notifr
    Open System Preferences > Users & Groups > Login Items
    Remove one login item noted above then restart your Mac to test. It may be one or multiple items causing the slow boot.

  • I cannot use battery information when i upgrade kernel

    Today I performed Pacman _Syu. I upgraded my arch linux kernel to 3.0.6-1.
    I rebooted my arch system. After that, my arch system  printed the error.
    "Battery information not supported by your kernel!"
    I try downgrading kernel to 3.0.4-2 and was able to use battery information again.
    What is solution of not available latest kernel in my system?
    My PC is ACER ASPIRE 1410.

    The reason for the error message is probably the ONFIG_ACPI_PROCFS_POWER option, that was removed from the newest kernel. See FS#25845.
    What application is giving you this error? Perhaps there is an update available for it?
    Otherwise you could recompile the kernel yourself with the option set.

  • System preferences wants to use confidential information stored in my keychain

    Images are not being displayed in emails on my Mac. This includes sending photos from iphoto via email. When going in to System Preferences to see what I need to check, I get the window which reads "System Preferences wants to use your confidential information stored in "imap.aol.com" in your keychain. Should I "always allow", "deny" or "allow"?
    I recently synched my contacts via icloud with my mac and my iphone (which created a whole different problem). That is the only thing I can think of that I have done recently (?). Speaking of the contacts issue, now my phone does not have the phone numbers and all of the information of my contacts as I had on my phone before the icloud synch. Now, the contacts in my phone seem to be mostly email addresses that were stored on my mac and no phone numbers!!! WT? Help. My love for Apple is waning.

    I too am losing confidence in Apple. I want to be able to make these choices and still have access to my apps.

  • Is there any way to create another Apple ID while still using billing information and purchases from a previous one?

    We have 5 iDevices on one account and I cannot use features like iCloud without mixing information with the rest of my family. We've made due for years, but it's getting very tedious. I would love to have my own ID and password but still be able to be under my parents' billing information. (The more I think about it, the more I begin to doubt the liklihood of the possibility)
    At the very least, is there a way I can create a new ID and keep/transfer the purchases (and all other information like contacts, notes, etc.) I've made on the original account without starting over?

    For Family Sharing, why must I add a credit card to add a child? Please explain why my debit card, on file, isn't enough…
    Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method - Apple Suppor…
    Family Sharing and Apple IDs for kids - Apple Support
    Set up and manage iTunes Allowance - Apple Support

  • Parameters in Url..how do I use login information to insert the primary key

    Uggg, it is 3 am, I am so tired. Please help.
    I have made a registration page for my site. Hurray it works.
    Login Page. It works
    Protected some pages. Works
    Now I am trying to make a page that the users can go to and update their user information. User name, password, email ect.
    I can get it to prepopulate if I put ?id=3, or someother primary key in the url by hand.....and it does update the data.... but I can't, for the life of me, figure out how to make it use the users login information to get and insert the primary key in the url from the link to the update page.
    I have used the hyperlink box and chose the updateaccount.php file, then went to parameters and selected Name: id Value: I chose id from the dropdown from the data base. This puts in an echo that looks like it should work. NO SUCH LUCK.
    Pleeeese!!! What am I doing wrong.
    I am a total novice. Done a few static sites. So please speak slowly.
    Thanks sooooo much

    I really can´t recommend exposing critical stuff like e.g. the user´s login_id in the URL, because once it´s visible, it can be changed by anyone. Better insert the Session Variable kt_login_id, which will only be availabe on a custom PHP page when inserting...
    <?php session_start(); ?>
    ...on line 1 of this document.
    Cheers,
    Günter

  • How to change company logo dynamically using login information of the user in flex4 CSS styl method?

    hi all,
    I am doing mxml flex4 web application. i am using a login in my application. this login for multi user  purpose.
    My need is when a user login using his username and password his company logo should show the top of my application and his copyright details show the bottom of my application
    if another user login means his company logo and copywrights should show in my application.
    This logo and copyrights details should change dynamically based on the login information.
    I want to create this using CSS file (skins and sparks)
    How to do this,i am struck in this place,
    Looking for useful and helpful suggession or snippet code,
    Thanks in advance,
    Cheers,
    B.Venkatesan.

    If the user is logging in, presumably you are having the user hit a back end web-server and database and using something like Blaze to connect? Right?
    I personally would not do this with CSS. I would map the company icons to the users in the DB, retrieve the proper company icon and then pass it down (or embed it in the app) when the user logs in. Then, I would just set the source of the icon to be what I passed down:
    Add your image where you want it to go:
    <s:Image id="emptyImage" x="locationx" y="locationy".../>
    Then in your ActionScript, when the user logs in and you know what company the user belongs you could do this:
    private function loginUserBlazeResponse(resultEvent:ResultEvent):void {
    var bytes:ByteArray = ByteArray(resultEvent.target);
    emptyImage.source = bytes;
    addElement(img);
    img.visible = false;
    img.addEventListener(FlexEvent.UPDATE_COMPLETE, imageLoaded);

  • How to use header information in line records while inserting into table?

    Hi,
    Requirement: Data in flat file needs to be loaded into Oracle Tables.
    File has header information (basically file information, some account info) and Line information ( Actual data need to be loaded to oracle tables).
    File has position based data, first 2 char for Header is 00 and line is 50
    Now, header has some extra info which needs to be loaded along with details lines ( This has to be done using sql loader control file).
    What should be the control file logic to capture header information in details lines?
    Please suggest.
    I am calling this control file from Unix, so I can change the control file definition dynamically by retrieving the first line of the data file and modify the control file before executing the sql loader command. Is there any option to achieve this using SQL LOADER commands?
    Thanks,
    Venkat.

    Pl post details of OS and database versions.
    Use the WHEN clause to load header and detail lines into separate tables, then write PL/SQL code to perform needed post-processing.
    See the examples in section titled "Distinguishing Different Input Record Formats" here http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm
    HTH
    Srini

  • Using the information in the inventory....

    The Inventory system detected a bunch on computers on my network with an old
    BIOS version.
    I would like to set you the Novell Application Explorer to make available to
    the computers connected that have that older version but I would like to set
    it up using the distribution criteria and then make it generally available
    rather than specifically selecting the workstations.
    Does this make sense?
    And can I do what I want to do?
    If so, how??
    Thanks in advance.
    Delon E. Weuve
    Senior Network Engineer
    Office of Auditor of State
    State of Iowa

    Inventory does not really do this as far as I know.
    This would take some custom scripting on your part.
    You would need a couple ZENworks apps.
    The 1st app would use WSH or similar tool to read the bios and related
    information from the PC and then place this information into a REG Key or
    Permanent Environment variable.
    Lots of info about the PC could be stored in this fashion.
    Then have a 2nd app that pushes updates based upon those values.
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Support Forums Volunteer Sysop
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared either Novell or any rational human.
    "Delon Weuve" <[email protected]> wrote in message
    news:[email protected]..
    > The Inventory system detected a bunch on computers on my network with an
    > old
    > BIOS version.
    >
    > I would like to set you the Novell Application Explorer to make available
    > to
    > the computers connected that have that older version but I would like to
    > set
    > it up using the distribution criteria and then make it generally available
    > rather than specifically selecting the workstations.
    >
    > Does this make sense?
    >
    > And can I do what I want to do?
    >
    > If so, how??
    >
    > Thanks in advance.
    >
    >
    > ________________________________________
    >
    > Delon E. Weuve
    > Senior Network Engineer
    > Office of Auditor of State
    > State of Iowa
    >

Maybe you are looking for

  • Purchase order with transportaion time+replenishtment lead time in PP/DS

    The process: Location 0011 buys by supplier 1080 with normal purchase order.  Delivery lead time 30 days of this 20 days transportation time and 10 days replenishment lead time of the supplier. Delivery free on board. What to do that the date for fre

  • Any filters to help with horizontal line jitters on ntsc monitor

    Hey Guys, I am working on a project that has alot of office forms that appear on screen. The horizontal lines of the forms wiggle like crazy on the ntsc monitor. Is there any filters that can stop the jitters? I am using FCP studio Thanks Ymir

  • Incomplete Process order settlement at Month end.

    We have issue with order settlement during the month end. We have process orders that run over the week (thus will run over the month-end), with REL, PCNF, and PDLV status at the month end. Production does not want to close/ TECO those orders, as we

  • Satelite A100-233: AC adapter malfunctions - Need new one

    I have a technical problem with my laptop model Satelite A100 -233 which is still under warrant. My power adapter of model PA 1750-08 with output 15V 5 Amps malfunctioned. I did not damage the laptop only the power supply. I bought a universal AC ada

  • Safari 3.1 setAttribute very very slow!!

    Hi I'm developing an application using SVG and CSS and, after upgrading to 3.1, I discovered that the rendering of an SVG component after changing its class attribute is absolutely slow: it takes forever (literally). It is a simple element.setAttribu