Announcement

Collapse
No announcement yet.

looking for script to save multiple selected obj separately.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • looking for script to save multiple selected obj separately.

    Anyone knows script that can save objects that I selected in scene as separate max files with name of the object?
    Luke Szeflinski
    :: www.lukx.com cgi

  • #2
    File > Save selected... from the UI, 'saveNodes' command from MaxScript do just want you need.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      yes, but I need:

      1) got selected 3 objects (tree, car, grass)
      2) click script and got in desired folder 3 files (tree.max, car.max, grass.max)

      The thing is I don't want to select each object separately and save selected.
      Luke Szeflinski
      :: www.lukx.com cgi

      Comment


      • #4
        Ok I got it
        Luke Szeflinski
        :: www.lukx.com cgi

        Comment


        • #5
          care to share your solution?
          | LinkedIn | Twitter | JCanimator.com |

          Comment


          • #6
            sure
            it's simple but also it's setting selected object possition to 0 0 0.

            Code:
            macroScript savingSelected category: "lukxScripts"
            
            (
            for obj in selection do
              (
              	  	tempPos = obj.position
            		obj.position = [0,0,0]
            		saveNodes obj ("c:/temp/" + obj.name + ".max")
            		obj.position = tempPos
              		)
            		)
            Luke Szeflinski
            :: www.lukx.com cgi

            Comment

            Working...
            X