Results 1 to 2 of 2

Thread: Layout return Layer?

  1. #1

    Layout return Layer?

    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!!

  2. #2
    grml..., completely stuck here!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •