this would capitalise the whole word. To change just the first word
investigate regular expressions. Everyone should know a bit about these,
they're dead useful.
Or, have you tried a hard slap to the back of the guilty party's head? ;)
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM
> [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Guy Rabiller
> Sent: 30-September-2005 14:21
> To: XSI(at)Softimage.COM
> Subject: Re: OT: python question
>
>
> str = 'rendertype'.capitalize()
>
> str = yourstringvariable.capitalize()
>
> --
> guy rabiller | 3d technical director (at) LaMaison
>
>
> Stefan Andersson wrote:
>
> >Hi all,
> >
> >Anyone here knows if it's possible to force python to always start a
> >word with a capitol letter when a user has entered somthing else?
> >
> >ex. "rendertype" should be "Rendertype"
> >
> >regards
> >stefan
> >
> >---
> >Unsubscribe? Mail Majordomo(at)Softimage.COM with the following
> text in body:
> >unsubscribe xsi
> >
> >
> >
> >
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following
> text in body:
> unsubscribe xsi
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi