Re: OT: python question

Date : Fri, 30 Sep 2005 18:29:01 +0200
To : XSI(at)Softimage.COM
From : Guy Rabiller <guy(at)alamaison.fr>
Subject : Re: OT: python question

No, it would capitalize the first letter only. -- guy rabiller | 3d technical director (at) LaMaison


kim aldis wrote:

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


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.