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.

Pulling value from color picker

Home Forums Puzzles Pulling value from color picker

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #29898
    cameronm125
    Participant

    I’ve never worked with code before but I got this color picker into my Webflow project along with my Verge app. I’m trying to take the hex output from the picker and use it for a color value in my material however, I’m not sure how to go about setting up the puzzles.

    #29976

    Hi,

    The picker color value can be obtained by get attr puzzle.

    Then you can check ‘CSS color’ in the set color puzzle and use the obtained color value with it.

    Attachments:
    You must be logged in to view attached files.

    Chief 3D Verger | LinkedIn | Twitter

    #30065
    cameronm125
    Participant

    Hi,
    The picker color value can be obtained by get attr puzzle.
    Then you can check ‘CSS color’ in the set color puzzle and use the obtained color value with it.

    I tried “myID” in the element slot and had no luck. I tried “Picker” because that’s what I believe it’s named in webflow but no luck either.

    #30090

    from your screenshot I can see that the id is “hex”

    Chief 3D Verger | LinkedIn | Twitter

    #30110
    cameronm125
    Participant

    Still nothing. Am I missing something like an ‘On Event Of’ puzzle?

    #30112
    cameronm125
    Participant

    Not sure if this will help but here’s the webflow project:
    https://camerons-awesome-project-f4e770.webflow.io/

    #30113
    cameronm125
    Participant

    Here’s the link if that helps:
    https://camerons-awesome-project-f4e770.webflow(.)io

    #30132

    it looks like your main html page is hosted on Webflow, while the 3d app is hosted on Verge3D network.
    due to security policy, such the setup won’t work.
    please consider hosting everything on the same domain

    Chief 3D Verger | LinkedIn | Twitter

    #30159
    cameronm125
    Participant

    I exported the code from webflow into my project and when I launch my app the color picker works but it still won’t affect my materials. Here is a link to the zipped project file (the puzzles will be incorrect, I was messing around trying different things):
    https://www.dropbox.com/sh/jrqrcu7tdm0tdoy/AAAxFU4ozml8jGMn3QyTJRAMa?dl=0

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