Re: OT: python question

Date : Fri, 30 Sep 2005 12:32:33 -0400
To : XSI(at)Softimage.COM
From : Rainer Schmidt <itrisk(at)gmx.net>
Subject : Re: OT: python question
Set bit 6 (32) to zero and all will be upper case..... But be sure it's a character [a..z].... or Bozo the CtrlCharClown will open his three ring circus and things become funny...

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





--- 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.