Assign materialTagIndex to Polygon
Hi folks,
using C3D for physics visualization I would like to make a master polygonobject and then create copies of this object, varying some of its properties (angle for example, to create a mechanical wave).
Now, adapting tg_jp's "point-array" script, I was able to create such a wave. However, I cannot color the master and produce equally colored copies - I did not find any method to set the materialTagIndex of a polygon - it seems to be readonly.
Yes, I could strictly assign the first color to polygon selection 1, second to selection 2 and so on and then use "setActivePolygonSelection"
and "setPolygonSelection", as shown again by tg-jp in "Random Array".
But in my case that's not handy - I can't create selection groups, just when needed - I have to really plan everything.
Any idea, any point I missed?
Hi folks,
using C3D for physics visualization I would like to make a master polygonobject and then create copies of this object, varying some of its properties (angle for example, to create a mechanical wave).
Now, adapting tg_jp's "point-array" script, I was able to create such a wave. However, I cannot color the master and produce equally colored copies - I did not find any method to set the materialTagIndex of a polygon - it seems to be readonly.
Yes, I could strictly assign the first color to polygon selection 1, second to selection 2 and so on and then use "setActivePolygonSelection"
and "setPolygonSelection", as shown again by tg-jp in "Random Array".
But in my case that's not handy - I can't create selection groups, just when needed - I have to really plan everything.
Any idea, any point I missed?