Go Back   AC3D Forums > Technical > AC3D Developers
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 20th January 2004, 10:30 AM   #1
Thaellin
Senior Member
Professional user
 
Join Date: Jun 2003
Location: British Columbia, Canada
Posts: 255
Default '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
Thaellin is offline   Reply With Quote
Old 20th January 2004, 03:12 PM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,381
Default 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
Andy is offline   Reply With Quote
Old 20th January 2004, 03:51 PM   #3
Thaellin
Senior Member
Professional user
 
Join Date: Jun 2003
Location: British Columbia, Canada
Posts: 255
Default 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
Thaellin is offline   Reply With Quote
Old 21st January 2004, 10:13 AM   #4
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,381
Default 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"
Andy
Andy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 12:35 PM.


AC3D Forum
(C) Inivis Limited 2020