How to obtain the coordinates of the cursor in a field in 3D?

I have a land in 3D with discrete points. The cursor is indicated and broken so that I can move the cursor to select a point to the nearest point. I was wondering how can I get the coordinates of the cursor in the 3D plot so that I can point to the point (change the size or shape) which the cursor is located. I wasn't able to find coordinates using nodes property. Any suggestions will be appreciated. Thank you.

Xueliang

Is this working from home?

This thread offers advice for hwo to use 3d graphics.

http://forums.NI.com...=161218#M161218

This an apperntly has an example to enter the values of the slider.

http://forums.NI.com...=108612#M108612

Ben

Tags: NI Software

Similar Questions

  • Tabular presentation - at first, place the cursor on any field

    Hello

    In a tabular presentation, when I try to 'add the line' how initially position the cursor on any field?

    For example, when I add a line, I want to keep the cursor on the first EMPNO field (assuming that it is the first field).

    Please let me know.

    Thank you

    Published by: user10544005 on November 5, 2008 20:00

    Hello

    Put in footer of the report following region region:

    <script type="text/javascript">
    function setfocus()
    {
     var x = document.getElementsByName("f02");
     if (x)
     {
      var l = x.length;
      if (x[l-1].value == "")
      {
       x[l-1].focus();
      }
      else
      {
       x[0].focus();
      }
     }
    }
    setfocus();
    </script>
    

    Replace "f02" regardless of the name attribute is for the EMPNO field (you can do a display on the page Source to verify this).

    That will affect the focus to the last line, if it is empty, otherwise it will be to set the focus to the first line. The code runs when the page is loaded.

    Andy

  • Jetta or anyone any response on how to obtain the latest drivers

    Jetta or any person, any answer on how to obtain the latest drivers, etc..  Thank you

    As a rule, go to the website of the manufacturer (support section) and search your device. Make sure you get the drivers for your version of Windows (including whether 32 - or 64-Bit *).

    * To find out how this, look here: http://windows.microsoft.com/en-us/windows7/32-bit-and-64-bit-Windows-frequently-asked-questions

    If you need assistance with a particular device just driver post here the details above.

    All the answers and suggestions are provided by an enthusiastic amateur and are therefore no explicit or implicit guarantee. Basically, you use my suggestions at your own risk.

  • Animate dashboard. How to change the cursor of the animated symbol (no picture)?

    Hi, could you tell me please how to change the cursor in internship at the animation symbol and label goto inside when click on and release.

    For example, I want to create hammer striking the rock, my cursor should change when I'm on the stage and the hit, when I am pressing the button of the mouse and goto the first position when released.

    Thanks for the help =)

    Hello

    This demo file can help you: can I use a symbol animated acting as a mouse cursor?

  • How to get the cursor to change when rolled on an object?

    does anyone know how to get the cursor to change when rolled onto an object. BTW, I have several objects to apply it.

    Select your object's buttonMode:

    yourobject.buttonMode = true;

  • How to keep the cursor in short to a TLF in ScrollPane?

    How to keep the cursor in short to a TLF in ScrollPane? Consider this:

    textFlow.addEventListener (UpdateCompleteEvent.UPDATE_COMPLETE, tlfUpdtHandler, false, 0, true);


    private void tlfUpdtHandler(e:Event):void {}
    textFlow var = e.currentTarget;
    var containerController = textFlow.flowComposer.getControllerAt (0) as ContainerController;
    var contentBounds:Rectangle = containerController.getContentBounds ();
    var tlf_mc = containerController.container;
    containerController.setCompositionSize (containerController.compositionWidth, contentBounds.height);
    var sp:ScrollPane = tlf_mc.parent.parent;
    TPI Update();
    trace (Math.ceil (SP.verticalScrollPosition), Math.ceil (sp.maxVerticalScrollPosition), sp.verticalScrollPosition, sp.maxVerticalScrollPosition);

    sp.verticalScrollPosition = sp.maxVerticalScrollPosition;

    }

    I can't do this as the scroll position will always be in the last line. I would like the scrollpane to scroll to the line where the content is typed.

    Kindly help out me with pointers.

    Thank you.

    Sabine

    Thanks I understand now.  I'm not familiar with the fl classes but here goes.

    (1) using the NaN being the height of composition that tlfUpdateHandler keeps the cursor in view.  It worked with a few simple tests - there may be a few missing details.  I call sp.update so that it catches the total height changes?

    private void tlfUpdtHandler(e:UpdateCompleteEvent):void
    {
    find the current activePosition
    var activePos:int = e.textFlow.interactionManager.activePosition;
    If (activePos == - 1).
    return;
               
    var tfl:TextFlowLine = e.textFlow.flowComposer.getLineAt (e.textFlow.flowComposer.findLineIndexAtPosition (os activeP));
               
    If his view not to scroll into view
    If (sp.verticalScrollPosition > tfl.y: sp.verticalScrollPosition + sp.height)<>
    sp.verticalScrollPosition = tfl.y - 20;    just a number for him give a certain margin above
    }

    (2) If you do not use NaN as the height of the composition (less accurate but works better) I don't think that you will be able to use ScrollPane.  TLF automatically scrolls the lines inside the Sprite using the limits of composition.  Instead, you need to instantiate a control ScrollBar and synchronize the contentBounds with maximum heights and also synchronize the scroll positions.  TLF generates a "scroll" event every time it scrolls the content.  ContainerController has a r/w for verticalScrollPosition properties.

    Hope that helps

    Richard

  • How to change the color of form fields

    I don't know how to change the color of form fields. They default to gray, but I don't know how to make a different color.

    Gray does not match the color scheme of my landing page!

    Thank you!

    I think you have two options when you are working on a landing page with an embedded format:

    • You can change the background color of the entire form field set by selecting the shape, and then clicking on the Toolbox. In the window that opens go to the second (on a paint brush icon) and select the background color you want.
    • You can change the background color of the actual fields in the form by adding CSS styles. Select the Toolbox, go to the last tab (Tools Extract page) and in the middle of this window, you will see "head | CSS | JS"- select this average CSS tab and enter the style code to get the color you want. Here is an example of code you can put in it. Note that #000000 is the color code for black. Here is more information about the code: css - background in the input fields and text color? - stack overflow

  • How to adjust the display width of fields?

    work in jdev 11.1.2.3.
    the form looks like DESIGNER Visual, all fields of the same length, and there is no width attribute to adjust. When run, some too long display fields.
    How to adjust the display width of fields in the design?
    Thank you.

    Hello

    You don't need to repeat once again, unless you have changed the properties after initial drag and drop.

    If you have changed, use the value #{bindings.yourAttribute.hints.displayWidth} to the columns property.


    label = "#{Bindings.Name.hints.label} '"
    required = "#{Bindings.Name.hints.Mandatory} '"
    * Columns = "#{Bindings.Name.hints.DisplayWidth}" *.
    maximumLength = "#{bindings.name.hints.precision} '"
    shortDesc = "#{bindings.name.hints.tooltip}" id = "it38" > "

    Thank you
    NGO

  • How to display the names of header fields in the next page in report6i

    How to display the names of header fields repeated in the next page of report6i urgent please...


    When I'm runing report in 1st page that showing only the header in page 2 information header information does not display only records appear. So I want to display the header in 2nd page also information.

    You can help.

    Hello

    Go for the model of report layout and select these elements/objects that do not display on the next page and pressing the F4 key to open the palette of the property and set the property Print object on to All the Pages , then it will appear on all pages.

    -Clément

  • How to set the value of a field from the LOV of another field.

    I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).

    The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.

    When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.

    I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.

    Can you please help? Thank you, Laura

    Laura,

    It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.

    Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.

    1 do the P_STATE ' select list submits the Page.
    2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
    3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".

    This is what will happen
    a. when the State is selected Page will be submitted
    (b) it will take the unconditional branch to himself and save the value of P_STATE
    c. the calculation process / fills the value of the P_PROGRAM element when the page reloads

    Kind regards

  • How to customize the cursor

    Hello

    I'm simulating a mobile box on a straight path. So, basically, I want to show where the box when time passes. I think that I can use "horizontal slide" but I need to customize the cursor so that it displays the size of my mailbox. How can I do? or is there another way to do this kind of simulations?

    Thank you

    Joyce

    Do you want something like that? You can also do this with an image and move the image around your user interface so that you could creat several boxes and make them be of different sizes.

  • How to obtain the page to an XML element?

    Hi all

    I am fairly new to InDesign scripting (and scripts in general) and have lots of fun :-)

    I have an InDesign document containing several frames (texts, graphics, etc.) and I tagged using the InDesign tags window.

    After much struggle, I managed to get the name of the XML element tag first in my document using this simple code:

    app.activeDocument.xmlElements[0].xmlElements[0].markupTag.name
    

    I know that it worked because I got the right answer in the Javascript console. (By the way, can someone explain to me why I write xmlElements [0] twice?) And what is the difference between xmlElements and xmlItems? Any help is appreciated).

    Then I'll probably use a loop for for each markupTag of each xmlElement. But I have a lot of trouble to obtain the page associated xmlElement :-/

    After a lot of searching on Google, I came across this article which is supposed to answer my question exactly. I tried to understand this code, copy and paste in ExtendScript, but I must admit it's a bit too complex for me...

    Can someone tell me how to get a graphic or a text linked to my XML tags block? Any help is greatly appreciated!

    Nevermind, I found an easier way to achieve what I was trying to do. Actually, I wanted to be able to handle different images in my document, so why I wanted to use the XML markup.

    For those of you who have the same problem, who knows from InDesign CS5, there is an itemByName method that allows you to select an image by its name in the layers panel. So much easier to use :-)

    Thread closed!

  • How to change the cursor on the roll on the function

    I make it a point and click game in AS3 with flash.

    I changed my slider skin by creating a new class of '' mouse. '' It works very well. Now, I'm trying to change the skin of the cursor when it is over an object on the stage.

    I read that the MouseEvent.ROLL_OVER is the correct method, but I can't understand how do...

    I have my mouse class like this:

    public class Souris extends MovieClip
        {
     private var engine:Engine;
            private var stageRef:Stage;
            private var p:Point = new Point(); 
    
            public function Souris(stageRef:Stage)
            {
                Mouse.hide(); //make the mouse disappear
                mouseEnabled = false; //don't let our cursor block anything
    mouseChildren = false;
    
                this.stageRef = stageRef;
                x = stageRef.mouseX;
                y = stageRef.mouseY;
    
                stageRef.addEventListener(MouseEvent.MOUSE_MOVE, updateMouse, false, 0, true);
                stageRef.addEventListener(Event.MOUSE_LEAVE, mouseLeaveHandler, false, 0, true);
                stageRef.addEventListener(Event.ADDED, updateStack, false, 0, true);
                stageRef.addEventListener(MouseEvent.ROLL_OVER,hover);
    
            }
    
            private function updateStack(e:Event) : void
            {
                stageRef.addChild(this);
            }
            private function hover(e:MouseEvent):void {
    souris.visible = false;
    }
    
            private function mouseLeaveHandler(e:Event) : void
            {
                visible = false;
                Mouse.show(); //in case of right click
                stageRef.addEventListener(MouseEvent.MOUSE_MOVE, mouseReturnHandler, false, 0, true);
            }
    
            private function mouseReturnHandler(e:Event) : void
            {
                visible = true;
                Mouse.hide(); //in case of right click
                removeEventListener(MouseEvent.MOUSE_MOVE, mouseReturnHandler);
            }
    
            private function updateMouse(e:MouseEvent) : void
            {
                x = stageRef.mouseX;
                y = stageRef.mouseY;
    
                e.updateAfterEvent();
            }
    
        }
    
    }
    }
    

    I have in my main class (class engine):


    private var souris:Souris;
    
    public function Engine(){
    
    
    
                            souris = new Souris(stage);
                stage.addChild(souris);
    
            }
    private function startGame(e:Event):void{
    ....
    ..
    

    I tried to put in the class of '' mouse. ''


    stageRef.addEventListener(MouseEvent.ROLL_OVER,hover);
    
    private function hover(e:MouseEvent):void {
    Engine.souris.visible = false; 
    handCursor.visible = true ;
    }
    

    But it seems wrong... I don't know what to put in my score function... (I got the "handCursor' in my library).

    Thank you very much for your help!

    Thx for your answers, I found a solution to my problem. It was MouseEvent.MOUSE_OVER. and not to the overthrow. But thanks for the links, I read it and it helps me with some codes.

    Thanks for your time!

  • How to make the cursor change links?

    What do you do when you encode as always, but some people report that the mouse cursor does not become a helping hand to indicate behavior of link?

    Also, how can I make the cursor changes to a big arrow?

    Flash CS3, Mac

    2

    Thank you

    create a movieclip (s) (such as arrows), you want to use for your custom cursor, hide the real cursor and use a loop to assign x of your movieclips, y properties.

  • How to create the cursor in a stored procedure

    How to create the slider in the stored procedure. I want a simple example
    procedure - cursor - open-fetch - insert - last slider farm
    any idea or examples... Please help friends

    Thanks in advance

    Hello

    Search for explicit cursors in this link

    http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28370/static.htm#insertedID2

    Kind regards
    Prazy

Maybe you are looking for