discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Wish - mouseover parts in viewport should highlight code

S
Scalpel78
Mon, Dec 8, 2014 5:53 PM

Hi, I was thinking... When you have a scenario that consists of multiple
parts I find it tedious to find the correct piece of code that created that
part. I usually sprinkle #'s around to try to identify which node is which
by doing a preview each time I move the # to a new piece of code.

So, my idea is - would it be possible to highlight the line of code that
drew the current object I'm mousing over?

Say for instance I have a this script:

cube(10);
translate([15, 10, 10]) sphere(5);

When I move the mouse over the cube in the viewport the first line should be
highlighted. When I move the mousecursor over the sphere, the second line
should be highlighted.

What do you think? Bad idea?

--
View this message in context: http://forum.openscad.org/Wish-mouseover-parts-in-viewport-should-highlight-code-tp10431.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi, I was thinking... When you have a scenario that consists of multiple parts I find it tedious to find the correct piece of code that created that part. I usually sprinkle #'s around to try to identify which node is which by doing a preview each time I move the # to a new piece of code. So, my idea is - would it be possible to highlight the line of code that drew the current object I'm mousing over? Say for instance I have a this script: cube(10); translate([15, 10, 10]) sphere(5); When I move the mouse over the cube in the viewport the first line should be highlighted. When I move the mousecursor over the sphere, the second line should be highlighted. What do you think? Bad idea? -- View this message in context: http://forum.openscad.org/Wish-mouseover-parts-in-viewport-should-highlight-code-tp10431.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Mon, Dec 8, 2014 5:58 PM

On 12/08/2014 06:53 PM, Scalpel78 wrote:

So, my idea is - would it be possible to highlight the line of code that
drew the current object I'm mousing over?

A number of ideas along this line is already listed in the project idea list:

https://github.com/openscad/openscad/wiki/Project%3A-Improve-OpenGL-rendering

I guess we could add some more details there...

ciao,
Torsten.

On 12/08/2014 06:53 PM, Scalpel78 wrote: > So, my idea is - would it be possible to highlight the line of code that > drew the current object I'm mousing over? > A number of ideas along this line is already listed in the project idea list: https://github.com/openscad/openscad/wiki/Project%3A-Improve-OpenGL-rendering I guess we could add some more details there... ciao, Torsten.
S
Scalpel78
Mon, Dec 8, 2014 9:36 PM

Aha, good, then the idea wasn't as farfetched as I was afraid of.

Hope someone implements it :)

Frode

--
View this message in context: http://forum.openscad.org/Wish-mouseover-parts-in-viewport-should-highlight-code-tp10431p10434.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Aha, good, then the idea wasn't as farfetched as I was afraid of. Hope someone implements it :) Frode -- View this message in context: http://forum.openscad.org/Wish-mouseover-parts-in-viewport-should-highlight-code-tp10431p10434.html Sent from the OpenSCAD mailing list archive at Nabble.com.