PDA

View Full Version : Make parent null script?



Exception
03-23-2009, 05:16 PM
Anyone know of a simple layout script that makes a null in the center of the bounding box of all selected objects, and parents these objects to the null?

Would be very handy for what I'm doing now...
Thanks!

archijam
03-23-2009, 05:22 PM
What are you doing now, Tom?

RebelHill
03-23-2009, 05:31 PM
i was wanting for something similar recently, a make child null script... select a bone, object, whatever, boom... child null at its 0,0,0

evenflcw
03-23-2009, 05:47 PM
Sounds like the Create Group function. (native)

Titus
03-23-2009, 06:48 PM
This should be fairly easy to script, but i don't have time at the moment. The script should start with something like this:

@version 2.1
@warnings
@script generic

curScene;


generic
{
var objeto, objCntr, caja;
curScene = Scene();
(objeto) = curScene.getSelect();
objCntr = center(boundingbox(objeto));
AddNull("Null");
AddPosition(objCntr);
}


warning: The boundingbox() line crashes LW.

geo_n
03-23-2009, 09:05 PM
this might be what you need
http://www.newtek.com/forums/showthread.php?t=92493&highlight=create+group

Svenart
03-24-2009, 11:04 AM
geo_n is right, the creategroup lscript could help you with that. If you have problems using it or if you have ideas to improve it let me know.

Exception
03-24-2009, 05:30 PM
Cheers everyone! This thing works like a charm!
:thumbsup: