Notifications
Clear all

[Closed] How to use dot net Split in Maxscript

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

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
(@jovcem)
Joined: 2 years ago

Posts: 0

Thanks, that was what I needed