Message 1 of 1
Avoid duplicate references with cmds.file

Not applicable
06-04-2019
02:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear all,
I'm new to maya programming, writing a tool to reference alembics into scene using then group them with same alembic name.
so I'm using groupReference, then I get a group suffixed with "RNgrp" to get rid of this, Im passing group name of my own.
Now my issue is, if I try to reference same alembic again, it appends versionsup the group name like "testabc1, testabc2" . I do not want to duplicate, if the referenc exists, it should avoid referencing. I tryed dns flag and someother. I forgot which combination of flags it was 😞 Thank you for reading.
cmds.file( filename, reference=True, type="Alembic", namespace=ns[0], groupReference=True, ignoreVersion=True, dns=False, mergeNamespacesOnClash=False, groupName=versionless_abc_path )