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.

Puzzles control Input Node?

Home Forums Puzzles Puzzles control Input Node?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #5681
    Pepper KUN
    Customer

    Hi, I wondering is there any way to control specific input node by puzzles or JavaScript code? I’d like to make a bar with custom height set by user. I know it is difficult to do that for now. Will this feature be supported in future? How can I change specific value in GLTF by using JavaScript? I search it on net but get nothing. :mail:

    Noob on blender and any other things.

    #5682
    Pepper KUN
    Customer

    My bar is a percentage circle like below. For now I can only animate it rather than let it custom by user.
    null

    Noob on blender and any other things.

    #5685
    Pepper KUN
    Customer

    Here is my Material Node.
    null

    Noob on blender and any other things.

    #5688

    Hi, I wondering is there any way to control specific input node by puzzles or JavaScript code?

    You can animate a value node, as you already did and use a Play Animation puzzle to start it or a Set Keyframe puzzle to set a specific position of animation.

    Co-founder and lead graphics specialist at Soft8Soft.

    #5693
    Pepper KUN
    Customer

    Thx,but what about with color animation. The color of circle can be changed . I’d like to have a blue circle in 80 percent, a red circle in 10 percent and a yellow circle also in 80 percent. how to achieve this in one material? :mail:

    Noob on blender and any other things.

    #5694

    I’d like to have a blue circle in 80 percent, a red circle in 10 percent and a yellow circle also in 80 percent.

    I dont know what you mean under to have in 80 precentagee yellow nad red at the same time, but I created an example for you may be it’ll help.

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

    Co-founder and lead graphics specialist at Soft8Soft.

    #5697
    Pepper KUN
    Customer

    what I mean is separating two kind of input node. The web user can custom the progress and the color of the percentage circle. User can’t custom the color and the percentage of the circle separately if I use animation clip.
    null

    Noob on blender and any other things.

    #5700

    what I mean is separating two kind of input node. The web user can custom the progress and the color of the percentage circle. User can’t custom the color and the percentage of the circle if I use animation clip.

    Sorry, but there’s no way yet to separate this processes.

    Co-founder and lead graphics specialist at Soft8Soft.

    #5702
    Pepper KUN
    Customer

    Any way changing it with JavaScript? I can see the input value in my GLTF file. however I can’t change this value with responsive way. :scratch:

    Noob on blender and any other things.

    #5703
    Pepper KUN
    Customer

    here is my blender file.

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

    Noob on blender and any other things.

    #5705
    Pepper KUN
    Customer

    .

    Noob on blender and any other things.

    #5719

    Any way changing it with JavaScript? I can see the input value in my GLTF file. however I can’t change this value with responsive way.

    Yes you can do it. Something like this:

    
        var object = app.scene.getObjectByName("Circle");
        var mat = object.material;
        var index = mat.nodeValueMap['Value.001'];
        mat.nodeValue[index] = 0.5; // new value
    
    

    Chief 3D Verger | LinkedIn | Twitter

    #5723
    Pepper KUN
    Customer

    Thank you Yuri. :)

    Noob on blender and any other things.

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