On 27/07/2016 at 05:45, xxxxxxxx wrote:
Suppose I have an object with multiple tags I want to select by condition (in the editor) how do I select them ?
I'm writing a simple snippet to do so :
def main() :
doc = documents.GetActiveDocument()
obj = doc.GetActiveObject(); # Get Active Object
print obj
for t in obj.GetTags() :
if (t.GetType() == 5673) : # 5673 = SelectionTag
if "ABCD" in t[c4d.ID_BASELIST_NAME] :
pass # Add code to select the tag in the editor
if __name__=='__main__':
main()
I left a pass where I don't know how to proceed.