Forum Replies Created
-
AuthorPosts
-
ilyabogomolov
ParticipantYou right! Big thanks!
ilyabogomolov
ParticipantI mean “var camera = app.scene.getObjectByName(‘CamMain’);
If i don’t do this, then i always get error “camera is not defined” and it works this way with all variablesilyabogomolov
ParticipantThank you very much man, your tip helped!
This piece of code works! Finally i made a little step forward in my attempt.One more question, is there a way to declade variable globaly, so i don’t need to write it in every “exec script” puzzle?
Attachments:
You must be logged in to view attached files.ilyabogomolov
ParticipantThank you once again, i am pure noob at JS, just know some basic html/css, my current app is a mess because i try to implement some features. Can i have your email or any other contact so i can send it?
ilyabogomolov
ParticipantHello, thank you for reply.
I made tests with simpleconsole.Log("Hello, World!");
I have tried your suggestion and find out that if i put my code into
runCode(app)
it will run it once the app is loaded, this is not what i exactly wanted.On the other hand, if i put it in
prepareExternalInterface(app)
function, i can then access it on demand with the puzzle that i have shown in screen1 attachment, in my case – on event of click for an annotation. So with simpleconsole.Log("Hello, World!");
everything works.The problem now lays in my code i think. I have two guesses.
First one: becuase i put the code straight in
prepareExternalInterface(app)
function, it can’t access my Custom_UI.html file to get elements by their respective class names and so it can’t declare variables and that’s why it doesn’t work.Second: it doesn’t work because this script is used for multiple elements, and if i am trying to call this script, it doesn’t know what modal i would like to pop up
I will continue to look for the desicion
-
This reply was modified 2 months ago by
ilyabogomolov.
ilyabogomolov
ParticipantThanks for your advice, i will try out what you said.
About necesserity of those lines – honestly i don’t know, it just works and so i use it, i understand how it works in general, but can’t tell if it can work without them or not.
I believe they are needed to work with multiple instances of modal windows, that is why it increments – to apply code for every instance
upd1:
I made tests with simpleconsole.log('Hello, World!');
command
I tried what you suggested and find out that it will run this code instantly once the application is loaded.On the other hand, if i put my code inside of
function prepareExternalInterface(app) {}
i then successfully called my function on demand, in my case – on event of click on annotation with the simple puzzle that was shown in “screen1” attachment.So i put my code into
function prepareExternalInterface(app) {}
And it doesn’t work, i guess the problem now lays in my code, since it needs variables to run but since i put the script simply infunction prepareExternalInterface(app) {}
it can’t get elements by their respective class from my Custom_UI.html in order to declare? Or maybe it’s because i don’t specify what exactly modal i want to open, so i need to remake the script?Sorry for long text, i am just lost at this moment
-
This reply was modified 2 months ago by
ilyabogomolov.
-
This reply was modified 2 months ago by
ilyabogomolov.
-
This reply was modified 2 months ago by
ilyabogomolov.
ilyabogomolov
ParticipantThank you for the reply. I am kinda have some expertise in 3d modelling and texturing since it’s my main hobby and job direction!
I thought that i have checked everything, but somehow i missed the “Alpha Blend” option, instead i used “Alpha Hashed”, thanks to your message, i did check everything you mentioned and did find out what was causing the problem!
Now i’ll have a better ground placeholder instead of simply using ugly box-like mesh with texture that i previously used, thank you very much my friend!
-
This reply was modified 2 months, 3 weeks ago by
ilyabogomolov.
-
This reply was modified 2 months, 3 weeks ago by
ilyabogomolov.
Attachments:
You must be logged in to view attached files.ilyabogomolov
ParticipantSadly i don’t have one. Then i’ll do them again, that’s a good opportunity to make even better UI and logic!
Thank your for an answer
ilyabogomolov
ParticipantThen why the teacher’s html file in app manager changed to the one that he just created with webflow?
Sorry if i ask dumb question but i just still don’t get it.
-
This reply was modified 2 months ago by
-
AuthorPosts