Oct
09
split string in tcl
Posted in: NUKE from The FoundryI’m working on our slates and I can’t figure out how to split the string i get from:
[value root.name]
What I get is:
x:/3073 Client JobName/scenes/nuke/12_01_blood_an.nk
[value root.name]
What I get is:
x:/3073 Client JobName/scenes/nuke/12_01_blood_an.nk
Is there any way of splitting this into an array like this:
3073
Client
JobName
12
01
blood
an
I guess I could concentrate on the "3073 Client JobName" first and then the tail "12_01_blood_an".
Problem is I’m not sure if it’s possible in tcl or how I should write it…
Anyone have a clue or suggestions what I should google..?
Thanks in advance.
/Arvid
Post a Comment