Notifications
Clear all

[Closed] slice digits

Hello and happy new year max users!
Did someone know how to slice (delete) fisrts charaters in maxscript, like this in .js:


arrNum = "A001"
arrNum2 = arrNum.slice(-2)      -- slice the 2 first digits 
print  arrNum2  -- EXPECTED RESULT: 01

2 Replies
<string>substring <string> <from_integer> <length_integer>

maxscript reference

Thanks a lot Serejah, it’s exactly whati was looking for