Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Linked Objects - Save / Load
  RSS 2.0 ATOM  

Linked Objects - Save / Load
Rate this thread
 
63914
 
Permlink of this thread  
avatar
  • Location: Australia
  • Total Posts: 565
  • Joined: 01 April 2010 09:10 AM

Hello… I would like to know if there is a feature in 3DSMAX or maybe a script available which allows you to save/export the link association between objects and be able to load/import this back in.



website: http://www.all3dmax.com

Attachment Attachment
Replies: 0
avatar
  • pen
  • Posted: 03 February 2012 12:01 AM

No there isn’t. It this sort of tool is very easy to write in Max Script. Might be time to learn it.



Paul Neale
PEN Productions Inc.
penproductions.ca / paulneale.com
Master Classes for Max, Mudbox and Composite
DotNet Tutorials

MX Driver Car and Trailer Rig On Sale!

Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 14445
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

If you want to go the script route, perhaps this thread would be better moved to the Maxscript forum (it’s not really a rigging question per se).



Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 0
avatar

Steve good idea, could you please move this thread to the script section.



website: http://www.all3dmax.com

Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 14445
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

Warning. These are very basic routines, not optimised in any way, no error checking etc.

Saving it…

(
local fName "c:/hierarchy.txt"fh
   
fn getChildren theParent 
=
   (
   
local chtheChild
   
for ch 1 to theParent.children.count do
      (
      
theChild theParent.children[ch]
      format 
"\"%\" \"%\"\n" theParent.name theChild.name to:fh
      
if theChild.children.count != 0 then
         getChildren theChild
      
)
   )

fh createFile fName
getChildren selection[1]
close fh
)

Loading it back…

(
local fName "c:/hierarchy.txt"fhobjNames #()

fh openFile fName mode:"r"

while not eof fh do
   (
   
theString readLine fh
   objNames 
filterString theString "\" "
   (getNodeByName objNames[2]).parent = (getNodeByName objNames[1])
   )

close fh
)


Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 0
avatar
  • Anubis
  • Posted: 04 February 2012 04:16 AM

There IS a script for that purpose (I wrote a time ago) - HierarchyState:
http://www.scriptspot.com/3ds-max/scripts/hierarchy-state

The idea behind is simple. You can solve this in an other way.
It fit my needs for the time it was made (just a note to the ‘professors’)



Max 9 through 2009, XP-Pro x64 SP2
ASUS EAH3450 Series (Driver 8.470).
Core 2 Duo E8400 3GHz, 4Gb Ram, DX9.0c.

Replies: 0
avatar

Thank you both Steve_Curley and Anubis for taking the time to respond.

Anubis I have just used your script and it does exactly what I needed, thanks again!



website: http://www.all3dmax.com

Replies: 0
avatar

Well… I started using this script and then myself and about 10 other people (20% of the company) where made redundant because the company attempting to cut-costs by sending our work off-shore… to India. *sigh*

Anyone looking for a Graphic Artist :P



website: http://www.all3dmax.com

Replies: 0