View Full Version : l-script, envelope example
zyhsu
04-19-2003, 09:18 AM
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!
alexione
05-04-2003, 01:19 PM
You use it with
env.load(f);
env.save(f);
where env is Envelope, and f is File object. Simple & clean!
zyhsu
05-04-2003, 09:59 PM
Dear Alexione:
Thanks a lot!
Z.Y. HSu
zyhsu
05-12-2003, 10:51 AM
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!
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.
zyhsu
05-14-2003, 06:18 AM
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);
}
zyhsu
05-14-2003, 06:20 AM
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);
}
alexione
05-15-2003, 06:48 AM
Just remember that env.save() and env.load() are context-sensitive - they have to be used inside save() and load() methods of your plugin.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.