[Maya-MEL] Clean edits from a single attribute on a referenced node

Hi,

Wondered if anyone here might be able to help me with this.

Does anyone know a nice way to clean edits from a single attribute on a referenced node?

Failing a nice solution I’d be interested to hear about any dirty hacks that work. e.g. something like save all edits, clean all edits and then load all the edits back except one… ( I’m really hoping someone can suggest a nicer solution than that though :D: )

Thanks for any help.

Edit: Hah! Typical. I think I may just have found my solution. “referenceEdit -removeEdits” seems to allow you to specify an attribute to clean edits from. Didn’t see this at first because I was looking at “file -cleanReference” thinking it had to be done through that somehow… Oh well.

Stupid first post but I’m still glad to be here :slight_smile:

So I also thought I’d found the solution with this command and I have been trying to run this

unload reference
referenceEdit -removeEdits fullPath;

to no avail. I can even use referenceQuery to show me the references changes so I know the path works on further reading of the documentation I’m a little confused as to how one would clean a specific node and not the entire reference. If you could shed some light on this I’d appreciate it. Thanks.
Benjamin.

Edit: Okay so the command works its just poorly documented. A flag that they use in the examples isn’t documented weird. Anyway so now what I’m attempting to do is tokenize that return somehow which is proving tricky since I need the command and the objects but not the flags if I have any hope of piping these values back in the remove edits command. I’m sure I’ll get it eventually for the time being I have more important things to attend to.