![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Game engine designer
Join Date: May 2005
Location: Sweden
Posts: 288
Rep Power: 4
![]() |
[MEL (Maya)] Newbie scripter
I have just begun scripting in Maya, and therefor need some help.
The goal is to create a script that generates a textfile that looks like this: group house
{
object window
object door
object funnel
position = 23 23 23
rotation = 45 16 23
scale = 1 1 1
}My problem is: How do I, from a string, reads the last three characters? The script look like this so far: for($each in `ls -as`)
{
string $str_each = $each;
// Code here!
print $str_each;
}Where it says "Code here!" I want to read the three last characters of the $str_each variable. But how? /Klarre |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|