Forum

I want to know side effect on web browser when I coding JavaScript without use API.

28 September 2018 12:56
Hi, devs.
I want to know side effect when we using blend4web library without API.
The example is here.

var cube = m_scenes.get_object_by_name("object");
var material_list = m_mat.get_materials_names(cube);
var index = cube.mat_inheritance_data.original_mat_names.indexOf("MaterialName");
cube.materials[index];


cube.mat_inheritance_data.original_mat_names.indexOf("MaterialName");

That isn't writing in Blend4web API documentation but we can run this program.
My purpose is to get material node data from a material slot and that material doesn't assign in mesh and polygons, just into a material slot.

I want to make me sure about this. Please give me some information
Thank you.
 
Please register or log in to leave a reply.