Jump to content

Hey sAMurai, how do I edit the PIO code


Recommended Posts

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

Link to comment

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.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...