[JavaScript] access to vertices of a mesh node

Hi forum,<br /><br />is there a way to get access to the vertices of a mesh node, in particular to their x, y and z coordinates (with respect to the local coordinate system of the parent mesh node)?<br /><br />I mean something like:<br /><br /><font face=Courier><br />var meshes = scene.meshes;<br><br />for(i=0; i<meshes.count; i++){<br><br />    var mesh = meshes.getByIndex(i);<br><br />    for j=0; j<mesh.vertices.count; j++) {<br><br />        var vertex = mesh.vertices.getByIndex(j);<br><br />        x = vertex.x;<br><br />        ...<br><br />    }<br />}<br /></font><br /><br />Thanks,<br /><br />Alexander.

Alexander,
Sorry for the big delay. You're probably on to new things now...
The answer is that there is not yet access to vertices. You can of course get the 4x4Matrix of a mesh and transform the mesh in that manner, but specific control or deformation of vertices is not present.

Similar Messages

  • Error Message Too Many Associations on Mesh Node

    I've been have trouble connecting one of my 1500 AP to my WLC4402. It was connected during testing to its root point but after installation it is giving the error Too Many Associations on Mesh Node in the Trap log and it cycles about every 10 minutes. It isn't any further away then when it was tested so I'm not sure what the problem is. I can see it as a neighbor from the root point but it will not join the mesh. I ran link test by searching for in clients by MAC address and it passes as well. Any help on this problem would be greatly appreciated. Thank you.

    I would suggest changing your power levels on your Access Points so that your AP does not see as many neighbors. You could also try using directional antennas on some of your radios, there by narrowing the transmit range to a smaller 'beam', instead of omni-directional transmission.

  • Issue while enabling Access Control for a Coherence server node

    Hi
    Im trying to enable access control for a Coherence server node, using the default Keystore login method shipped with Coherence. When i start the server i get the error "java.security.AccessControlException: Unsufficient rights to perform the operation". Please see below for the sequence of steps I've followed to enable access control. I just need to be enable Authentication (not authorization) at this stage
    1. I have added the following entry in the Coherence Operational override file
    <security-config>
              <enabled system-property="tangosol.coherence.security">true</enabled>
              <login-module-name>Coherence</login-module-name>
              <access-controller>
                   <class-name>com.tangosol.net.security.DefaultController</class-name>
                   <init-params>
                        <init-param id="1">
                             <param-type>java.io.File</param-type>
                             <param-value>keystore.jks</param-value>
                        </init-param>
                        <init-param id="2">
                             <param-type>java.io.File</param-type>
                             <param-value>permissions.xml</param-value>
                        </init-param>
                   </init-params>
              </access-controller>
              <callback-handler>
                   <class-name>com.sun.security.auth.callback.TextCallbackHandler</class-name>
              </callback-handler>
         </security-config>
    2. The following is the entry in the Permissions.xml
    <?xml version='1.0'?>
    <permissions>
    <grant>
    <principal>
    <class>javax.security.auth.x500.X500Principal</class>
    <name>CN=admin,OU=Coherence,O=Oracle,C=US</name>
    </principal>
    <permission>
    <target>*</target>
    <action>all</action>
    </permission>
    </grant>
    </permissions>
    3. The following is the content of the Login configuration file "Coherence_Login.conf"
    Coherence {
    com.tangosol.security.KeystoreLogin required
    keyStorePath="keystore.jks";
    4. The following is the command line tag for starting the server
    java -server -showversion -Djava.security.auth.login.config=Coherence_Login.conf -Xms%memory% -Xmx%memory% -Dtangosol.coherence.cacheconfig=PROXY-cache-config.xml -Dtangosol.coherence.override=FOL-coherence-override.xml -Dcom.sun.management.jmxremote.port=6789 -Dcom.sun.management.jmxremote.authenticate=false -Dtangosol.coherence.security=true -cp "%coherence_home%\lib\coherence.jar" com.tangosol.net.DefaultCacheServer %1
    Following is the output on the Console when running the command. It asks for a username and password for the JKS store (If i provide the wrong password, it gives a different error, which shows that it is able to authenticate aganst the Keystore). After i put in the password, it throws the error as shown below "java.security.AccessControlException: Unsufficient rights to perform the operation"
    D:\Coherence\FOL_CacheServer>fol-cache-server
    java version "1.6.0_20"
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
    Username:admin
    Password:
    Exception in thread "main" java.security.AccessControlException: Unsufficient ri
    ghts to perform the operation
    at com.tangosol.net.security.DefaultController.checkPermission(DefaultCo
    ntroller.java:153)
    at com.tangosol.coherence.component.net.security.Standard.checkPermissio
    n(Standard.CDB:32)
    at com.tangosol.coherence.component.net.Security.checkPermission(Securit
    y.CDB:11)
    at com.tangosol.coherence.component.util.SafeCluster.ensureService(SafeC
    luster.CDB:6)
    at com.tangosol.coherence.component.net.management.Connector.startServic
    e(Connector.CDB:20)
    at com.tangosol.coherence.component.net.management.gateway.Remote.regist
    erLocalModel(Remote.CDB:10)
    at com.tangosol.coherence.component.net.management.gateway.Local.registe
    rLocalModel(Local.CDB:10)
    at com.tangosol.coherence.component.net.management.Gateway.register(Gate
    way.CDB:6)
    at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluste
    r(SafeCluster.CDB:46)
    at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.C
    DB:2)
    at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:998)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInterna
    l(DefaultConfigurableCacheFactory.java:923)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(Defaul
    tConfigurableCacheFactory.java:892)
    at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.
    java:81)
    at com.tangosol.net.DefaultCacheServer.intialStartServices(DefaultCacheS
    erver.java:250)
    at com.tangosol.net.DefaultCacheServer.startAndMonitor(DefaultCacheServe
    r.java:55)
    at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)

    Did you create the weblogic domain with the Oracle Webcenter Spaces option selected? This should install the relevant libraries into the domain that you will need to deploy your application. My experience is based off WC 11.1.1.0. If you haven't, you can extend your domain by re-running the Domain Config Wizard again (WLS_HOME/common/bin/config.sh)
    Cappa

  • How to make Javascript access standard JSF component

    Hello all,
    I'm in need of a proper javascript code that access standard jsf component.
    Like we do for html tags;
    if( el.tagName.toLowerCase() != 'select')
    I need to do the same thing for a jsf tag i.e; <h:selectOneMenu>. How to make javascript access <h:selectOneMenu> like it does with <select> tag ? Please let me know asap. Extremely sorry if the question is kind of stupid....cause I'm a beginner for JSF environment.
    Any sort of help, suggestion or advice would highly be appreciated.
    Thanks in advance.

    Ummmm, I may be off the beaten path, but by the time your javascript is called the h:selectOneMenu would be a select tag within the dom. You should be able to reference that tag as you normally would.

  • JAVASCRIPT:  Accessing the sessionbean - how ??? can it be done?

    Hi,
    I need to access the sessionBean from javawscript. I have trawled throughj all posts and have got no satisfactory code.
    Can this be done?
    I have tried for eg alert(#{sessionBean.firstName}) and get a syntax error, i assume due to # symbol. do i need to CDATA this request?
    Any help, much appreciated.
    Regards,
    LOTI

    Your problem is trying to access server side information from the client side, so that alert is never gonna work in that simple form. If you want javascript access to a sessionbean variable, that variable will have to be present in the final rendered page....meaning bring it into your page as either a visible or inviisble field and then using javascript to read that. Thats one solution?

  • Javascript access to htmlb textEdit

    Hi,
    Since the htmlb object textEdit does not support javascript access through the jsObjectNeeded option I tried another approach.
    This approach is mentioned several times on SDN but it does not perform as excepted.
    <% String compID = null; %>
    <hbj:textEdit
    id="reaction"
         text=""
         wrapping="SOFT"
         rows="5"
         cols="50">
         <%compID = myContext.getParamIdForComponent(reaction);%>
    </hbj:textEdit>
    <%=compID%>               (<-- test to write ID to html page)
    This code retrieves the ID of the htmlb component. It works fine as I can write the htmlb ID to the html page.
    However I need this ID in my javascript during a validation. The problem is that the ID is empty in the javascript.
    Please help.
    Raymond

    Hi Raymond,
    Try out the following piece of code (the code is tested and is working):
    <hbj:textEdit      id="addComments"
                        wrapping="SOFT"
                        text=""
                        rows="2"
                       cols="100" >
         <% addComments.setJsObjectNeeded(true); %>
    </hbj:textEdit>
    Then through javascript you can access the id of the text edit in the similar fashion.
    var txtAdCom= eval(func("addComments"));
    var value =txtAdCom.getValue();
    var length = txtAdCom.getValue().length;
    Please do reward with points if the solution is helpful.
    Thanks
    Ritushree

  • Can JavaScript access JSP variable?

    Could we do this? Or, how could we have JavaScript access JSP variable?
    <%
    String fooBar = request.getParameter(......
    %>
    <script language="JavaScript">
    <!--
    if (fooBar  == ...) {
    -->
    </script>

    To access the variable in Javascript you'll have to
    write it out from the JSP. You'll need to do something
    like:
    <%
    String fooBar = request.getParameter(......
    %>
    <script language="JavaScript">
    <!--
    var fooBar = '<%=encodeQuotes(fooBar)%>';
    if (fooBar  == ...) {
    -->
    </script>You'll need to either make sure fooBar doesn't contain
    any quotes or write a function to replace each ' with
    \'.Thanks!
    That works perfectly, without encodeQuote() method in my current case.
    Thanks again. You ar a saviour.

  • Javascript access to images in a PDF

    Hello,
    i'm a newbie to javascripting adobe apps, so i hope you'll excuse me if the question is just too stupid...
    I need to open in photoshop all the images in a pdf document. The pdf doc is singlepaged, usually with a single image (it's a adverting page in a magazine). When I have to do a quick retouch on a image, i choose Touchup Object, select the image, right click and choose Modify Image (actually I am using Acrobat in Italian: i hope the traslation makes sense) and Photoshop pops up. I modify the image and save it.
    Is it possible to script this process?
    My basic question actually is: how do i have access to the image in the pdf document? Exploring the contents of the pdf I see the image is in a XObject: can i get to it via javascript?
    any help is really appreciated! thanks
    Mauroo

    What you're trying to do requires a plug-in written in C/C++.  It cannot be accomplished with Acrobat JavaScript.

  • Javascript Access Denied in WebDynpro Application SP11

    Hi all,
    I'm developing a WebDynpro application that is published in EP as a WebDynpro IView.
    Deploying the application and running as standalone (out of EP) this works fine but when I access that by EP I get JavaScript errors in DropDowns.
    I know that this error is know as an bug of SP11 but I want to know if someone obtain some answer from SAP or do anything to solve this problem.
    I already install another server with EP and WEBAS from the last SAP WEBAS installer downloaded from SAP website but the problem already persists.
    Server: WEBAS 6.40 SP11
    IDE: Version: 2.0.11
    Build id: 200503080124
    Thanks,
    Manoel

    Hi
      Refer to OSS Note no : 779659. But even in that case if you are using your own themes there are some display problems in SP11.
    In SP10 we had our own theme and we followed the OSS Note. It worked fine. When we applied the Same theme to SP11 it did not work.
    There is also another note which says that custom themes are not supported properly. I will try to give you the note number. Maybe that is a problem.
    I would advice you to try and use standard themes for your Webdynpro apps. Even if you apply the note you are not going to get proper display in case of SP11. Maybe the problem gets solved in SP12.
    regards
    ravi

  • Flash/Javascript access of USER Variables

    Hi all,
    I've searched online many many times and have made many attempts in Flash and in Captivate 4, but to no avail, and I'm wracking my brain over it. By now I've almost given up on Captivate, since what has wasted so much time could have been done in a day or so using Flash to make the entire thing. I would like to avoid that though, since this is a University project, not a personal project.
    I need to access USER created variables, both in Flash animations AND in Javascript (i.e. in the execute Javascript field under multiple actions). They need to be accessed this way since there's no default way to multiply variables or append strings of text to variables (things which as an experienced AS2 user I know should be very simple to do). Also, I want to be able to copy the contents of one (user) variable to another (system) variable later on (for LMS).
    So say I have a user defined Captivate variable called 'userPath', and on a certain slide I want to multiply it by 5 in Flash or in Javascript (just an example).
    How could I access it from Flash with AS2? (I've tried _root.userPath, _root.movie.userPath, no luck).
    How could I access it from the Javascript? (I am comfortable with programming, but don't really use Javascript, so I may be having a problem with the notation).
    Any help would be greatly appreciated, since I need to get this work done soon. Many thanks.

    Lboro SB,
    How familliar are you with AS3?  I would recommend altering the CaptivateMaintimeline.as file typically located at C:\Program Files\Adobe\Adobe Captivate 4\ActionScript 3.0.  You can write your custom functions in AS3 to do your multiplication or whatever and it will use this file to compile your Cp4 project.  Just make sure you're publishing your Cp4 project in AS3 in the project properties.  You could also add your function to the list of ExternalInterface.addCallback(... so that your function could be accessible from JavaScript.  Here's my custom function I've put in the CaptivateMaintimeline.as file:
    /JBL: For External Interface setting any type of value
            public function jim_cpSetValue(variable:String, val):void
            //myTrace("cpSetValue variable1 " + variable + " ; val  " + val);
            var arr:Array = variable.split(".");
            var ref = this;
            for(var i=0; i < arr.length -1; i++)
                ref = ref[arr[i]];
            ref[ arr[arr.length -1] ] = val; // This works fine for numbers, booleans and strings
    // JBL: adding callback to set variables in cp via JavaScript
    ExternalInterface.addCallback("jim_cpSetValue", jim_cpSetValue);
    If you want to do this in JavaScript, you need to get a reference to the Captivate main movie.  I do it like so:
        // Set objCaptivate in IE
        CaptivateObj = document.Captivate;
    Then you can call your custom function
        //JBL:  Custom Function to set Captivate Vars via Javascript
        function setCaptivateVariable(myVariable, myValue)
            CaptivateObj.jim_cpSetValue(myVariable, myValue);
        //JBL:  Shortcut function for Getting values from Captivate SWF
        function getCaptivateUserVariable(n)
            return CaptivateObj.cpGetValue(n);
    I also HIGHLY recommend a lightweight .js file by Philip Hutchison that can do much more located here.
    Good Luck,
    Jim Leichliter

  • html-el and javascript access

    Hi, I suppose this is a bit of a newbie question but I'm trying to fix a bug on code I've inherited. Basically the <html-el> tag defines the following and works fine
    <html-el:form action="saveConsumer" styleId="consumerForm" disabled="${consumerForm.formDisabled == 'true'}">
    However, there are a couple of fields on the form that call a javascript function to independently enable/disable the fields depending on which user is logged in, so I'm trying to access the value of the consumerForm.formDisabled boolean within javascript but can't seem to do so, I've tried whats below but it won't work - any help would be much appreciated!
    Thanks.
    Ray.
    <script type="text/javascript">
         function connectionPolicyToggle() {
              var element = document.getElementById('connectionPolicy');
              if (element.value == 'ALWAYS') {
                   document.getElementById('connectionThreshold').disabled='true';
                   document.getElementById('connectionFrequency').disabled='true';
              } else {
                   document.getElementById('connectionThreshold').disabled='document.consumerForm.formDisabled.value';
                   document.getElementById('connectionFrequency').disabled='document.consumerForm.formDisabled.value';
         }

    Thanks for that
    Just in case anyone else needs a simple version:
    var SlideNumber = 4;
    if(typeof window.cp === 'undefined'){
        if(SlideNumber != '') {
    document.getElementById('Captivate').cpEISetValue('m_VarHandle.cpCmndGotoSlideAndResume', SlideNumber  -1);
    }else
        if(SlideNumber != '') {
                window.cpCmndGotoSlideAndResume = SlideNumber-1;
    Thanks
    Luke

  • Javascript access to dataconnection

    Hi all,
    I have designed a dynamic form with a dataconnection that points to an XML file.
    The fields in my form are displaying the correct values from the XML file. That all goes well.
    But now, I want to set the color of some textfields depending on the value of a certain element in the XML file.
    How can I access an element from the dataconnection using javascript?
    Any ideas on the syntax I shoul use?
    regards,
    Peter Vermeule
    Belgium

    Hi,
    a (hopefully) last question:
    I have a table on my dynamic form. The binding of a textfield inside my table is as follows:
    $.element1.element2[*].element3
    The result of this is that for each element2 under element1, the value of element3 is shown in the table as a separate row.
    So far, so good.
    But now, inside the javascript attached to the textfield, I want to know the value of an attribute on element3 that is shown in the current textfield. Is this possible?
    I tried a syntax like this:
    fa.resolveNode("$record.element1.element2[*].element3.name_of_my_attribute").value
    Without success!
    thanks again for your help,
    Peter

  • Javascript - Access sub-properties of lists

    I've got a very basic problem: I want to assign a color to a
    line inside a field.
    Basically, this is all that's needed for doing this in Lingo:
    member.line [ i ] .color=color(255.128.128);
    However, a requirement for my studies is that I have to do it
    in Javascript and the dot notation doesn't work there... instead
    you use setProp... so by normal JS standards this should work:
    member.getProp("line",i).setProp("color",color(255.128.128));
    However, for some reason that I'm 100% unable to understand
    member.getProp("line",i) doesn't return an object... instead it
    returns a string!?!
    So I need a way to access nested properties directly via
    setprop... I've tried this:
    member.setProp("line["+_mouse.mouseLine+"].color",color(255,0,0));
    In the hope that Director would parse the
    "line["+_mouse.mouseLine+"].color" bit to get to the correct
    property... but sadly it doesn't.
    Any help would be VERY welcome :)

    Found the solution: You've got to use getPropRef:
    member.getProp("line",i).setPropRef("color",color(255.128.128));
    What I find really disturbing is that this is probably the
    110th method that I've found in a few forums, but not in the
    documentation... it's simply not listed and even a fulltext search
    does only provide a single half-sane result: "Choosing between
    Javascript and Lingo Syntax", the rest are functions that have
    nothing to do with properties, they just need it for their
    examples.
    I'm sorry, but you guys really have to get your act together
    documentation-wise!

  • Javascript Access to Adobe Reader Plugin

    This is more of a developer question but I thought I would give it a shot because I have yet to find any documentation.
    Does Safari have scripting access to the Adobe Reader plugin?
    The following works in IE because printWithDialog(); function is revealed to IE javascript when a PDF is embeded.
    javascript:
    var thePdf = document.getElementById("printFrame");
    thePdf.printWithDialog();
    embed in the body of the web page:
    <embed height="400" width="370" name="printFrame" id="printFrame" src="theFile.pdf" />
    Can I do something similiar in Safari?
    Thank you,
    -jscott

    Yes it does. It works on the website I support. We do it thru a javascript popwin and it loads in all browsers.

  • Bug: Built Real-Time app won't run if it accesses a typedef'ed shared variable node

    Hello,
    I finished developing a Real-Time program that uses typedef'ed (clusters and enums) networked shared variables (SVs). It works fine when I run the program in Development mode. However, when I built and deployed it as a start-up app, it refuses to start. The VI monitor in the Distributed System Manager says that the VIs that use those SV nodes (and the top-level VI that references them) have "Bad" status, and the rest are "Idle".
    To get my built program to run, I had to disconnect all the variables from the typedefs. Deleting the SV nodes made the program run too, but that's not an option.
    Has anyone else encountered this?
    Platform: LabVIEW 2012 (32-bit), NI cRIO-9076

    Yes. See the following thread.
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

Maybe you are looking for

  • How to fix error -36

    Hi, does anyone know how to fix "err=-36"? It has never happened before until suddenly it stopped working properly yesterday. The error message is err = -36 and "The disk could not be read from or written to. Please check that the connection to the n

  • Trouble submitting PDF form with Web Mail

    Hello, I have a fillable PDF form that I'm trying to submit. When I submit the form through an email client (Outlook, Mail, etc.) it works perfectly. When I try to submit using the Webmail option, I get this message: "An unknown error has occurred wh

  • Can't send texts and all my former texts are gone

    Without any warning, all my texts have been erased.  And I can't send any new ones.  I sent a text this morning without any problems.  Didn't touch the phone after that and when I tried to send another text, I couldn't.

  • OTA update - download failed. How do I restart it???

    For some reason, the download failed on my phone. Now when I try to check for the update, it says there are no new updates. However, the status says: Source: Verizon Wireless Name: 2.11.605.5 Status: Download Failed Code: 412 Is there a way to restar

  • KEPM Excel Macros

    Hi All In KEPM I have added a new characteristic to the planning level and to a layout(KE15), Using an existing parameter set which has integrated excel ticked I double clicked on the parameter set and the excel layout is shown on the right-hand side