Notifications
Clear all
[Closed] How to use dot net Split in Maxscript
Oct 29, 2015 1:43 pm
How can I use the Split method from dot net in maxscript?
I just want to simply split string where a char like “#” is found.
2 Replies
Oct 29, 2015 1:43 pm
You can use the build-in MXS function filterString() to split a string:
(
str = "bananas,apples,grapes#yellow,red,green#105,95,62"
tokens = "#"
filterString str tokens splitEmptyTokens:false
)
-- #("bananas,apples,grapes", "yellow,red,green", "105,95,62")
1 Reply