PDA

View Full Version : 'argv' support for plugin functions


Thaellin
20th January 2004, 10:30 AM
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

Andy
20th January 2004, 03:12 PM
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

Thaellin
20th January 2004, 03:51 PM
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

Andy
21st January 2004, 10:13 AM
Single quotes should work fine.

e.g.

ac3d object_set_data $current_object "this is some object data"

Andy