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.

Input color to change a Verge3D material color

Home Forums Programming Input color to change a Verge3D material color

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15866
    yasse
    Customer

    Hello :)

    Hope you doing great, I’m wondering if there any possibility to link a color input to change a Verge3D Material base color like in fine_wood in the Material pack.

    <input type=”color” id=”head” name=”head”
    value=”#e66465″>
    <label for=”head”>Head</label>

    Is there any way to do this, please ? or someone faced this before?

    #15874

    Hi,

    Yes, you can retrieve the value of a color input element using the get attribute / value puzzle. It will output a text value, which you then need to convert to R, G, B numeric values (with Number puzzles or JavaScript) in order to supply them to the material using set color puzzle.

    Chief 3D Verger | LinkedIn | Twitter

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