MEP Rotation script, and keep his snap points
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-12 04:44 PM
2019-11-12
04:44 PM
did someone achieves rotate a MEP connector without trigonometrical functions?, and keep the MEP vector available when a pice of pipe/duct its trying to connect to it.
If you use the rotation cursor of 3d script, it just lose the "auto connection" function, so you have to put the local cursor in the 0,0,0 global, before add the connector script and make the rotation connector by the trigonometrical functions in the parameters script.
I think the trouble with MEP objects is that the rotation has to be described with trigonometrical functions, because the connector always refers to the 0,0,0 global, no matter where is your cursor.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-11-12 10:28 PM
2019-11-12
10:28 PM
hirofuro,
TL;DL Your way will not work, end of the story.
Explanation, the trigonometrical functions mission is to calculate:
1. Hotspots positions in 2D.
2. Calculate the normal vector values for each connection.
About the 0,0,0 origins, is to make scripting and vector calculations easier.
The trouble is you're trying to break the MEP objects' programming schema, without understanding how the schema was implemented to make it work.
Advise, follow the schema.
TL;DL Your way will not work, end of the story.
Explanation, the trigonometrical functions mission is to calculate:
1. Hotspots positions in 2D.
2. Calculate the normal vector values for each connection.
About the 0,0,0 origins, is to make scripting and vector calculations easier.
The trouble is you're trying to break the MEP objects' programming schema, without understanding how the schema was implemented to make it work.
Advise, follow the schema.
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
