www.ssontech.com Forum Index www.ssontech.com
SynthEyes Camera Tracker Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pulling a version number from a filename

 
Post new topic   Reply to topic    www.ssontech.com Forum Index -> Sizzle Scripting (NOT TECH SUPPORT)
View previous topic :: View next topic  
Author Message
Pretty Vacant



Joined: 02 May 2005
Posts: 69
Location: Dogtown

PostPosted: Mon May 02, 2005 5:53 pm    Post subject: pulling a version number from a filename Reply with quote

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
View user's profile Send private message
ssontech
Site Admin


Joined: 16 Mar 2005
Posts: 610
Location: Valley Forge, Pennsylvania

PostPosted: Tue May 03, 2005 8:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Pretty Vacant



Joined: 02 May 2005
Posts: 69
Location: Dogtown

PostPosted: Tue May 03, 2005 1:17 pm    Post subject: Reply with quote

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 Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.ssontech.com Forum Index -> Sizzle Scripting (NOT TECH SUPPORT) All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group