This is a string within a list...you access by index and you have your
string.
Loop:
for x in dirnames[:]:
print x
or just get this value only:
dirnames[:][0]
On Thu, May 11, 2017 at 4:24 PM, gnn <[email protected]> wrote:
> Hello world!
> I'd like to convert this result:
> dirnames[:]
> #RESULT: ['FolderName']
> to a string:
> #RESULT: FolderName
> to use it in a path...
> any idea is welcome :)
>
> --
> 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/6388293c-15de-451e-856d-
> 96e65d69828c%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/6388293c-15de-451e-856d-96e65d69828c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Russel Rehmund
[email protected]
www.the3daddict.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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CABGnDPSvmn9zayQhh6R77K0ELDso8r8dH6zg9u-fjtxwkmzxMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.