Hello guys,
I’m searching for how to set the rotation of the texture before add it to the materials library.
Found some code to rotate texture when apply it on the face, like that: Is it possible to rotate textures using Ruby API? but that’s not what I’ve in mind.
My scenario is:
- Create a material with a texture with name equal an ID.
- Set an ‘dynamic_attributes’ to the element with the material id.
- There is a formula to the material attribute:
material=my_component!child_component - When the child_component receive the ID of the material, he apply this material to himself.
So, I wanna to rotate the texture image before add it to the materials library and put the name of material like ID_horizontal or ID_vertical. Then choose which one I wanna use depending of the orientantion of the component.
Is that possible?
Thanks.