CompuServe Thread

#TSE – AXP script

7 messages in this thread
#190511From: Neil McEvoySep 12, 1995 6:55 PM
I'm not sure if this is the place to post this question about the KUB Script Extension for 3DS, but here goes: I'm trying to get some information about an object in a scene (in this case, the number of faces on the object), before changing the object on the fly using a TSE AXP script. I've tried to do this within the "configure" section of the script, by invoking the "Faces" reserved variable. When this seemed to come back as zero, I also tried to check the value in "DefaultObj$", and found that its value was NULL. Basically, the code I used for this test wasthe statement: GFX_Continue2 DefaultObj$, faces in the configure section. The dialog box showed a blank line for DefaultObj$ and a 0 for Faces. Is it possible that this reserved variable is not available during the configuration phase, but only during processing? Help! Neil McEvoy Eolas
#190538From: Larry MintonSep 12, 1995 9:09 PM
Are you making a call to "Select" or "GetObject" before writing out faces? LAM
#190588From: Neil McEvoySep 13, 1995 6:09 AM
Yes, I tried "GetObject"ing the object. In fact that's where I started out. My problem was that the configure script passed right by that piece of code. That was when I started debugging to show the name of the object and its number of faces. While doing that, it occurred to me that the AXP script was already attached to my object, and I interpreted the information in the documentation to mean that the DefaultObj$ was reserved for the name of the object, and would already contain that data. Maybe not? Neil Eolas
#190552From: Jonas Ruikis [ADESK]Sep 12, 1995 10:02 PM
Hi Neil, <<.I'm trying to get some information about an object in a scene ..>> You may get some insights by reviewing the following.. File Info for VIEWER.ZIP Section: Scripts Contributor: 74710,3061 Size: 6888 Submitted: 12/22/94 Type: Binary Accesses: 253 Title: VIEWER.K3D & 3DE Keys: VIEWER KEYSCRIPT 3DE A stand alone script for viewing objects within a script! Viewing options include: bounding box, internal axes, pivot point, vertices, faces, hidden edges. This script is intended as a utility to be used when scripts require visible object information (since the 3DS viewports are unaccessable). Note that this is a "script in progress" whose functionality will expand over time. Please feel free to cut and paste for use within your scripts. Comments accepted by Jonas & Phil.
#190759From: Martin Doudoroff/KUBSep 13, 1995 9:32 PM
>> I'm not sure if this is the place to post this question about the KUB Script Extension for 3DS, but here goes: << Yup. This is the place. >> I'm trying to get some information about an object in a scene (in this case, the number of faces on the object), before changing the object on the fly using a TSE AXP script. I've tried to do this within the "configure" section of the script, by invoking the "Faces" reserved variable. When this seemed to come back as zero, I also tried to check the value in "DefaultObj$", and found that its value was NULL. << You found what appears to be a bug in TSE. Sorry. These variables do performa correctly in the rendering portion of the AXP, however. If you can get away with not working with this information within the configure section, do so. If you absolutely must have this kind of information in the the configure section, the best work-around I can suggest is using either a PXP script or an operation in the AXP rendering section to embed the information which is subsequently accessed by the AXP configuration. Martin
#190799From: Neil McEvoySep 14, 1995 7:52 AM
Thanks Martin. The good part about finding a bug is that you don't feel so stupid after all! Yes, I can work around it. By the way, I think there may be a typo in the manual for the new Core Functions included in TSE. Page 14 describes a function called "GetMtlNumber", which is always trapped as a syntax error. For no apparent reason, and after trying a lot of other things,I tried "GetMtlIndex" instead, and it worked! While I'm on the subject, have you had any reports of problems with the "Move" function in PXP? I had some strange results a few months ago when I first started using TSE. Unfortunately, i didn't keep the code, so I can't tell you any more. In spite of these minor irritations, TSE is a godsend! It's helping us to do the impossible – please keep us on your mailing list as you improve on it and add other products. Neil McEvoy Eolas Interactive Knowledge Inc. Kingston, Canada
#190810From: Martin Doudoroff/KUBSep 14, 1995 8:55 AM
>> Thanks Martin. The good part about finding a bug is that you don't feel so stupid after all! Yes, I can work around it. << Good. >> By the way, I think there may be a typo in the manual for the new Core Functions included in TSE. Page 14 describes a function called "GetMtlNumber", which is always trapped as a syntax error. For no apparent reason, and after trying a lot of other things,I tried "GetMtlIndex" instead, and it worked! << You are correct, that is a typo. >> While I'm on the subject, have you had any reports of problems with the "Move" function in PXP? I had some strange results a few months ago when I first started using TSE. Unfortunately, i didn't keep the code, so I can't tell you any more. << Nope. Never had any trouble. Please keep me posted. >> In spite of these minor irritations, TSE is a godsend! It's helping us to do the impossible – please keep us on your mailing list as you improve on it and add other products. << I'm glad you are enthusiastic about TSE. It's not necessarily easy, but it certainly can make some jobs easier! Martin