About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
Anubis
Thank you anubis for the checking of the script and modifying it to work properly.
The reason we put v into the version number because it helps distinguish the file version number versus the shot number.
For example if we are doing a short and there are 100 shots.
Shot001_v001.max
Sometimes if a shot is added after the fact it then is written in as
Shot001_02_v001.max
It is a popular way of formatting that I've come across in the industry as well.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
i see...
Yeah, am too seen this naming syntax used in the industry, ever was involved once to debbug such private function library, so i have the chance to see how much this complicate the whole automation. For me, this "v" is a drawback. Even more, base name as "Shot_001" is better than "Shot001". Also i see you add new members to the name-chain, for ex. if there c'd be a member "Shot_001_02__001" then the base name s'd be "Shot_001_00__001" (not "Shot_001__001"). But this a long story and matter of preferences :) Ah, as you see, i insert an example replacement of "v" usage, using "_" instead, so the "_v001" for ex. become "__001".
Ok, i glad to know you have working code ;)
my recent MAXScripts RSS (archive here)
Agreed
That makes complete sense. Although the naming conventions I've worked with, are not all that great, they do seem to work for the time being.
As for putting an extra "_" for the versioning that is a good idea.
It is something I'll have to keep in mind and possibly try and incorporate.
Thanks for the words Anubis.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
i came with this
i came with this sollution
dont know if this helps
i think it does what you asked..
No, it's just a thing I have
No, it's just a thing I have come across quite a few times where I've needed to filter a string in a specific way and was unsure how to do so.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
fixed
now i found a time to test this and saw i was omit "_".
next should work:
meanwhile, just advice, when you design your naming convention, keep in mind all incoming complications. i found as useful to put only digits on the tail, and also not alphabet mixin (like "_v005"), just digits. so if you have a names like "base_name_1_0012" (where "1" is the major version and "0012" minor sub-version) then the whole Filtering is just:
trimRight str "_0123456789"
.my recent MAXScripts RSS (archive here)
is this work?
(not tested)
my recent MAXScripts RSS (archive here)