ScriptSpot

Forum topic · Scripts Wanted

Child-Parent Script

By W DIGITAL · 2009-04-30

Description

Unfortunately i cannot program, else i wouldnt make these requests :)

Is it possible that anyone can make a little script, similar to Distance Linker?

the difference is that it would take one parent box for example, and 100 children, but instead of linking all the children to one parent, the box furthest away would parent to the next box, going to the next, until at last reaching the true parent...

this way it would be a real hierarchy chain which one could use for anything, would be especially useful with nicks tentalce script...

thanks for help or replies !
:)

ian

Comments (6)

W DIGITAL · 2009-04-30

hahaha, i will do that next time!
im going to upload this script as i think it is useful! credits go to you for the code and moustafis for the installer, hope this is ok for you! :)

http://www.scriptspot.com/3ds-max/parentize

Anubis · 2009-04-30

Ok, congratulations :D

Anubis · 2009-04-30

for i in 1 to (selection.count - 1) do append $[i].children $[i + 1]

Note - 'cause FOR loop use selection index is important how you will select the objects, ie if select first Sphere01, next Box01, ... etc - Sphere01 will be top of hierarchy $[2]=Box01 will be there child, $[3] will be child to $[2] and .. so on.

W DIGITAL · 2009-04-30

uhhhh what?
thats it?

how do i "do it"

just select 100boxes and runt that line?

thanks for your help

W DIGITAL · 2009-04-30

HHAHAHa

thats actually EXACTLY what i have to do,
i dont even have to select in that order i want,
i can just create a box, array-make 100 of them,
then select all and run the script BOOOOMM
first box is parent all other children of children

SUPER THANK YOU SO MUCH!!!!

now how do i implement this in a button is there a tutorial on that somwhere?

THANKS AGAIN U SAVED THE DAY

Anubis · 2009-04-30

The buttons is an easy job :) look into Help > MaxScript Help