Форум

Сообщения, созданные пользователем l.venturi
25 февраля 2016 18:10

Ответ на сообщение пользователя Evgeny Rodygin
Hello, Laura.

I think, such API can be useful. We will add it in the next release.
As for now, you can save the node value to some container and reassign it when set_nodemat… functions are called. Not the most convenient way, but it will work.


Thank you for your reply.
I look forward to try the next release :)

Thank you all for the great development work you have done (and yo're doing) with this this great tool.
Laura
25 февраля 2016 15:12
Hi,
I'd like to know if there is a way to get the actual value of the INPUT VALUE NODE with javascript.

I am able to set this value from js using API method [m_obj.set_nodemat_value()] but I can't manage to obtain the modified value from the material to make some checks.

Can anyone help me?

Thanks in advance,
Laura
25 февраля 2016 14:47
Thank you Roman,
at the end we followed your suggestion and we manage to obtain the wanted result.

If I can, I'd like to suggest this improvement for one of the next releases: it could be very useful to control every object in the scene with a single material :)

Thanks again,
Laura
24 февраля 2016 15:35
Hi Roman,
thank you for your quick reply.

I think our question is different from Ben's one, so I will try to explain in other words our problem.
Let's say we have "cube" and "sphere", both with "plastic" material applied.
"Plastic" uses a texture node with "texture_canvas" as canvas texture.

We would like to dynamically apply "texture_canvas" to "cube" with "image source 2" and "texture_canvas" to "sphere" with "image source 2".

Is there a way to do this?

Thank you in advance,
Laura
24 февраля 2016 14:25
Hi Roman,
we are working on the same topic presented by Ben.

In particular:
we have one material(which has a canvas texture slot) applied to different objects.
We are trying to change the canvas texture source image to display different texture on the objects, without having to create different canvas texture slots.

Summing up, we would like to have different textures loaded dynamically(every object has its own) with the same material applied.
(you can find a screenshot in the attachment)

When will this feature be ready? Are you going to work on this soon?

Best regards,
Laura