Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  inspiration alert!!!
(37 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Maxforums.org Members Gallery
(516 replies)
  SON OF POST YOURSELF
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Maxscript read data after prefix
show user profile  3joez
Say I have node names like object_01, object_02, object_03 and so on.

How do I read the numbers after the suffix "_" to plug them into variables?
read 389 times
1/12/2015 4:26:13 PM (last edit: 1/12/2015 4:26:13 PM)
show user profile  3joez
Figured it out. I'm using filterString command. Thanks anyway.
read 389 times
1/12/2015 4:41:58 PM (last edit: 1/12/2015 4:41:58 PM)
show user profile  3joez
I've ran into another strange, but apparently simple problem.

I've collected a strings array. Let's call it collection . It contains one element (that's what filterstring does).

That element contains the string "1". I want that string to be converted into a number.

No matter what, I cannot convert it to an integer.

I've tried:

collection[1] as int --> gives unable to convert

collection as int --> gives unable to convert

read 371 times
1/12/2015 5:52:09 PM (last edit: 1/12/2015 5:52:52 PM)
show user profile  ccampbell
You need to spell out "integer" i.e. - collection[1] as integer




$Entrepreneur = if((Designer + Engineer)*Programmer){Problem Solver};



read 365 times
1/12/2015 6:29:17 PM (last edit: 1/12/2015 6:29:17 PM)
show user profile  3joez
I was missing a parenthesis (collection as integer).
read 348 times
1/13/2015 9:07:12 AM (last edit: 1/13/2015 9:18:16 AM)
#Maxforums IRC
Open chat window


Support Maxforums.org