S.O.S!!!
Hi,
I'm very new with maxscript,
and i need to deconcatenate (with split and slice?? like in js) some strings
and unfortunatly, i'don't have any idea how to do that:
--1 make a collection of all obj in the scene named "*_Master":
for h in $*_Master do print h.name
-- i obtain a list:
--"A135_gg_PersoName_Master"
--"B256a_AnimName_a_gg_Master"
--"B256a_AnimName_a_gg_Master"
--"B256a_AnimName_a_gg_Master"
-->2 i need to keep only the fisrt letter: "A" or "B" of each obj founded
-->3 make a condition: if it's A: split "_" to obtain: "PersoName"
-->4 find this PersoName folder and import it
if anyone can help me with this, it would be geat because i'm lost :(
Comments
.
You can't import a fodler. You can import a file. So, modify the script to works as you want.
Tools and Scripts for Autodesk 3dsMax