Request Attachment Point Revealer

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,434
Reaction score
689
Points
203
Can someone make a attachment point revealer similar to Artlav's Docking Point Revealer add-on? It would be useful in debugging attachment points especially the direction and rotation vectors.
 

SiameseCat

Addon Developer
Addon Developer
Joined
Feb 9, 2008
Messages
1,699
Reaction score
1
Points
0
Location
Ontario
In C++ code, you can call
Code:
oapiSetShowGrapplePoints(true);
and it will show all the attachment points defined. I don't know if there's a Lua equivalent for this command.
 

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,434
Reaction score
689
Points
203
In C++ code, you can call
Code:
oapiSetShowGrapplePoints(true);
and it will show all the attachment points defined. I don't know if there's a Lua equivalent for this command.
Well, it isn't in Lua and I'm not a C++ coder. So someone else will have to make this utility.
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,882
Reaction score
2,133
Points
203
Location
between the planets
What? Now someone tells me? I can't find that function anywhere in the API doc, is it just undocumented or is it only available in the beta?
 

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,434
Reaction score
689
Points
203
What? Now someone tells me? I can't find that function anywhere in the API doc, is it just undocumented or is it only available in the beta?
Only undocumented. It's available in 2010-P1.
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,882
Reaction score
2,133
Points
203
Location
between the planets
Just tried it out...

brilliant.gif


I assume red arrows are attachments to children, blue to parents?
Shame there is no indexing. This function does not accidentally exist for docking ports too, does it?
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,724
Reaction score
2,690
Points
203
Location
Dallas, TX
I use Attachment Manager to see the point info.
[ame="http://www.orbithangar.com/searchid.php?ID=3058"]http://www.orbithangar.com/searchid.php?ID=3058[/ame]
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,724
Reaction score
2,690
Points
203
Location
Dallas, TX
ok. I think MeshWizard can show the points if in a ini/cfg
 

Loru

Retired Staff Member
Retired Staff
Addon Developer
Donator
Joined
Sep 30, 2008
Messages
3,731
Reaction score
6
Points
36
Location
Warsaw
you can always attach big red arrow mesh to attachment point
 

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,434
Reaction score
689
Points
203
you can always attach big red arrow mesh to attachment point
:facepalm: Not going to work if you're debugging it! I need a tool to show me the position, direction and rotation of attachment points.
 

SiameseCat

Addon Developer
Addon Developer
Joined
Feb 9, 2008
Messages
1,699
Reaction score
1
Points
0
Location
Ontario
Here's a plugin which toggles oapiSetShowGrapplePoints.
 

Attachments

  • AttachmentPointRevealer.zip
    18.6 KB · Views: 38

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,724
Reaction score
2,690
Points
203
Location
Dallas, TX
I installed this. but I don't see it when I press CTRL and 4

But I have this and I dont see them either.
Could it be a d3d9 setting?
if (key == OAPI_KEY_F5 && !KEYMOD_SHIFT(kstate) && !KEYMOD_CONTROL(kstate) && !KEYMOD_ALT(kstate)) { oapiSetShowGrapplePoints(true); return 1; }
 

Attachments

  • attachrevealer.jpg
    attachrevealer.jpg
    44.1 KB · Views: 1

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,434
Reaction score
689
Points
203
I installed this. but I don't see it when I press CTRL and 4

But I have this and I dont see them either.
Could it be a d3d9 setting?
if (key == OAPI_KEY_F5 && !KEYMOD_SHIFT(kstate) && !KEYMOD_CONTROL(kstate) && !KEYMOD_ALT(kstate)) { oapiSetShowGrapplePoints(true); return 1; }
It isn't compatible with Orbiter 2016 out of the box. But a quick recompile with 2016 SDK fixes this.
 
Top