Child-Parent Script

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
W DIGITAL's picture

hahaha, i will do that next

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's picture

Ok, congratulations :D

Ok, congratulations :D

my recent MAXScripts RSS (archive here)

Anubis's picture

for i in 1 to

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.

my recent MAXScripts RSS (archive here)

W DIGITAL's picture

uhhhh what? thats it? how do

uhhhh what?
thats it?

how do i "do it"

just select 100boxes and runt that line?

thanks for your help

W DIGITAL's picture

HHAHAHa thats actually

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's picture

The buttons is an easy job

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

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.