How to access files in computer drives using maya scripting(python)

How to access files in computer drives using maya scripting(python)

Anonymous
Not applicable
874 Views
2 Replies
Message 1 of 3

How to access files in computer drives using maya scripting(python)

Anonymous
Not applicable

Hai guys,

Can anyone tell me how to access files in computer drives directly from maya using scripting(python) and how can we give dynamic inputs in maya scripting(python) 

0 Likes
Accepted solutions (1)
875 Views
2 Replies
Replies (2)
Message 2 of 3

mcw0
Advisor
Advisor
Accepted solution

path = "C:\Users\user\Documents\maya\projects\default\scenes"
results = cmds.getFileList( folder=path, filespec="*.mb" )
print results

Message 3 of 3

Anonymous
Not applicable

Thank you

0 Likes