Results 1 to 4 of 4

Thread: Selection of objects in Modeler ...

  1. #1

    Selection of objects in Modeler ...

    I'm trying to write a script that loads up multiple object files into Modeler simultaneously, then copies and pastes layers of those in different combinations.

    I am having real trouble setting the active object file! When I try to do something like this:


    @script modeler

    load(D:\modelfile1.lwo);
    object_handle1 = Mesh(0);

    load(D:\modelfile2.lwo);
    object_handle2 = Mesh(0);

    object_handle1.select();
    copy();

    object_handle2.select();
    paste();


    I get no joy on the use of "select()" method in Modeler. Works OK in Layout, but not modeler. Anyone know what I can do to select the active object in a Modeler script?

    ANY help would be very much appreciated.

    Cheers,
    Al.

  2. #2
    OK, so some further research has unearthed the use of the

    setobject("MyObjectName")

    function, and this can be used to achieve what I wanted like this:


    load("C:\object1.lwo");
    object[1] = Mesh(0);

    load("C:\object2.lwo");
    object[2] = Mesh(0);

    setobject(object[1].name);

    ...


    Hope that's of use to some people out there. It certainly isn't easy to find the "setobject" function in the doco!

    Cheers, Al.
    Last edited by alunbjorksten; 07-22-2003 at 05:38 PM.

  3. #3
    Polyvore richpr's Avatar
    Join Date
    Feb 2003
    Location
    Montréal, Canada
    Posts
    493
    It isn't easy to find a lot of things... The LScript manuals could use a rewrite... And they should be merged into one nice manual...

    The first bunch of chapters on how to use with loads of examples...

    The rest should be reference on the language and objects, massively cross-referenced in a good index. Pretty much every function and object should have an example provided for its use.

  4. #4
    Originally posted by richpr
    It isn't easy to find a lot of things... The LScript manuals could use a rewrite... And they should be merged into one nice manual...
    yup. it's hard to find something when you're not sure what you are looking for. me, i just got used to the release notes when i was taking up lscript that i find the current pdfs quite a treat. pretty spartan, eh?

    the lscript manual can easily be twice or thrice larger than it is now. in fact there are a still alot of features that arent covered in the pdfs. so be sure to check the release notes.
    "The hardness of God is kinder than the softness of men, and His compulsion is our liberation." - C.S. Lewis


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
  •