Linked Objects - Save / Load

Linked Objects - Save / Load

blakestone
Collaborator Collaborator
819 Views
7 Replies
Message 1 of 8

Linked Objects - Save / Load

blakestone
Collaborator
Collaborator
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.

0 Likes
820 Views
7 Replies
Replies (7)
Message 2 of 8

paulneale
Advisor
Advisor
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

http://paulneale.com


Paul Neale




EESignature

0 Likes
Message 3 of 8

Steve_Curley
Mentor
Mentor
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 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 4 of 8

blakestone
Collaborator
Collaborator
Steve good idea, could you please move this thread to the script section.
0 Likes
Message 5 of 8

Steve_Curley
Mentor
Mentor
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 ch, theChild
for ch = 1 to theParent.children.count do
(
theChild = theParent.children
format "\"%\" \"%\"\n" theParent.name theChild.name to:fh
if theChild.children.count != 0 then
getChildren theChild
)
)

fh = createFile fName
getChildren selection
close fh
)

Loading it back...

(
local fName = "c:/hierarchy.txt", fh, objNames = #()

fh = openFile fName mode:"r"

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

close fh
)

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 6 of 8

Anonymous
Not applicable
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')
0 Likes
Message 7 of 8

blakestone
Collaborator
Collaborator
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!
0 Likes
Message 8 of 8

blakestone
Collaborator
Collaborator
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 😛
0 Likes