Anim8or Community

General Category => ASL Scripts => Topic started by: kuper8 on October 05, 2008, 01:39:59 pm

Title: Getting the string of a Text object (shape?)
Post by: kuper8 on October 05, 2008, 01:39:59 pm
Hi! Total n00b at ASL (not at programming tho).

I was looking through the .obj exporter script and more or less understood what it's doing. But is there any way of getting the actual text that you write in a Text object? I mean:

  textcom {
    name { "text04" } //<--- gettable from $shape.name ?
    base {
      origin { (37.303 1.6854 0) }
    }
    string { L"iuliyluiy" }       //<--- THIS BIT HERE!

I'd probably do sth like:

if ($shape.GetKind() == SHAPE_KIND_TEXT)
{
/* do stuff with the text */
}

Thanks.
Title: Re: Getting the string of a Text object (shape?)
Post by: Steve on October 06, 2008, 12:04:23 am
There isnt' any way to do that.  It's a good idea.