Clean and Move Script

116 views
Skip to first unread message

Christopher.

unread,
Sep 26, 2015, 6:19:26 PM9/26/15
to Python Programming for Autodesk Maya
Hi, hopefully someone can help.  I download this tool, it's Job is to analyse the scene for all the textures then move them to a desired folder, followed by updating the texture paths.  Instead of that occurring, I get an error in the script editor that the move cannot be done because of a permission issue or path existence issue, the path to which I want the textures to be moved too have full write and read access and the folder does exist ? 

It's suppose to automate the process of moving textures, it's not doing a good Job at that, I know it's roughly a 5-10 year old script.


Justin Israel

unread,
Sep 26, 2015, 6:52:34 PM9/26/15
to Python Programming for Autodesk Maya

Can you paste any actual output of the error and traceback? It's a whole lot of MEL code on that script ;-)
Could be bad path logic or something. Or maybe you are pointing it at a link or network location that it can't handle


On Sun, 27 Sep 2015 11:19 AM Christopher. <crestchr...@gmail.com> wrote:
Hi, hopefully someone can help.  I download this tool, it's Job is to analyse the scene for all the textures then move them to a desired folder, followed by updating the texture paths.  Instead of that occurring, I get an error in the script editor that the move cannot be done because of a permission issue or path existence issue, the path to which I want the textures to be moved too have full write and read access and the folder does exist ? 

It's suppose to automate the process of moving textures, it's not doing a good Job at that, I know it's roughly a 5-10 year old script.


--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7340ad0e-b26d-4507-a204-00d1bc2f8c13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christopher.

unread,
Sep 26, 2015, 7:05:45 PM9/26/15
to Python Programming for Autodesk Maya
First I Analyse Scene File Textures, in my case I have 58 textures that point to a folder, what I don't understand first about the script is; when I toggle on the 58 textures to be selected there are listings which you can check on, once again, in my case it says;

0 of them exist
58 of them NOT exist(s) I know they exist because they are still in the folder and on my desktop ?

Moving along, I click the toggle option for the 58 textures, I then select a target directory, then click move files. This is the result;

File Texture Manager Log starts...
***************************************************************************************************************
Can_ColorLabel:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
FireKnot_Sculpt:file2:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
Guage_Spec:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
Levels_Texture:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
Paintchip:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file1:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file2:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file3:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file4:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file5:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file6:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file7:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file8:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file9:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file10:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file11:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file12:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file13:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file14:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file15:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file16:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file17:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file18:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file19:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file20:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file21:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file22:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file23:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file25:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file26:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file27:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file33:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file34:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file35:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file36:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file39:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file41:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file42:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file43:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file44:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file45:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file46:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file53:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file54:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file55:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file56:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file57:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file58:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file59:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file60:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file61:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file62:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file63:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file65:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file66:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file67:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
file69:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
p1050723_1:
WARNING: Move can NOT be done, could be permission issue or path existence issue.
***************************************************************************************************************
File Texture Manager Log ends...
***************************************************************************************************************



On Saturday, September 26, 2015 at 6:52:34 PM UTC-4, Justin Israel wrote:

Can you paste any actual output of the error and traceback? It's a whole lot of MEL code on that script ;-)
Could be bad path logic or something. Or maybe you are pointing it at a link or network location that it can't handle


On Sun, 27 Sep 2015 11:19 AM Christopher. <crestchr...@gmail.com> wrote:
Hi, hopefully someone can help.  I download this tool, it's Job is to analyse the scene for all the textures then move them to a desired folder, followed by updating the texture paths.  Instead of that occurring, I get an error in the script editor that the move cannot be done because of a permission issue or path existence issue, the path to which I want the textures to be moved too have full write and read access and the folder does exist ? 

It's suppose to automate the process of moving textures, it's not doing a good Job at that, I know it's roughly a 5-10 year old script.


--
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+unsub...@googlegroups.com.

Justin Israel

unread,
Sep 26, 2015, 10:06:27 PM9/26/15
to Python Programming for Autodesk Maya

It would be nice if the script printed the name of the path it failed to handle,  as opposed to the file node name. Are the paths in those nodes just basic absolute paths?


To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/26de5735-3a6c-42ce-ac28-2cd65f71a244%40googlegroups.com.

Crest Christopher

unread,
Sep 26, 2015, 10:37:11 PM9/26/15
to python_in...@googlegroups.com
Do you mean before I click move in the tool, does it show absolute paths ? If so, the answer is no; only relative.

Justin Israel wrote:
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/5PLHueaPxzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2u1i%2BLxvMASzji7JBn%2BHxVTR3fm9iWuJdjEY7jU6oAFQ%40mail.gmail.com.

Justin Israel

unread,
Sep 27, 2015, 12:47:21 AM9/27/15
to python_in...@googlegroups.com

No I mean the texture paths in the nodes in Maya. Are they absolute paths? Because I can see how the tool just grabs the value and asks if they exist as is.


Christopher.

unread,
Sep 27, 2015, 2:01:11 AM9/27/15
to Python Programming for Autodesk Maya
Yes, they are absolute paths.  

One thing I didn't mention; the tools Job is to change the file paths; from what I can tell, it changed the file path but the texture files themselves continue to point to the old path; basically it rearranged things, without rearranging things.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
--
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+unsub...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/5PLHueaPxzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_maya+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsub...@googlegroups.com.

Christopher.

unread,
Sep 28, 2015, 10:19:37 AM9/28/15
to Python Programming for Autodesk Maya
Justin; do you so happen to know what is wrong with the script ?

Justin Israel

unread,
Sep 28, 2015, 2:51:55 PM9/28/15
to Python Programming for Autodesk Maya

I don't. I haven't tested it. I've only glanced over it from a phone and saw that it takes paths, as is, from the file nodes.


To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
--
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_m...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/5PLHueaPxzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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_m...@googlegroups.com.

--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1449c7c3-9402-4348-b4d0-cab44c45cbda%40googlegroups.com.

Crest Christopher

unread,
Sep 28, 2015, 8:45:36 PM9/28/15
to python_in...@googlegroups.com
Sorry I don't understand, it takes the paths as they are from the file nodes, but it can't correctly move the files and update the file paths ?

Justin Israel wrote:

Justin Israel

unread,
Sep 28, 2015, 11:10:41 PM9/28/15
to python_in...@googlegroups.com
On Tue, Sep 29, 2015 at 1:45 PM Crest Christopher <crestchr...@gmail.com> wrote:
Sorry I don't understand, it takes the paths as they are from the file nodes, but it can't correctly move the files and update the file paths ?

I'm just saying that the only bit I checked out, in the source code, looked to be that is reads the value of the path from the file node and then sees if it exists. That's why I asked if it was a relative or absolute path value in the file nodes.


Crest Christopher

unread,
Sep 28, 2015, 11:25:03 PM9/28/15
to python_in...@googlegroups.com
Before running the tool, all my paths were correct and did exist, image files, everything was working.  After running the tool, the file nodes are pointing to the old directory, but the tool re-directed as I told it, to another directory.  All the paths were, what is shown in the file nodes, relative, what exactly does has gone wrong it appears as though, metaphorically speaking, the files within the file nodes are turned inside out; and the scene file nodes can't find the texture, yet the textures still exist in their old location.  I was hoping the script would move all the textures to the new directory then update the paths; without any problems.

Justin Israel wrote:

Justin Israel

unread,
Sep 29, 2015, 12:01:21 AM9/29/15
to python_in...@googlegroups.com
I can't 100% follow everything you are describing, but I get that you are saying it updated the path values in your nodes but didn't move anything on disk. Just for clarity in your description, can you expand on the following information?
  • Example value of a File nodes texture path
  • Actual filesystem source directory location of texture file
  • Value of the same File nodes texture path *after* running the tool
It obviously seems like there is a problem with that tool resolving the real location of the files on disk, so it fails to move them. Does it even create a new target directory that you requested?


Christopher.

unread,
Sep 29, 2015, 12:46:21 AM9/29/15
to Python Programming for Autodesk Maya
The file nodes are all pointing to their original location; the only thing the tool did was move or copy the files to the new location which existed prior to the move / copy.
Here is an example; one of the files for the scene existed on my desktop, the fileNode is showing the desktop location for the file, the tool has since moved the file to the new location but did not update the file path in the fileNode.  I hope that answers some of your questions ?

Justin Israel wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
--
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+unsub...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/5PLHueaPxzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_maya+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
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+unsub...@googlegroups.com.
--
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+unsub...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/5PLHueaPxzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_maya+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
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+unsub...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/5PLHueaPxzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_maya+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsub...@googlegroups.com.

Justin Israel

unread,
Sep 29, 2015, 2:08:41 AM9/29/15
to python_in...@googlegroups.com
On Tue, Sep 29, 2015 at 5:46 PM Christopher. <crestchr...@gmail.com> wrote:
The file nodes are all pointing to their original location; the only thing the tool did was move or copy the files to the new location which existed prior to the move / copy.
Here is an example; one of the files for the scene existed on my desktop, the fileNode is showing the desktop location for the file, the tool has since moved the file to the new location but did not update the file path in the fileNode.  I hope that answers some of your questions ?

Well you didn't provide any actual path info, but thats ok, because I misread your previous description, interpreting it as you saying it changed the maya nodes and didn't move anything. 
If it moved files and didn't change the maya nodes, then it obviously found the paths, had no filesystem errors, and has a bug in its logic for updating the maya file nodes.

That's about all I got, short of trying to debug someone elses 1700 line MEL script. Have you tried emailing the author?
 
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
--
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_m...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/5PLHueaPxzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
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_m...@googlegroups.com.
--
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_m...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/5PLHueaPxzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
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_m...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/5PLHueaPxzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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_m...@googlegroups.com.

--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/097c9cf3-5d44-4b91-94e2-91f0c133ab04%40googlegroups.com.

Felix Ulber

unread,
Sep 29, 2015, 5:20:08 AM9/29/15
to python_in...@googlegroups.com
Hi there,
using FileTextureManager for years now, can't live without it, also in 2016, no probs so far. But yeah, it is kind of confusing: the copy/move function just copies/move the files, you allways have to use the Set Path function in addition. Does that help?

cheers
Felix

Christopher.

unread,
Sep 29, 2015, 9:06:39 AM9/29/15
to Python Programming for Autodesk Maya
Are you saying, one should choose a target directory, then before moving or copying the files, click Set Path, followed by move or copy ? 

If so how do I update the paths after they have been moved or copied if Set Path won't work ?
...
Reply all
Reply to author
Forward
0 new messages