Re: Scripting - finding user name

Date : Thu, 24 May 2007 13:06:06 +0100
To : XSI(at)Softimage.COM
From : squid <squid(at)3d-palace.com>
Subject : Re: Scripting - finding user name
try a line feed isntead of a carriage return

set  oA = ActiveSceneRoot.AddProperty( "Annotation" , ,"AnnotationName")
oA.text = "This is a comment" & vbCrLf & "second line"

Adam Seeley wrote:
Dagnabbit!

-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Kim Aldis
Sent: 24 May 2007 12:17
To: XSI(at)Softimage.COM
Subject: RE: Scripting - finding user name


That'll teach you. ;-)

-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Adam Seeley
Sent: 24 May 2007 11:55
To: XSI(at)Softimage.COM
Subject: RE: Scripting - finding user name


Ah good,

Although I'm unfortunately straggling along in VB world at
the moment.
A.

-----Original Message-----
From: owner-xsi(at)Softimage.COM
[mailto:owner-xsi(at)Softimage.COM] On Behalf Of Kim Aldis
Sent: 24 May 2007 11:46
To: XSI(at)Softimage.COM
Subject: RE: Scripting - finding user name

oA.Text = "This is a Comment\nSecondLine";

you can add escaped characters in the same way you would
in C or a
UNIX shell. \n\c\r\t are the common ones - \t is a tab

-----Original Message-----
From: owner-xsi(at)Softimage.COM
[mailto:owner-xsi(at)Softimage.COM] On
Behalf Of Adam Seeley
Sent: 24 May 2007 11:31
To: XSI(at)Softimage.COM
Subject: RE: Scripting - finding user name

Was supposed to read


I'm entering text into an Annotation via scripting, do you
know how to
feed a carriage return?

 I've tried using

set  oA = ActiveSceneRoot.AddProperty( "Annotation" , ,
"AnnotationName")
oA.text = "This is a comment" & vbCR & "second line"

 But it comes back in one line (without an error mind you)

Thanks,

Adam.

No virus found in this outgoing message.
Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.7.6 - Release Date: 20/05/2007 00:00


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