Thanks ! This linked me to http://forums.cgsociety.org/showthread.php?t=968717 Which is precisely what I needed.
cheers -michal On Wednesday, November 29, 2017 at 7:40:38 PM UTC+1, Robert White wrote: > > > MSceneMessage.addCheckFileCallback with kBeforeLoadReferenceCheck should > get you what you want. > > You'll get a reference to the file object before the reference has been > loaded, and you should be able to tweak and update the file paths from > there. > I've used this in the past to fix issues where some machines were > replacing environment variables with the full path. > >> >> -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2f49d523-4ff6-4c4c-ba58-8afe393b1a31%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.