Thanks, it has been very helpful of your advice.😊
-----原始邮件-----
发件人: "860323" <[email protected]>
发送时间: 2013/7/16 下午 2:58
收件人: "[email protected]" <[email protected]>
主题: Re: [Maya-Python] How can I check all file nodes by their file path?
import maya.cmds as cmds
list_file = cmds.ls(type= "file")
for iter in list_file:
print cmds.getAttr( iter+".fileTextureName")
There just print all the file path, and if you want do anythings, you should
use append() to collect the paths.
Sent from my iPhone
On 2013-7-15, at 22:19, 郭金锋 <[email protected]> wrote:
> Hey guys,
> Help!
> I want to write a script to check all file nodes in a scene file by checking
> their file path. e.g. imageName of a blinn shader.
> I thought that I should select file nodes in the first place, and store them
> in different variables to process, but I couldn't figure out how to select
> file nodes,:(.
>
> ps, the script is used to check whether any path name included in a scene
> file contains Chinese characters.
>
> Thanks, :)
> Jerry from China
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
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/csL_IC8lDGw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.