cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

MEP Rotation script, and keep his snap points

Hello
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
Nader Belal
Mentor
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.
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.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!