Visibility of scene with javascript

Hello

, I create a pdf document, creating a scene of u3d. The scene contains two objects in scene, one with a visibility FRONT only and the other with a REAR visibility only (essentially the same as openGLs front and back of slaughter). If I manipulate not nodes in scene with javascript, everything works correctly, i.e. for the first object only its front is drawn and the second object only the rear side is drawn.

However, if I use javascript to hide the objects in the scene and show them once again, each object is drawn with two visible sides (front and back). In my JavaScript code, I use the attribute .visible among the objects in the scene, which is a Boolean value according to the JS notes 3D API reference (e.g. scnobj.visible = true/false to show/hide)

This is expected behavior? Can I control the visibility FRONT and BACK of my objects in scene with javascript somehow?

Thank you!

Dear Dave,

Thank you very much prompt response. Deletion of the declaration of scene.renderDoubleSided = true did the trick. It seems that I put it by accident all fooling with js some time ago.

He now works as expected.

Tags: Acrobat

Similar Questions

  • Expand the scene with Javascript

    I've got Javascript expanding at the height of swfobject (here), but the height real scene flash is stuck to 60px banner. What is involved in the evolution of the height of the stage?

    Listen to Event.RESIZE on the instance of the step:

    stage.addEventListener (Event.RESIZE, resizeHandler);

    function resizeHandler(e:Event):void {}

    trace (stage.stageHeight);

    }

  • ColdFusion with JavaScript timer

    Hello ~

    I use a JavaScript timer on a .cfm page. So far, everything works, but what I want to do is, when the time reaches zero, a button appears on the page. At present, the work of timer, but when it gets to zero, nothing happens right here. This whole .cfm page serves as an inclusion in another .cfm page. I'm not very familiar with Javascript, so I would be grateful for any suggestion. Thank you!

    < cfoutput >

    < cfset totalSeconds = #currentTopicTime # >

    < cfset totalMinutes = Int(#totalSeconds#/60) >
    < cfset remainingSeconds = #totalSeconds # MOD 60 >

    < script type = "text/javascript" >
    var minutes = #totalMinutes #;
    seconds var #remainingSeconds = #;

    function countDown() {}
    reduction of the
    seconds;
    If (seconds ==-01) {}
    seconds = 59;
    minutes = minutes - 1;
    } else {}
    minutes = minutes;
    }
    If (seconds < = 9) {seconds = '0' + seconds ;}}
    time = "you must see this page for #totalMinutes # minutes < cfif remainingSeconds NEQ 0 > and < cfif remainingSeconds LTE 9 > 0 < / cfif > #remainingSeconds # seconds < / cfif >.» < br / > you have "+ (" minutes < = 9? ")" 0 "(+ minutes: minutes) +" minutes and "+ seconds +" seconds remaining. < br / > please read this page until the timer reaches 0. < br / > please DO NOT refresh this page & mdash; This will restart the timer! » ;
    If (document.getElementById) {document.getElementById('theTime').innerHTML = time ;}
    SD = Window.setTimeout ("countDown ();', 1000");
    If (minutes == '00' & & seconds == '00') {seconds = '00'; window.clearTimeout (SD) ;}
    }

    function addLoadEvent (func) {}
    var oldonload = window.onload;
    If (typeof window.onload! = 'function') {}
    Window.OnLoad = func;
    } else {}
    Window.OnLoad = function() {}
    If {(oldonload)
    oldonload();
    }
    Func();
    }
    }
    }

    {addLoadEvent (function ()}
    countDown();
    });
    < /script >

    < hr style = "margin-bottom: 3px;" margin-top: 3px; Width: 90%; "/ >
    < id p "theTime" = class = "timeClass" > < / p >

    < / cfoutput >

    When the time-out is reached the code does nothing special. You must

    show the button right there (my example assumes the visibility of)

    the button is set to hidden, to adapt to your own situation):

    if (minutes == '00' && seconds == '00') {  window.clearTimeout(SD);
    document.getElementById("id_of_your_button").style.visibility = ''; }
    

    Mack

  • Is no longer able to view live on Alexei_tchernomor even content with javascript active.

    I had no problems until recently - has always been able to view their videos. I never had installed oracle java plug-in, but had javascript activated via subject: config and everything worked properly. Now, I am unable to view the videos on the site with javascript active. I use noscript and java is enabled in the options for this site. Any help would be appreciated. I have the site enabled in my firewall.

    I'm glad that you found the help page because I wasn't going to be able to answer that one.

  • Is it possible to work with JavaScript in JUST ONE TAB and not on others

    I usually browse websites with javascript is disabled. But sites like facebook and youtube need javascript. So what I really want is to just run these sites on legs with active javascript and run the other tabs without it.

    Try noscript. It can be a pain to get the installer at the beginning because you need allow all areas that you want to allow JavaScript for, but that market either tabs or windows.

    https://addons.Mozilla.org/en-us/Firefox/addon/NoScript/

  • How to change rootIndexPath with javascript

    I wish I could change the value of rootIndexPath with javascript. Is this possible?

    I can see the value of rootIndexPath with

    {Label

    text: "" root path Index: "+ listview.rootIndexPath ;}"

    but I can't change the value. Here's the code I'm trying to fix

    example:

    Button {}
    text: 'run '.
    onClicked: {}
    listview.rootIndexPath = 1;
    } //end onClicked

    } //end button

    {To ListView
    rootIndexPath: [2]
    ID: listview
    dataModel: {XmlDataModel}
    Source: "simplelist.xml".
    } //end dataModel

    } //end listview

    Have you tried with:

    listview.rootIndexPath=[1];
    

    Alternatively, tou can try with:

    var tmp = rootIndexPath;
    tmp[0] = 1;
    rootIndexPath = tmp;
    

    or maybe with:

    listview.setRootIndexPath( [1] );
    

    Let me know

  • ADF - image source Set with JavaScript

    Hello.

    I have a layout grid panel with multiple lines and cells.

    Each cell contains a text and a picture, all surrounded by a command binding.

    My output text have the value #{MyBean.valueMyBean}

    My image have the source /directory1/directory2 / # {MyBean.valueMyBean} .jpg

    What I want is that whenever I click on that image, image and its corresponding output text takes the same value (simulating the selected item)

    I want to do with JavaScript, because when I do it with partial triggers there is a delay, and it does not work for the needs.

    Could you help me put who implemented?

    I don't have an idea to change the source of an image with JavaScript.

    You can join af:clientListener for the image and call the javascript function that will be:

    -find the component target, something like: var targetImg = AdfPage.PAGE.findComponent (clientId);

    -change the property 'source', something like: targetImg.setSource ("new source");

    Here you can find more information about adf api client-side: http://docs.oracle.com/cd/E24382_01/web.1112/e16181/af_arch.htm#ADFUI10042

    Dario

  • Client with JavaScript listener, surrounded by a button have a delay

    Hello.

    I have a fragment page (jsff) with a resulting keypad buttons surrounded by a client listener that calls a java script function; whenever I click on a number it refresh a text with the concatenated value input. I've implemented with JavaScript. Why with JavaScript? Because of the delay using partial triggers showing the value in the input text.

    When I test it on the server, it works fine. I click on each button and have a little late, but it works for the needs to develop.

    Now, when I insert this fragment inside an another jsff which include several elements, the result is not the same. I click every button and the value is displayed in the text of entry very fast, but the I clicked on the button takes between one and two seconds to recharge for summer clicked again. I don't understand what is happening.

    Could someone help me?


    Thank you very much.

    Probably you always spread the event on the server. You can easily check this with a browser like Firefox/Firebug plugin, sent to see if there is no request for the server.

    Normally, you will need to explicitly cancel the event to propagate to the server. For example, if you have a clientListener on a button, you do something like below:

    function showPopupFromAction(actionEvent)
    {
      actionEvent.cancel();
    //your logic here

    }

  • Is it possible with javascript to compile the data entered by the user in an easy format to excel?

    I have a form in which the user enters several lines of data as well as additional information on these data.  I would like finally to export data, so I can manipulate the Excel.  This is possible because javascript (or otherwise)?  Here is an example of what I mean.

    The form of a table in which the user enters each of the names of his friend, their favorite color and their age.  I want the name of the specific friend linked to their favorite color and age so when I export to excel I can see how many friends has the user whose favorite color is red.

    If the form data would be as follows:

    Friend1name

    Friend2name

    Friend3name

    Friend1color

    Friend2color

    Friend3color

    Friend1age

    Friend2age

    Friend3age

    When I export the data as entered above, the results of each field in another column.

    Anyone has any ideas for that?

    It is possible with JavaScript. You can write the data to the JavaScript console and then copy & paste into Excel, or write to a file as an attachment (aka data object) and export it. Here's a sample script that writes the field data in the JavaScript console:

    Table of domain names

    Invoke the var = ['Friend1name', 'Friend2name', 'Friend3name', 'Friend1color', 'Friend2color', 'Friend3color', 'Friend1age', 'Friend2age', 'Friend3age'];

    Browse the fields and write the field values in the console

    for (var i = 0; i)< afields.length;="" i="" +="1)">

    Console.println (getField(aFields[i]).valueAsString);

    }

    Display console

    Console.Show ();

    You can place this code in the mouse event to the top of a button and click the button to run it. This last line of code displays the console and you will be able to copy & paste the data.

  • I'm trying to generate an arithmetic and geometric series/sequence with JavaScript.

    I try to generate an average arithmetic and geometric
    series/sequence with JavaScript. The thing that makes this challenge is that
    I use user input to determine the parts of the formula that I use for
    generate each sequence. I tried running the formulas, but I learned that I was
    channels running through them and not numbers. How to generate my
    sequences/series and always use user input? PS, here's my formulas: (a1-East
    first term, d and r are difference/ratio, and n is the n-th term)

    1.) a1 + d * n  

    2.)a1 * r^n

    Entry user of a form is always a string. There are several ways to convert a string to a number in JavaScript:

    • Pass it as an argument to Number()
    • Pass it as an argument to parseInt() (for an integer)
    • Pass it as an argument to parseFloat() (for a floating-point number)
  • Text form field properties: access with Javascript?

    Hello

    I wonder if it is possible to access all of the properties of text form field with Javascript.

    The basic game is available under the domain object, but I'm looking for the other stuff that does not specifically exist for the fields of rich text, such as the properties of next paragraph:

    Dashes (left and right, withdrawal, first to the first line indent), the vertical alignment (top, bottom, middle), space above and below and attack (line spacing).

    All this is available if you place your cursor in a rich text field and press Ctrl-E to open text form field properties, then click on "More".

    So I wonder if it is also accessible via JS, because I can't find anything in the documentation on the subject.

    Thanks much for any help!

    Ariel

    Some properties of rich text are available, but not those you mentioned.

    I'm afraid.

    Study of the Span object to find out which ones are.

  • Recently I install Adobe Pagemaker 7.0, but it is not my system hindi font visible just like the series Devi ismayl, KBC Serise etc. these fonts are is visible and working with Adobe photoshop, corel, office etc. and works well. Veuileez solve this proble

    Recently I install Adobe Pagemaker 7.0, but it is not my system hindi font visible just like the series Devi ismayl, KBC Serise etc. these fonts are is visible and working with Adobe photoshop, corel, office etc. and works well. Veuileez solve this problem as soon as possible.

    Can you also please check whether this version is still appropriate for your operating system?

    See: Adobe - Pagemaker 7: System requirements

    The system configuration required

    Windows

    • Microsoft® Windows NT® 4.0 with Service Pack 6, Windows® 2000 Professional with Service Pack 2, Windows XP Professional or home edition

    It is not recommended to run this software on any Mac modern like Windows 7 or 10.

    Good luck!

  • Customers able to avoid paying shipping with Javascript disabled

    A customer has reported customers in full case without paying shipping costs.  The site uses USPS to calculate shipping costs.

    The following code is used in the basket of a user to calculate shipping costs {tag_shippingoptions, false, ShipToSingleCountry, US, false, false}

    I spent a test with Javascript disabled command and has been able to bypass the selection of one of the values of shipment required as a result of no value showing actually.  Is there a job recommended around this option to prevent users from manipulating the system to avoid shipping charges?

    Thank you!

    You can hide the payment button if javascript is disabled, and replace it with a message that javascript must be activated at the cash register. Not the best solution, but it works.

  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to create bookmarks with javascript?

    Hello!

    I have a question about the creation of boomarks with javascript.

    I use the following line to create bookmarks:

    this.bookmarkRoot.createChild (words [i], ' pageNum = one "" ");


    The problem is that the bookmarks are created but all lead to the same page.

    Get the complete code:

    / Put the title of the script here.

    var string2 = [];

    string2 = "Word, example; test. "

    Var words = words.split(";");

    var N = words.length;

    for (i = 0; i < N; i ++) {}

    pageArray var = [];

    var string = words [i];

    for (variety p = 0; p < this.numPages; p ++) {}

    for (var n = 0; n < this.getPageNumWords (p); n ++) {}

    If (this.getPageNthWord (p, n) is {words [i]})

    pageArray.push (p);

    a = pageArray [0];

    this.bookmarkRoot.createChild (words [i], ' pageNum = one "" ");

    break;

    }

    }

    }

    }

    Any help is very appreciated!

    It seems that the variable a is useless and only one line:

    this.bookmarkRoot.createChild (words [i], 'pageNum = "+ p);

Maybe you are looking for