Results 1 to 8 of 8

Thread: l-script, envelope example

  1. #1

    l-script, envelope example

    Could somebody give me a example of using save() and load() function for envelope object agent , or tell me where I can find a example?

    Thanks!

  2. #2
    Newbie Member
    Join Date
    May 2003
    Location
    Sremski Karlovci, Serbia
    Posts
    4

    Lightbulb

    You use it with

    env.load(f);
    env.save(f);

    where env is Envelope, and f is File object. Simple & clean!

  3. #3
    Dear Alexione:

    Thanks a lot!

    Z.Y. HSu

  4. #4
    Originally posted by alexione
    You use it with

    env.load(f);
    env.save(f);

    where env is Envelope, and f is File object. Simple & clean!
    Hi!
    I try this:

    generic
    {
    group = ChannelGroup("Face");
    ch = group.firstChannel();
    f= "c:/t1env.env";
    env.save(f);
    }

    but get message "invalid object method", please tell me what is wrong?
    thanks!

  5. #5
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    13,054
    I'm not really a coder but don't you need to declare that 'F' is a file type object, at the moment you've declared it as a string.
    UI / UX Designer @ NewTek
    __________________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools


  6. #6
    Originally posted by Matt
    I'm not really a coder but don't you need to declare that 'F' is a file type object, at the moment you've declared it as a string.
    Thanks for your answer!
    but I change the code to the following and make sure all
    the value exist by using info(), but it still tell me "invalid function method load"?

    generic
    {
    group = ChannelGroup("Face");
    ch = group.firstChannel();
    info("channel: ",ch);
    file = "c:/ft-1.env";
    info("filename:",file);
    f = File(file,"r");
    info("file obj:",f);
    env.load(f);
    }

  7. #7
    Thanks for your answer!
    but I change the code to the following and make sure all
    the value exist by using info(), but it still tell me "invalid function method load"?

    generic
    {
    group = ChannelGroup("Face");
    ch = group.firstChannel();
    info("channel: ",ch);
    file = "c:/ft-1.env";
    info("filename:",file);
    f = File(file,"r");
    info("file obj:",f);
    env.load(f);
    }

  8. #8
    Newbie Member
    Join Date
    May 2003
    Location
    Sremski Karlovci, Serbia
    Posts
    4
    Just remember that env.save() and env.load() are context-sensitive - they have to be used inside save() and load() methods of your plugin.

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
  •