uks
09-19-2005, 11:49 AM
I'm writing a MEL-script for the following reason:
I like to collect all the texture files i used in a scene and copy them to a specific directory. (Sometimes I have more than one Texture-Dir and sometimes textures from other locations will be used). This first part works. But then I like to change the ".fileTextureName" - attribute to the new location. Now the problem:
Every time I change the path to a new directory but the same filename, nothing happens. The Attribute is still set to the original directory. If I change the filename during this process, every thing is fine - but this is not the goal.
Conclusion ;-) I like to copy linked files from one directory to another and apply the new (relative) path/filename to the link.
Maybe you have an idea that can help to solve this problem. Maybe you know somebody that can help me.
Thanks for your help,
Christian
I like to collect all the texture files i used in a scene and copy them to a specific directory. (Sometimes I have more than one Texture-Dir and sometimes textures from other locations will be used). This first part works. But then I like to change the ".fileTextureName" - attribute to the new location. Now the problem:
Every time I change the path to a new directory but the same filename, nothing happens. The Attribute is still set to the original directory. If I change the filename during this process, every thing is fine - but this is not the goal.
Conclusion ;-) I like to copy linked files from one directory to another and apply the new (relative) path/filename to the link.
Maybe you have an idea that can help to solve this problem. Maybe you know somebody that can help me.
Thanks for your help,
Christian
