PDA

View Full Version : Layout return Layer?



papou
07-05-2004, 05:29 AM
Hi!!
i would like to know how to get the layer's number of the selected object.
The Layout can't return the layer number automaticly?

piece of code ...
generic

{

// ...

obj = Mesh(0);

info("object selected: ",obj.name);


BB = obj.position();

info(BB," are vector of all layers! and not only the selected!!");



// I CAN DO IT MANUALLY WITH OBJ.POSITION(LAYER) BUT

BB1 = obj.position(1);

info(BB1,"are vector of layer 1");

BB2 = obj.position(2);

info(BB2,"are vector of layer 2");


// HOW TO GET LAYER'S NUMBER OF OBJECT SELETED??


// ....



}


Thank you!!

papou
07-10-2004, 02:15 PM
grml..., completely stuck here!:confused: