Ask a Question related to Macromedia Director 3D, Design and Development.
-
Jakob Wagner #1
using newTexture with javascript
Hi,
I've made a model in Maya and exported it for use in Director. Now I would
like to shift the texture on a part of the model with a bitmap I have in the
libary.
How can I do that using javascript syntax???
I can't even get this line working in javascript:
member("3D World").newTexture("Grass02",#fromCastMember,membe r(5,1))
: ) Jakob
Jakob Wagner Guest
-
newTexture errors?!
I am creating an overlay in my 3d scene using newTexture. It works fine in Director, but when I publish it and run it in Shockwave, I get the error... -
Include javascript in a javascript file
Hello, Is there a way to include a javascript file from WITHIN a javascript file? Something similar as in the "#include" directive in C++? ... -
output text in control location; calling control javascript from page javascript
Hi; If you don't know, I'm just learning javascript and aspnet, but I have a pretty good grounding in windows programming. I'm trying to build a... -
JavaScript - How do you add an action to the JavaScript action menu
Greetings, I'd like to add custom script(s) to the drop down list of actions in Acrobat. We are creating an app where many authors will be... -
need javascript staff (anyone who knows javascript peroid) (READ)
hey its me ultimategamerx and im back in some clothes lol i need some people who know java script i need help please reply if ya know some -
Ex Malterra #2
Re: using newTexture with javascript
syntax for symbols in js is
symbol("whateverSymbol")
so try
member("3D World").newTexture("Grass02",symbol("fromCastMembe r),member(5,1))
Ex Malterra Guest
-
Jakob Wagner #3
Re: using newTexture with javascript
Thanks a lot! Just what I needed to figure the rest out. For others whith the
same issue, 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
Jakob Wagner Guest



Reply With Quote

