Mat Caird Posted July 27, 2002 Share Posted July 27, 2002 Hi A couple of days ago you answered my post about the miserable performance of VW snaps and hybrid objects. You suggested modifying the PIO code from Rect() to Poly(). Can you tell me two things pls; 1> where do I find the source for simple door 2? 2> can I edit it with notepad? Thanks Quote Link to comment
TiTaNiuM sAMuRai Posted July 29, 2002 Share Posted July 29, 2002 You have to find the plug-in first (assuming NNA hasn't locked it). Select 'Create Plug-in' under the 'Organize' menu. Scroll down until you find the name of the PIO (simple door whatever, in this case). Click on 'Scripts...' Where there is a Rect (x1,y1,x2,y2); statement (x1 etc. are some numbers), take note of the numbers. You'll have to replace the rect( ) parameters with an expanded list in this format: Poly (x1, y1, x2, y1, x2, y2, x1, y2, x1, y1); Make sure that you have all five pairs values. I just tried it with my homemade door, and it works as I hoped it would. You end up with 2 lines instead of 1, though. Quote Link to comment
Mat Caird Posted July 29, 2002 Author Share Posted July 29, 2002 Thanks for the reply - AWESOME! Year the buggers at NNA have locked 'em... It's probably not a bad idea to build my own doors and windows at some stage anyway... Quote Link to comment
TiTaNiuM sAMuRai Posted July 29, 2002 Share Posted July 29, 2002 Um, not so awesome if it doesn't help, though, right? If you need some VectorScript samples, Vector Depot has stuff, and I have a few well-commented PIO's. Quote Link to comment
Mat Caird Posted July 30, 2002 Author Share Posted July 30, 2002 thanks for your replies Quote Link to comment
Alexandre Villares Posted July 30, 2002 Share Posted July 30, 2002 Just in case anyone missed it, Vector Depot is atwww.vectordepot.com. There is a VectorScript section at the forum there, it can become a great place to share code and comments. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.