| View previous topic :: View next topic |
| Author |
Message |
Pretty Vacant
Joined: 02 May 2005 Posts: 69 Location: Dogtown
|
Posted: Mon May 02, 2005 5:53 pm Post subject: pulling a version number from a filename |
|
|
Guess I'll go first in the Sizzle section.
I'm exporting to Maya, and I've modified the exporter so that instead of SynthEyesGroup -> Camera01, I get myGroupName_vXX -> myCameraName with the XX to be manually changed in Maya to represent the accurate version number.
What I'd like to do is have sizzle grab the version number from my SynthEyes file (myFile_v03.sni) and feed that to the exporter to get myGroupName_v03 -> myCameraName
Possible? |
|
| Back to top |
|
 |
ssontech Site Admin
Joined: 16 Mar 2005 Posts: 610 Location: Valley Forge, Pennsylvania
|
Posted: Tue May 03, 2005 8:51 am Post subject: |
|
|
| Certainly. Sizzle has the usual sort of substr, index, and length routines; you just need to put together the right routine. Take a look at fix_slashes for some ideas if you need to. |
|
| Back to top |
|
 |
Pretty Vacant
Joined: 02 May 2005 Posts: 69 Location: Dogtown
|
Posted: Tue May 03, 2005 1:17 pm Post subject: |
|
|
Cool, thanks Russ. It's been a while since I did any digging around in Sizzle, so I thought I'd start with an easy one  |
|
| Back to top |
|
 |
|