May I ask if I want to remove all white space form objects name.
I am a beginner and don't know how to do.
and thanks for answer.
fn FindAndReplaceAll str fnd rpl =
(
local addpos, fndcount = fnd.count
while ((addpos = findString str fnd) != undefined) do ( str = replace str addpos fndCount rpl )
)
sel=objects as array
for str in sel do FindAndReplaceAll str.name " " ""
Forum topic · General Scripting
How to rename without white spaces in 3dmax objects
By johnsu6616 · 2018-05-04
New forum topics are on pause. Signed-in members can reply to existing topics. Contact ScriptSpot if you need help.
Comments (4)
Comment policy
using this String Parser
using this
.
Thank you for sharing the information.
.
thank you so much.
great example for me!
fix all object name without space and tab
and thanks again
sel=objects as array
for s in sel do
s.name = RemoveAllWhiteSpace s.name
.