string $srcFile = "blabla_blabla_charName.fbx"; string $saveFileString = basename( $srcFile, ".fbx" ); string $charName = "_" + `substitute "^[^.]*\\_" $saveFileString ""`; string $saveFileName = `substitute $charName $saveFileString ""`; print $saveFileName;
apparently its solved now with your help. but if you look at line 3, its cheap (adding "underscore manually"). but atleast its working. generally, i am sure, regex in line 3 again (second part) can solve it..but still, thanks anyways, really appriciate your prompt responses. always. thats only reason, posting here is more fun than anywhere else. On Saturday, 5 July 2014 11:55:36 UTC+5, Justin Israel wrote: > > That's what you wanted right? > >> options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/a200980e-cd6a-4c72-bd26-c3954639cd3e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
