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.

Accessing the movement data generated by drags

Home Forums General Questions Accessing the movement data generated by drags

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22607
    rainman
    Customer

    Hello, I would like to be able to move an object’s UV cords around using dragging. I, however, cannot seem to find how to access the values that the “When Dragged” puzzle generates. One alternative I just thought of would be to move an invisible object around with drag and then use that object’s position to change the UVs. Is there a way to change a value directly using the when dragged puzzle. (i am using Blender and moving the UVs through a value input node)

    #22613

    Hi,

    Is there a way to change a value directly using the when dragged puzzle.

    this can be done with JavaScript I think – check out the code generated by drag puzzles in your_app/visual_logic.js file

    move an invisible object around with drag and then use that object’s position to change the UVs

    Yes, I think this can be implemented with Puzzles – you should add Value nodes to your shader in order to transform the UV coordinates. Then use the get transform and set value puzzles to map your UV to the object world coordinates.

    https://www.soft8soft.com/docs/manual/en/puzzles/Objects.html#get_transform
    https://www.soft8soft.com/docs/manual/en/puzzles/Materials.html#materials_set_value

    Chief 3D Verger | LinkedIn | Twitter

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