Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Item3D / mesh : restore original effect after it has been altered?

    QML and Qt Quick
    1
    1
    1542
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      billouparis last edited by

      Hello I have this Item3D i want to be able to dynamically change its effect. First I want to display the standard effect already coded inside the mesh file itself. After a certain time/action I want to update the effect to something I would set up. Then after another period of time I want to come back to the original effect described in the mesh file:
      @
      Item3D {
      id: my3DItem
      mesh: "blahblah";
      }

      onSomeEvent1 {
      my3DItem.effect = Effect { color: "red"}
      }

      onSomeEvent2 {
      // here I want my mesh to restore its original effect/ clear the red color on it
      //what do I have to write here?
      }

      @

      Thank you,
      Bill

      1 Reply Last reply Reply Quote 0
      • First post
        Last post