- This topic has 12 replies, 3 voices, and was last updated 6 years, 5 months ago by Pepper KUN.
-
AuthorPosts
-
2018-07-13 at 1:55 am #5681Pepper KUNCustomer
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.
Noob on blender and any other things.
2018-07-13 at 2:45 am #5682Pepper KUNCustomerMy bar is a percentage circle like below. For now I can only animate it rather than let it custom by user.
Noob on blender and any other things.
2018-07-13 at 2:48 am #5685Pepper KUNCustomerHere is my Material Node.
Noob on blender and any other things.
2018-07-13 at 7:17 am #5688Mikhail LuzyaninStaffHi, 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.
2018-07-13 at 9:56 am #5693Pepper KUNCustomerThx,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?
Noob on blender and any other things.
2018-07-13 at 10:08 am #5694Mikhail LuzyaninStaffI’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.
2018-07-13 at 10:41 am #5697Pepper KUNCustomerwhat 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.
Noob on blender and any other things.
2018-07-13 at 10:43 am #5700Mikhail LuzyaninStaffwhat 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.
2018-07-13 at 10:51 am #5702Pepper KUNCustomerAny 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.
Noob on blender and any other things.
2018-07-13 at 10:58 am #5703Pepper KUNCustomerhere is my blender file.
Attachments:
You must be logged in to view attached files.Noob on blender and any other things.
2018-07-13 at 11:01 am #5705Pepper KUNCustomer.
Noob on blender and any other things.
2018-07-13 at 2:58 pm #5719Yuri KovelenovStaffAny 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
2018-07-13 at 5:11 pm #5723Pepper KUNCustomerThank you Yuri. :)
Noob on blender and any other things.
-
AuthorPosts
- You must be logged in to reply to this topic.