On 10/05/2015 at 08:45, xxxxxxxx wrote:
Hi to all here,
I want to find the Material-Tag which is corresponding to a polygon-selection-Tag.
From the polygon-selection-Tag i know the name of the restriction.
But now i have to find the Material-Tag in whitch the restriction is assigned.
I try to read out the restrition of a Texture-Tag.
But i did not find anything about this in the SDK.
Can anybody help me and tell me how t get the resriction?
Thanks a lot
On 10/05/2015 at 13:00, xxxxxxxx wrote:
In another script I compared all the selection tags in a list with the texturetag restriction by string.like:
TagList = op.GetTags()
SelTagList = 
if op.GetTag(c4d.Tpolygonselection) :
for x in reversed(TagList) :
if x.GetType() == c4d.Tpolygonselection:
for t in reversed(TagList) :
if t.GetType() == c4d.Ttexture:
for s in SelTagList:
if t[c4d.TEXTURETAG_RESTRICTION] == s[c4d.ID_BASELIST_NAME]:
Mat = t.GetMaterial()
Hope I could help?
On 11/05/2015 at 03:18, xxxxxxxx wrote:
thank you verry mutch!
I think this will help me to solve my problem!