using newTexture with javascript

Hello

I made a model in Maya and exported it to be used to the Director. Now, I want to change the texture on a part of the model with a bitmap in the library.

How can I do this using the javascript syntax?

I can't even this line working in javascript:

Member ("3D World") .newTexture ("Grass02", #fromCastMember, member (5,1))

::) Jakob

Thank you very much! Just what I needed to understand the rest. For others whith the same question, here is how to do it in javascript:

var myModel = member("3Dworld").getPropRef ('model', 6);
theTexture = member("3Dworld").newTexture ("name", symbol ("fromCastMember"), member("memberName"))
myModel.shader.texture = theTexture;

: ) J

Tags: Director

Similar Questions

  • I'm unable to use the Live View function when working with JavaScript in Dreamweaver.

    I'm currently trying to set up my own Web site with dreamweaver and am very familiar with the languages Java and JavaScript. However, whenever I try to use the Live View function it never let me. In addition, I can't get a preview of my work in a browser, as to do so is greyed out.

    However, I noticed that when using html in a project, all these functions are available. Any ideas how I can be able to use these features?

    Or perhaps you mean a .jsp file that is a Java Server Page.

    Modern web pages are almost entirely HTML code with CSS for styles and JavaScript for functionality added as games & slideshows or interactive menus.  It does not seem possible for me that you have been creating web pages entirely with JavaScript.

    Nancy O.

  • 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.

  • Download the client computer name using java or javascript

    Hi guru,.

    ... JDev 11.1.2.4.0...

    I don't have any application in the ADF and I want to get the client computer name using java or javascript. I searched on this, but I have found that this javascript method

    function getWorkstationID() {var ax = new ActiveXObject ("WScript.Network"); alert (ax.ComputerName); }

    but that use ActiveX that only work in IE with some security configurations, and I want to get the computer name of any browser client.

    Can you please help me to get the client computer name?

    Try one of these 2 ways:

          HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
          String computerName = request.getRemoteHost();
    

    or

          HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
          InetAddress i = InetAddress.getByName(request.getRemoteAddr());
          String computerName =  i.getHostName();
    
  • How to use obiee with Highcharts

    Hello

    I'm looking for a method to use obiee with Highcharts.

    Highcharts is a library of javascript to create a nice line graph and pie...

    Thank you

    Hello

    It is up to you to be able to use Highcharts since it is not related to OBIEE himself.

    You can search, what how OBIEE can pass data to your JS library.

    A simple answer, usually a narrative view to create a JS object/array and pass it the values. There are many posts online, just don't google OBIEE and Highcharts but more of OBIEE and javascript or OBIEE visualization 3 rd-party (D3js, Google chart etc: still way to do things - pass values of OBIEE in the JS code).

  • 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

    }

  • Stimulant of the button with javascript under a button in pdf format

    Hi all

    Is it possible to stimulate using acrobat javascript or javascript livecycle @under a key press button?

    For ex. I click on a button and who work as Atl + F (File menu) or win + R (run box) under windows.

    Hope this is clear.

    Thank you

    Arvind

    LiveCycle Designer uses the same JavaScript engine that Acrobat and Reader when the LiveCycle form is in PDF format. So, as stated in the form Acrobat JavaScript, the JavaScript engine and capabilities. As explained in the Acrobat JavaScript forum, JavaScript used in Acrobat or Reader is the willingness to 'sand' or very isolated from the JavaScript of your computer program. This was done to protect users of form Acrobat or Reader to run malicious code.

    It might be possible if you were writing a plugin add-on using a computer program have complied and the information provided in the Acrobat SDK kit. You must manually install this program on your system. For others to use the code, you will need to register as a developer with Adobe and have each user to install the code on their system at their own risk.

  • 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)
  • 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 change type of police using InDesign scripting (Javascript)?

    Hello

    I need to change the font type of a document, InDesign using InDesign script (javascript). I found a few online references in the InDesign scripting guide and running extract next, gives me errors.

    Delete existing preferences

    app.changeTextPreferences = NothingEnum.nothing;

    app.findTextPreferences = NothingEnum.nothing;

    app.findChangeTextOptions.caseSensitive = false;

    app.changeTextPreferences.appliedFont = app.fonts.item ("DEVANAGARI MT");

    App.Documents.Item (0) .changeText ();

    Download the msg of InDesign server.

    Error code: 1

    Error description: changeText

    The indesign file that is used to change the font is certainly not corrupt, cause the following script to export the file in .png works very well. Any help appreciated.

    app.pngExportPreferences.exportResolution = 100.0;

    App.Documents.Item (0) .exportFile (ExportFormat.PNG_FORMAT, PreviewDocument don't);

    Hello

    Try this 1-liner:

    app.documents.item(0).stories.everyItem().appliedFont = app.fonts.item("DEVANAGARI MT");
    

    Guess above specified police is available. Some disorders may begin with the name of the font, cause not always WYSIWYG.

    To be sure how to refer to a specific font by its name - a console text and notice of runing ESTK select this option:

    app.selection[0].appliedFont.name
    

    Jarek

  • 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);

  • passing the field id as arrays in detail using Jquery DA Javascript master

    Hello! IM new at the Apex and javascript. I have a problem with javascript in my application!
    I have the form master detail. in detail, I have a field 'condition_Clause' that some information on this area going to two elements on the page in another region on this page using javascript in a dynamic action based on JQUERY:

    H2. When
    Event: Get Focus
    Selection type: Jquery Selector
    jQuery Selector: input [name = "f09"] - it's "condition_Clause" field in form id
    Condition: no strings attached


    H2. Action
    Set value
    Type: Javascript
    $x_Value ("P36_FIELD_ID", 'f09_' + this.triggeringElement.id.split ('_') [1]);
    affected item: Jquery selector
    jQuery Selector: #f06 - I do not know this is good or not, + but + it works

    as you know I want to copy the id field in a table to a different field in the page: "P36_FIELD_ID".
    -------------------------------------
    now what is my problem? This code works once im works with save and retrieve documents in my form but when I try to catch some field_id after adding a new line to tabular detail , it does not work for her and affects P36_FIELD_ID null! It just does not work for new records, which are not registered!


    IM using
    Request Express 4.2.1.00.08
    Oracle DB: 11.2.0.3
    browser firefox and chrome (latest versions)

    Please help me! Thank you

    Hey Amir,

    You must define the scope of the event to the dynamic action of "dynamic".
    In this way the dynamic action will also be linked to the new lines in the form of your table.

    Kind regards
    Erik-jan

  • Get item URLS with Javascript Page

    I want to make a link to a page, passing in a variable (P99_SOMETHING) in the URL:

    f? p = xx:xx:xx:NO:P99_SOMETHING:TEST

    On the page (P99), I want to be able to access P99_SOMETHING with Javascript.

    I tried to add a page hidden page called P99_SOMETHING, but what is hidden is not filled with the TEST. Also when I try to access JavaScript with:

    Alert (' val: "+ $v ("P99_SOMETHING")");

    The alert says, but he has an empty value.

    Parameters of the Page element:

    Name = P99_SOMETHING
    Serves as a source = always, by replacing the value that exists in session state
    Type = Item (the item application or page name)
    Expression = P99_SOMETHING

    What am I missing or doing wrong?
    Using Apex 4.2

    Published by: 973239 on November 26, 2012 07:06

    Published by: 973239 on November 26, 2012 07:07

    Hello

    If I understand correctly, you set the value of P99_SOMETHING in another page in your application. In this case, the setting of page # 99 article can be modified to:
    Source used (s) = only when the current value in session state is zero
    Type = static assignment (the value corresponds to the attribute of the source)

    No need to put anything in the field of Expression.
    Can you check in 'Session' (in the developer toolbar) to ensure that the value of the element is used?
    And in your alert, try $v ('P99_SOMETHING') - apostrophes to see if there is a difference.

    Thank you
    Rohit

    Published by: jaouad khalifi on November 26, 2012 07:42

  • 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.

Maybe you are looking for