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.

Get a reference to a specific Object in Scene

Home Forums Puzzles Get a reference to a specific Object in Scene

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15603
    Alby90
    Participant

    Hi guys…
    I want to make a Configurator that let me change various model (with Scene Append) and change the main texture of the object.
    I think i understand how to load an object and change textures but the problem is…how can i change the texture of the first material on the last spawned object?
    There is a way to store a reference to that object after is spawned or is possible to do something like:
    -Get all the objects
    -Foreach Objects in the scene: if THIS object has this name THEN put him in this variable.
    Maybe is a stupid question but i cant figure out. :scratch:

    #15609

    Hi,

    If you’re using Puzzles, you can reference an object simply by its name put in a Text puzzle.

    Chief 3D Verger | LinkedIn | Twitter

    #15612
    Alby90
    Participant

    Hi,
    If you’re using Puzzles, you can reference an object simply by its name put in a Text puzzle.

    Thanks … so I can simply compare the name of the object as if the variable that contains it is just a string.
    And for change the texture? The “Replace Texture” puzzle requires you to select the exact texture I want to change in the material, so how can i just change the texture in the material of an Object i just spawn?
    Thanks in advance

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