Multiple 3D objetcs in Scene display

Hi,
I would like to know how to add multiple shapes to a picture scene. I can add one shape but the problem is that have no idea on how another shape can be added to the same scene display. I understand how to add multiple shapes to the display scene but i would like the user to be able to change both shapes and see the response there and then. Hopefully the example attached gives an idea. Any help would be much appreciated.
regards
Jim
Attachments:
cyclinder.vi ‏26 KB

Hopefully this will help.
I think that the best way to do this would be to have a root object which you assign to your scene.  And then attach new objects to it.  Here is an example VI.
If you need more explaination, please let me know.
Jeff Peters
LabVIEW R & D
Attachments:
addobjects.vi ‏27 KB

Similar Messages

  • There are multiple users with the same display name

    Hi,
    We have a user and when she get an item assigned to her she sees the following alert:
    "There are multiple users with the same display name USERNAME and at least one of them does not have read permissions to some of the files"
    Now I looked in the database and when I run the following query with the username:
     SELECT     
         [ProviderDisplayName]  
        ,[DisplayName]  
        ,[HasDisplayName]  
        ,[Domain]  
        ,[AccountName]  
        ,[UniqueUserId]  
        ,[LastSync]  
      FROM [Tfs_Configuration].[dbo].[tbl_Identity] where displayname like '%USERNAME%'  
    Then I get 2 same usernames back, How can I get rid of one of them ? When I access TFS trough the portal I only find 1 occurence of this user.
    We use VS2013 and TFS2013 update 4
    Best regards

    Hi DSW,  
    Thanks for your post.
    In your query result, please check if these two users have the same Account Name. if they are two different Account Name in result, it indicate there’s two users have the same display name in your AD, please check that two users’ information in
    your AD. We suggest change one user’s display name in AD.  
    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.

  • Multiple entries by user in display dialog?

    Looking to prompt a user of an applescript to enter two variables in that I will then export to Excel. Can I display a dialog box that prompts the user for two pieces of data? I've heard of Applescript studio or something like that name...is this more in that realm? Here is the script I have so far for prompting the user for the info, except that it is a series of dialog boxes. Looking to make it concise and have all the info entered at once.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set slots to {"A", "B", "C", "D", "E", "F"}
    set rooms to {"1 ", "2", "3", "4", "5", "6", "7", "8", "9", "10"}
    set chosenslot to (choose from list slots with prompt "What slot does your first class go into?  Choose one." without multiple selections allowed) as text
    if chosenslot is not "false" then
    display dialog "You chose " & chosenslot & ". Next choose the course to go into this slot"
    set chosencourse to (choose from list rooms with prompt "What course will go into slot " & chosenslot & "?   Choose one." without multiple selections allowed) as text
    display dialog "So " & chosenslot & " will be put into " & chosencourse & " CORRECT??"</pre>
    dan

    If the default answer of a dialog contains a return, then you can +use a return in the answer+ (in this case, the return key won't be used for the default button, although the enter key will still be used). Going a little bit further than casdvm, but using the same idea (using a return as a delimiter between items), you can fake a multiple input dialog. I have a general purpose handler that will get multiple input items (it is a bit long but has a lot of options):
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on run -- example
    set {Slot, Course} to (InputItems for {"• Class slot", "• Course"} with Prompt given Title:"Data Entry")
    display dialog "Slot:  " & (quoted form of Slot) & return & "Course:  " & (quoted form of Course) with title "results"
    end run
    to InputItems for SomeItems given Title:TheTitle, Prompt:ThePrompt
    displays a dialog for multiple item entry - a carriage return is used between each input item
      for each item in SomeItems, a line of text is displayed in the dialog and a line is reserved for the input
        the number of items returned are padded or truncated to match the number of items in SomeItems
    to fit the size of the dialog, items should be limited in length (~30) and number (~15)  
    parameters - SomeItems [list/integer]: a list or count of items to get from the dialog
    TheTitle [boolean/text]: use a default or the given dialog title
    ThePrompt [boolean/text]: use a default or the given prompt text
    returns [list]: a list of the input items
    if ThePrompt is in {true, false} then -- "with" or "without" prompt
    if ThePrompt then
    set ThePrompt to "Input the following items separated by returns:" & return & return -- default
    else
    set ThePrompt to ""
    end if
    else -- fix up the prompt a bit
    set ThePrompt to ThePrompt & return & return
    end if
    if TheTitle is in {true, false} then if TheTitle then -- "with" or "without" title
    set TheTitle to "Multiple Input Dialog" -- default
    else
    set TheTitle to ""
    end if
    if class of SomeItems is integer then -- no item list
    set {TheCount, SomeItems} to {SomeItems, ""}
    if ThePrompt is not "" then set ThePrompt to text 1 thru -2 of ThePrompt
    else
    set TheCount to (count SomeItems)
    end if
    if TheCount is less than 1 then error "InputItems handler:  empty input list"
    set {TheItems, TheInput} to {{}, {}}
    repeat TheCount times -- set the number of lines in the input
    set the end of TheInput to ""
    end repeat
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {SomeItems, TheInput} to {SomeItems as text, TheInput as text}
    set AppleScript's text item delimiters to TempTID
    set TheInput to paragraphs of text returned of (display dialog ThePrompt & SomeItems with title TheTitle default answer TheInput) -- with icon caution with hidden answer)
    repeat with AnItem from 1 to TheCount -- pad/truncate entered items
    try
    set the end of TheItems to (item AnItem of TheInput)
    on error
    set the end of TheItems to ""
    end try
    end repeat
    return TheItems
    end InputItems
    </pre>
    If you are looking at easier error handling or an entry box for each item, then yes, AppleScript Studio is what you want.
    Message was edited by: red_menace

  • Can't open multiple PDF docs on same display

    I have a Windows 7 x64 machine, with Acrobat X Standard, running dual displays.
    The problem is that I can't get multiple PDF files to open on my right display.  One PDF file will open on the right display, if no other PDF files are open.  The first one always opens there by default.  The problem is that if one file is open, any subsequent PDF files ALWAYS open on the left display, on top of my design software.  Then I have to drag it back over to the right to see what I'm doing on the left.  Very annoying.
    EVERY other application installed on my machine opens where it's supposed to.  Multiple Firefox windows always open in the same place on the right display.  Multiple Windows Explorer windows always open on the right display.  Multiple Outlook, Word, Excel, etc. docs always open on the right display.
    Acrobat is the ONLY app that will not open multiple docs on the right side.  I had the same issue with Acrobat Reader 9 before I installed X.
    My old machine used to do the same thing with Acrobat 8 Standard, and at some point there was an update that seemed to fix it.  However I can't seem to get it to work with X on my current machine.  Any ideas?

    The problem is with the document, not the program.You can try to open the file in Preview and print from there. Otherwise, you will need to contact the creator of the document for a new version of the file.

  • Folder for multiple details in ALV GRID DISPLAY

    Hi All,
    I am developing one ALV GRID DISPLAY report. Here I am displaying the material and production order details in the report. If we have the multiple production order details for one material , then in that case , we have to place one folder at the first material level, in that folder I need to show all the multiple production order details.
    I am using FUNCTION MODULE to develope the report, not using any Objects to develope this. 
    Thanks in advance.
    Ramesh.

    Here is a simple example of such an ALV.
    report zrich_0001.
    type-pools: slis.
    data: begin of head occurs 0,
           matnr type afpo-matnr,
           maktx type makt-maktx,
           EXPAND type c,
          end of head.
    data: begin of detail occurs 0,
           aufnr type afpo-aufnr,
           matnr type afpo-matnr,
           werks type aufk-werks,
           pwerk type afpo-pwerk,
           psmng type afpo-psmng,
          end of detail.
    start-of-selection.
      select * into corresponding fields of table detail
                   from afpo
                      inner join aufk
                        on afpo~aufnr = aufk~aufnr
                      inner join afko
                        on afpo~aufnr = afko~aufnr
                                  up to 500 rows
                                        where aufk~auart = 'PP01'.
      if not detail[] is initial.
        sort detail ascending by matnr.
        select distinct * into corresponding fields of table head
                  from makt
                     for all entries in detail
                        where matnr = detail-matnr
                          and spras = sy-langu.
      endif.
      perform call_alv.
    *       FORM call_alv                                                 *
    form call_alv.
      data: gt_fieldcat type slis_t_fieldcat_alv,
            gs_keyinfo  type slis_keyinfo_alv,
            gs_layout   type slis_layout_alv.
      data: ls_fieldcat type slis_fieldcat_alv.
      clear gs_keyinfo.
      gs_keyinfo-header01 = 'MATNR'.
      gs_keyinfo-item01   = 'MATNR'.
      clear ls_fieldcat.
      ls_fieldcat-fieldname    = 'MATNR'.
      ls_fieldcat-reptext_ddic = 'Material'.
      ls_fieldcat-tabname      = 'HEAD'.
      ls_fieldcat-outputlen    = 18.
      append ls_fieldcat to gt_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname    = 'MAKTX'.
      ls_fieldcat-reptext_ddic = 'Description'.
      ls_fieldcat-tabname      = 'HEAD'.
      ls_fieldcat-outputlen    = 40.
      append ls_fieldcat to gt_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname    = 'AUFNR'.
      ls_fieldcat-reptext_ddic = 'Production Order'.
      ls_fieldcat-tabname      = 'DETAIL'.
      ls_fieldcat-outputlen    = 12.
      append ls_fieldcat to gt_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname    = 'WERKS'.
      ls_fieldcat-reptext_ddic = 'Production Plant'.
      ls_fieldcat-tabname      = 'DETAIL'.
      ls_fieldcat-outputlen    = 4.
      append ls_fieldcat to gt_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname    = 'PWERK'.
      ls_fieldcat-reptext_ddic = 'Planning Plant'.
      ls_fieldcat-tabname      = 'DETAIL'.
      ls_fieldcat-outputlen    = 4.
      append ls_fieldcat to gt_fieldcat.
      clear ls_fieldcat.
      ls_fieldcat-fieldname    = 'PSMNG'.
      ls_fieldcat-reptext_ddic = 'Quantity'.
      ls_fieldcat-tabname      = 'DETAIL'.
      ls_fieldcat-outputlen    = 20.
      append ls_fieldcat to gt_fieldcat.
      gs_layout-expand_fieldname = 'EXPAND'.
      call function 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
           exporting
                it_fieldcat      = gt_fieldcat[]
                is_layout        = gs_layout
                i_tabname_header = 'HEAD'
                i_tabname_item   = 'DETAIL'
                is_keyinfo       = gs_keyinfo
           tables
                t_outtab_header  = head
                t_outtab_item    = detail.
    endform.
    Regard,s
    RIch Heilman

  • Using multiple img src / with htmlText --display problem

    I need help.
    I am using multiple <img src /> tag with htmlText and
    pictures displays in layers(overlay)?
    html_txt.html = true;
    html_txt.htmlText = "text<br><img src = '
    http://picture1.jpg 'width='500'
    height='491' hspace='0' /><br>more text<br><img
    src = '
    http://picture2.jpg' width='299'
    height='612' hspace='101' ><br>end with text";
    Is there any way to refresh text field when pictures are
    fully loaded so it will display like regular html page?
    this is flash version, evrything is shown but it is not
    right.
    http://www.sosui.jp/flash/test/v001/pages/home/homeBlogV002.swf
    I want to show them like this page.
    http://sosui.jp/flash/test/v001/pages/home/blog.html
    I tried onEnterFrame but pictures will not show. I think it
    is because it is trying to load pictures everytime. So I cannot use
    onEnterFrame, i need other way to refresh text field.
    Please help me. you might of guessed I am not an English
    speaker, so my English might be little off.
    Thank you.

    does anybody know anything? how long do i need to wait to see
    if someone replies? I just need to know if it is possible or not.

  • Possible to have multiple views for one scene?

    Away3D allows multiple Views to be created for one Scene, allowing different camera positions for the same geometry.
    Can Proscenium support this? I've been banging my head against a brick wall for a while now...
    Joe

    Hi Kopaacabana,
    (I  feel like I'm in one of those post-apocalyptic scenes where the last two humans left on earth finally meet.....)
    Thanks for answering!
    Yes, I've actually got two cameras quite happily working in the scene, the problem is that I need to re-use the geometry for the scene in two windows, or at least, two separate parts of one window simultaneously. Away3D can do it very easily, where one sets up a 'View', which has a 'Scene' it views. With Proscenium it seems that the whole thing is tied up with an Instance3D, which is fine for one camera, but the scene nodes seem tied up as children of some root scene node. I've tried assigning the scene data as a child of two instances of BasicScene (hacking the stage3ds[number] to be different for each), but that causes an exception.
    Just changing the activeCamera changes the view to the new camera, where I actually need to be able to render to two windows/screen areas from one set of geometry.
    I would have hoped that the paradigm would have been 'here is some geometry, lights, etc., now do with it what you will'
    Adobe, are you there to help us out, like, anyone at all? Are we wasting our time with this?
    Joe

  • Selecting Multiple Rows from ALV GRID Display

    Hi,
    I am having a ALV GRID Display. I want to select multiple rows from the Output and move them to an internal table.
    Please let me know how do I acheive this.
    Thanks in advance,
    Ishaq.

    Hi,
    Have a look on the following code. It displays the selected rows which hv been selected in basic list.
    TABLES:
      spfli.
    TYPE-POOLS:
      slis.
    DATA:
      BEGIN OF t_spfli OCCURS 0,
        checkbox.
            INCLUDE STRUCTURE spfli.
    DATA:  END OF t_spfli.
    DATA:
      t_sspfli LIKE STANDARD TABLE OF t_spfli .
    DATA:
      fs_spfli LIKE LINE OF t_sspfli.
    DATA:
      fs_layout TYPE  slis_layout_alv,
      w_program TYPE sy-repid.
    SELECT *
      FROM spfli
      INTO CORRESPONDING FIELDS OF TABLE t_spfli.
    *fs_layout-info_fieldname = 'COLOR'.
    fs_layout-box_fieldname = 'CHECKBOX'.
    w_program = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        i_callback_program       = w_program
        i_callback_pf_status_set = 'FLIGHT'
        i_callback_user_command  = 'SPFLI_INFO'
        i_structure_name         = 'SPFLI'
        is_layout                = fs_layout
      TABLES
        t_outtab                 = t_spfli
      EXCEPTIONS
        program_error            = 1
        OTHERS                   = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *&      Form  FLIGHT
          text
         -->RT_EXTAB   text
    FORM flight    USING rt_extab TYPE slis_t_extab..
      SET PF-STATUS 'FLIGHT' EXCLUDING rt_extab.
    ENDFORM.                    "FLIGHT
    *&      Form  SPFLI_INFO
          text
         -->UCOMM      text
         -->SELFIELD   text
    FORM spfli_info USING ucomm LIKE sy-ucomm
                           selfield TYPE slis_selfield.
      selfield-refresh = 'X'.
      CASE ucomm.
        WHEN 'FLIGHT'.
          LOOP AT t_spfli.
            IF t_spfli-checkbox = 'X'.
              t_spfli-checkbox = ' '.
             t_spfli-color = 'C51'.
              MODIFY t_spfli TRANSPORTING checkbox.
              fs_spfli = t_spfli.
              APPEND fs_spfli TO t_sspfli.
            ENDIF.
          ENDLOOP.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
      ENDCASE.
      CLEAR fs_spfli.
      fs_layout-info_fieldname = 'COLOR'.
    fs_layout-confirmation_prompt = 'X'.
      fs_layout-key_hotspot = 'X'.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program = w_program
          i_structure_name   = 'SFLIGHT'
          is_layout          = fs_layout
        TABLES
          t_outtab           = t_sspfli
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      REFRESH t_sspfli.
    ENDFORM.                    "SPFLI_INFO
    Regards,
    Chandu

  • Selecting multiple rows in ALV grid display

    Hi,
    I have an ALV grid display in my report.
    My grid contains multiple rows.
    I have to select multiple rows at a time, to perform some operations on the selected rows.
    How can it be achieved?
    Thanks,
    Sandeep.

    Hi ,
    you have to use a box fieldname in the report to be able to select multiple lines at a time :
    - in your internal table declaration put the first field as 'box_fieldname' of type c1
    - then in your work area for layout add, lwa_layout-box_fieldname =     'box_fieldname'
    - in the perform for handling user commands, all selected lines will have an "X" in the field name  'box_fieldname'
    Thanks and Regards,
    Dev.

  • How can I connect multiple devices to Mac mini display port? I need to connect a Canon 5D to my Mac and display the result on a VGA video projector. I am using mini hdmi to mini display for the camera. Can I connect the VGA to any other port?

    Hi there I am connecting a Canon 5D to my laptop trying to use it as a webcam trough camtwist.
    At the same time I need to output the streaming to a videoprojector.
    The cam is connected to the mini display port do there is no port available for the VGA cable anymore.
    Do I need to use a different port for the projector? Should I buy a video card?
    Can't connect the camera via USB as that is too slow and it will freeze.
    Many thanks for all your help
    Best
    Faeve

    You might do better on a forum other than this one, which is "Using iPhone"

  • How to use multiple threads and swing for displaying status/interaction

    I have a Swing-app which have to show progress and allow userinteraction for these tasks:
    * First:
    retrieve a list of IDs(String) from the database (single thread running)
    * Second:
    some work on the id-list and list written to hd (same thread as above)
    * Third:
    retrieve Objects (based on the id-list) from different sources (Multiple Threads are running)
    To show the status I have a JProgressBar (indeterminate while task1&2 running) and
    a JTextArea showing the current status (connect,retrieve list, sort, ...)
    When task3 is starting the JTextArea have to disappear and be replaced by a ScrollPane
    with an array of Labels/TextAreas showing the status of each thread.
    While theses threads are working, the ID-list will be consumed and the JProgressBar
    shows the remaining precentage of the hole progress.
    Everything is working so far (excepts UI :) , the problem(s) I have:
    I need the threads to interacts with the user through the ui. e.g: "Connection to db-xyz lost! reconnect?"
    But I don&#180;t know how to do this correctly.
    I think one way would be to send an event to the ui... but how?
    (the ui must know which thread is calling to unpause it after user answered)
    I know that threads should NOT change the swing(-container) - How do I notify the ui that a thread has a question?
    Since these threads are really time-consuming the UI is not updated frequently,
    how can I increase this? (perhaps using another thread-priority?)
    thanks for help!

    if/when your threads need to interact with the UI, they can create a Runnable & send it to SwingUtilities.invokeLater or invokeAndWait. This Runnable can popup a message to the user, and act on the choice of the user (reconnect, cancel, ...). This action could be something which "unpauses" the task thread.
    You may need to do synchronisation between the code in the Runnable & the Thread to which it is related - so the latter Thread knows when the user has made the choice.

  • Multiple resolutions on a single display

    I tried using a 27" display years ago after Apple decided to dump the 24" models. I quickly discovered I couldn't get used to the resolution and while all that screen real estate was great, the wdith of the screen was very difficult on my eyes as I tried to scan things (I have an astigmatism).
    I now have an opportunity to try working with a 27" display again and am wondering if there might some configuring I can do to help with the issues I encountered previously. At the moment I work on a 21.5" iMac and find it's native resolution perfect for me. I wondered if it might be possible to split up my screen in such a way as to have two 'views' both at a resolution my eyes can handle.
    Any thoughts?

    We don't support this yet but we are starting to look at what it would take to add this to the product.
    You can vote on this feature request here: http://forums.adobe.com/ideas/1046
    We use this to help prioritize our work.
    Thanks,
    Randy

  • Multiple (not full) day events displaying in monthly view

    If I have an event that starts on 8:00 AM on Tuesday, and ends on 5:00 PM on Wednesday, It won't display in monthly view on Wednesday in iCal. It looks as though I have nothing scheduled on Wednesday.
    Is this "feature" something that Apple is working to eliminate?

    Ramone4130,
    The first and easiest troubleshooting step involves replacing/refreshing the com.apple.iCal.plist file.
    Quit iCal and find the com.apple.iCal.plist file in your Macintosh HD/Users/yourusername/Library/Preferences Folder. Drag the file to your Desktop, log out/in or restart and check iCal for normal behavior.
    ;~)

  • Is it possible to connect a mac book pro via thunderbolt and a dvi switchbox (multiple computers) to a thunderbolt display?

    Hi,
    I'm planning to buy a thunderbolt display.Since I have not only apple computers with a thunderbolt port I wonder if it's possible to connect my mac book pro via thunderbolt and a DVI switchbox via a "mini displayport to DVI connector" to the thunderbolt display at the same time. Thunderbolt is a bus architecture. Thus there must be an ingoing and an outgoing port on the display. The rearview of the display I've seen so far don't show this:
    If this is not possible then I must question the market chances of this product. Seems as if the product marketing guys exaggerated the launch of the thunderbolt technology.
    -ais-swiss

    ais-swiss wrote:
    How to connect windows laptop (vga) to thunderbolt display?
    AHHH??!!!!!!  Was that your original question??   I assumed you were trying to output FROM your computer (MacBook Pro w/ Thunderbolt) to the new display and then OUT to be the video source to a DVI switcher.
    MB Pro w/TB ---> TB Display ---> mDP-to-DVI adapter ---> DVI switcher
    So it seems as if it's not possible to use the thunderbolt display with the mini display port adapter to DVI you've mentioned.
    I did not understand that you were trying to use other PC's into a switcher and then THAT Video source to connect INTO the TB display.   If THAT is what you're trying to do, then NO....  You can NOT use the new TB Display to be used to display "FROM" a DVI switcher (and also can NOT be used to display from other Non-TB-Apple computers).
    I've also called apple. The statement was that one needs a computer with osx 10.6.x in order to connect the thunderbolt display. That makes it impossible to hook a windows pc or older mac to the new and shiny thunderbolt display.
    I wonder why apple doesn't state this in their technical descriptions...?
    -ais-swiss
    Actually, the state that information all over the Tech Specs on the Apple Store website.
    http://store.apple.com/us/product/MC914LL/A?mco=MTY3ODQ5OTY
    Here are two different statements from that webpage:
    So yes.... other NON-Apple PC's (or non-TB devices) do Not have the Thunderbolt technology (hardware/software) to be able to communicate with the TB display or other TB devices.

  • Best way to MouseDrag multiple objects around a scene.

    So I am having a little trouble trying to drag 3 Box's in a scene.
    Originally I had it set up where each was relocated to an x,y translated Z and set to a HWD. Then I figured I would, instead of the mouse click on the box itself, be in the root. From there I would look through all of the root.getChildren() then made that see if it contained the x,y position.
    Then from knowing which of my root Children I clicked I did root.getChildren.get(current).setOnDragged to figure out which one was dragged.
    The code itself worked except for finding which box I was on.
    The issue I find is that I onyl have getX, getSceneX, and getScreenX. X, and SceneX produce the same value, and ScreenX is useless. I tried then to do event.getX() - root.getLayoutX() to make the contains function to work, but it wasn't working and would require me to change up more things. getLayoutX() was = 0 since I didn't set the root location, only the locations of the box's.
    From there I kept wondering if there was a better way. Then I thought maybe to loop through every element in my root or in an arrayList(Which is what I used, but realized the root.getchildren should work like the original) but the problem is it keeps only registering the last one in the list, so it just loops and that's it.
    So what I want to know is, what would be the best way to figure out what object I'm in?
    Originally I use the contains(Swing) but Swing is different, and now especially since we can register mouseEvents to each node, shouldn't we know exactly which one we are on, just by looping through each of them? I figure that's easier than having to check every single mouse position contained within, especially if I have 10000 things to check?
    Edited by: KonradZuse on Mar 18, 2013 8:05 PM

    I slightly modified your code for 3D.
    - added a pointlight
    - added a phong material
    - the rectangle changed to a box
    - the circle changed to a sphere
    - add scene.setCamera(new PerspectiveCamera(false));
    Without the last line it is not working.
    I tested it with javafx8.0 build 80 Netbean7.3
    import javafx.application.Application;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Circle;
    import javafx.scene.shape.Polygon;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.PerspectiveCamera;
    import javafx.scene.PointLight;
    import javafx.scene.paint.PhongMaterial;
    import javafx.scene.shape.Box;
    import javafx.scene.shape.DrawMode;
    import javafx.scene.shape.Sphere;
    public class DraggingShapes3D extends Application {
        @Override
        public void start(Stage primaryStage) {
            PointLight pointLight = new PointLight(Color.ANTIQUEWHITE);    
            pointLight.setTranslateX(800);    
            pointLight.setTranslateY(-100);  
            pointLight.setTranslateZ(-1000);
            PhongMaterial material = new PhongMaterial();
            material.setDiffuseColor(Color.LIGHTGRAY);
            material.setSpecularColor(Color.rgb(30, 30, 30));
            Box box = new Box(200, 200, 200);
            box.setMaterial(material);
            box.setTranslateX(100);
            box.setTranslateY(100);
            box.setDrawMode(DrawMode.FILL);
            box.addEventHandler(MouseEvent.ANY, new DragShapeHandler());
            Group root = new Group();
            Sphere sphere = new Sphere(100);
            sphere.setTranslateX(400);
            sphere.setTranslateY(100);
            sphere.setMaterial(material);
            sphere.addEventHandler(MouseEvent.ANY, new DragShapeHandler());
            root.getChildren().addAll(box, sphere);
             root.getChildren().addAll(pointLight);
            Scene scene = new Scene(root, 800, 800, true);
            scene.setCamera(new PerspectiveCamera(false));
            primaryStage.setScene(scene);
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);
        class DragShapeHandler implements EventHandler<MouseEvent> {
            private double sceneAnchorX;
            private double sceneAnchorY;
            @Override
            public void handle(MouseEvent event) {
                if (event.getEventType() == MouseEvent.MOUSE_PRESSED) {
                    sceneAnchorX = event.getSceneX();
                    sceneAnchorY = event.getSceneY();
                } else if (event.getEventType() == MouseEvent.MOUSE_DRAGGED) {
                    double x = event.getSceneX();
                    double y = event.getSceneY();
                    Node node = (Node) event.getSource();
                    node.setTranslateX(node.getTranslateX() + x - sceneAnchorX);
                    node.setTranslateY(node.getTranslateY() + y - sceneAnchorY);
                    sceneAnchorX = x;
                    sceneAnchorY = y;
    }

Maybe you are looking for