*C:/Users/Documents/pymel.log**  rather than this 
 [u'C:/Users/Documents/pymel.log']*

why I received different result when is used cmds.fileDialog2(),
*[u'C:/Users/Documents/pymel.log']*

but I got *C:/Users/Documents/pymel.log when I used cd("*
*C:/Users/Documents/pymel.log*").

why I did not receive the same output ? one seems like list [ ] and another 
seems like string for me.. not sure.could you explain to me..?

thank you

On Tuesday, April 18, 2017 at 12:17:51 PM UTC+1, Marcus Ottosson wrote:
>
> You’re seeing a list of paths, as the dialog could return multiple paths 
> at once, if multiple paths were selected in the dialog.
>
> If you only expect one, then it’d be safe to supply an index to the result.
>
> print filePath[0]
>
> ​
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/f9bd8fd7-f8b0-4367-b00c-22860fd4b8e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to