On Mon, Jun 6, 2016 at 10:16 AM <[email protected]> wrote:
> one last thing,
>
> i am currently splitting things up like you showed which works. But is
> there actually a way to fit this all on one line if there are two string
> chunks seperated?.
>
> the problem is after the 'curve{}' there needs to be the other square
> brace ] then followed by the second string'.spans'
>
> cmds.getAttr(curves['curve{}'.format('xyz')].spans)*2+1
>
> should i just use a + inbetween ] and '.spans'
>
There is usually a way to do it all on one line, if that is your goal and
you find it readable:
cmds.getAttr("{}.spans".format(curves['curve{}'.format('xyz')]))*2+1
Do you find this readable?
Justin
>
> thanks,
> Sam
>
> --
> 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/9731b420-3b56-4d22-8201-db8e732c7068%40googlegroups.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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2DEmeSBidydEGoTTL7jGyS%2Bgge2U5Nxd0yutbn9DoZvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.