≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
scene not defined?
Posted by:
(you are not logged in)
Enter the missing letter in: "Internati?nal"
(you are not logged in)
Text:
[quote][b]domitall[/b] wrote: having a problem connecting my external copperlicht file (not copperlicht.js, but my own script) to the original html. I removed the code in the inline script tag in the generated html file from CCB and moved that to an outside script. I've also tried leaving the initialization code within the html file, and simply defining the scene from my own script, regardless of how I approach it, I get the same problem every single time. Uncaught Error: ReferenceError: scene is not defined copperlicht.js:6 (anonymous function) copperlicht.js:6 [code] var engine; engine = startCopperLichtFromFile('3darea','copperlichtdata/currentBlower.ccbjs'); return engine.ingComplete = function() { var scene; scene = engine.getScene(); [/code] I have slaved over reconfiguring this for hours, I can't access the scene at all, oddly enough [code]console.log(engine.getScene());[/code] both before AND after setting the scene, the scene var is valid [code] console.log(engine.getScene()); scene = engine.getScene(); console.log(scene); [/code] CL3D.Free3dScene [lots of data here] blowerLicht.js:7 Uncaught Error: ReferenceError: scene is not defined copperlicht.js:9 CL3D.Free3dScene [lots of data here] blowerLicht.js:9 clearly scene is there, and it's working nicely- but it's also prompting as undefined in copperlicht.js , i've tried overwriting this file with the most recent copperlicht, and republishing via coppercube... either way, same result. This doesn't happen in new projects, and seems to be an error or problem in this project- but I can't imagine why something i'm not manipulating suddenly became undefined? in the code above, the engine.ingComplete should be engine.ingComplete, for some reason, it deletes the part in the forum[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact