20th January 2004, 10:30 AM | #1 |
Senior Member
Professional user
Join Date: Jun 2003
Location: British Columbia, Canada
Posts: 255
|
'argv' support for plugin functions
Hi again,
I tried switching over my internals to use the 'argv' input template instead of 's' last night. The thing is, the expected input count is still being used. I tried with '1' (before I had a mashed string that I parsed internally) and 0, and each time AC3D reported that it got an unexpected number of args to my functions. I need to get this working so that object with spaces in their names can be used in csg operations. Any info is welcome, -- Jeff |
20th January 2004, 03:12 PM | #2 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: 'argv' support for plugin functions
Hi Jeff,
I'm afraid that the input count is actually checked for the argv form of the command. The can be changed in the future versions if needed. Andy |
20th January 2004, 03:51 PM | #3 |
Senior Member
Professional user
Join Date: Jun 2003
Location: British Columbia, Canada
Posts: 255
|
Re: 'argv' support for plugin functions
I can't easily know how many inputs are coming in... The object names could contain any number of spaces. Is there a good way that I can cause TCL to send an argument into AC3D as a single string? I'd tried enclosing in double-quotes, but that had no apparent effect.
Thanks, -- Jeff |
21st January 2004, 10:13 AM | #4 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,565
|
Re: 'argv' support for plugin functions
Single quotes should work fine.
e.g. Code:
ac3d object_set_data $current_object "this is some object data" |
|
|