Michael Betke Posted October 7, 2010 Share Posted October 7, 2010 Is it possible in .lua to do a ruler? So I have a start node and a end. The end should display the distance to the start point in meters. Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments Link to comment Share on other sites More sharing options...
Canardia Posted October 7, 2010 Share Posted October 7, 2010 Yes, it's quite easy to do. I can make one and upload it to the Tools downloads. Maybe you could make me a model for the ruler end, something like a cube with some texture. When you Ctrl-click on any model in Editor, it will be set as begin marker, then you can move the end marker around and it will show you the distance in meters, and also height, width and depth distance in meters. And maybe even angle and compass direction Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Rick Posted October 7, 2010 Share Posted October 7, 2010 To make a quick and dirty one, there is an even that fires when you set targets. So in each model you could run EntityDistance() between the 2 and return the result in a message box in that set target event. When when you drag one model over another it'll give you the distance between those 2 models. Quote Link to comment Share on other sites More sharing options...
Michael Betke Posted October 7, 2010 Author Share Posted October 7, 2010 I'll upload models this evening in 6 hours or so. Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments Link to comment Share on other sites More sharing options...
Canardia Posted October 7, 2010 Share Posted October 7, 2010 I was thinking it could consist of 2 separate models. One which is always world axis aligned and which you can move in editor with the gizmo, and one which is at the same position, but pointing to the begin model. So maybe the pointing model could be like an arrow. It would be even possible to stretch the arrow so that it would look like a line between the begin and end end. Lua should really have OpenGL commands, then this could be done much more professional. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Michael Betke Posted October 7, 2010 Author Share Posted October 7, 2010 yes this sounds good. So I have a steady display of the ditance to use it as a spacer which I can delete afterwards. So you need an arrow model or just a start and a end point? Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments Link to comment Share on other sites More sharing options...
Canardia Posted October 7, 2010 Share Posted October 7, 2010 There is no need for a start point model, because any Ctrl-clicked model in the scene can be the start point. I only need an arrow model and a cube-like (=3D symmetric) model which is always world axis aligned. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
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.