We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Uncaught ReferenceError: appInstance is not defined

Home Forums Programming Uncaught ReferenceError: appInstance is not defined

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #49776
    tgleason
    Participant

    Hi,

    I’m trying to write JS code to change my material color. I know that I need to use the function setMaterialColor().

    I added the function to my app.js file. I thought it should already be included by the puzzles, but I manually added it. This function then depends on a var called appInstance.

    How do I make this available to my app.js file?

    thank you,
    Tom

    #49777
    tgleason
    Participant

    Similarly, I’m trying to use this function and I don’t know why it’s not already available…

    Uncaught ReferenceError: Vector4 is not defined

    #49803
    tgleason
    Participant

    Sorry to bother anyone, but it seems to help me break through a problem by posting on a forum even if I don’t get any answers. Maybe it’s easier to see that I’m looking at things wrong or asking a silly question that way.

    Well, I was thinking that I would HAVE to code because I couldn’t figure out how to do certain things in Puzzles. Then I went back and looked at the examples and realized there MUST be a way. Once I figured out how the Puzzles work, I’m impressed with how flexible they can be. Still moving forward nicely with my prototype, Thanks!

    #49813

    sorry for not replying earlier.

    yes you can do most things with the puzzles alone.

    for using JS with Verge3D, see this doc https://www.soft8soft.com/docs/manual/en/introduction/Using-JavaScript.html

    Chief 3D Verger | LinkedIn | Twitter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.