POV-Ray : Newsgroups : povray.general : selecting several thousand lines in pov file Server Time
14 Oct 2026 00:15:12 EDT (-0400)
  selecting several thousand lines in pov file (Message 1 to 35 of 35)  
From: Steve Shelby
Subject: selecting several thousand lines in pov file
Date: 16 Sep 2003 09:20:26
Message: <3f670e1a$1@news.povray.org>
Hi,
Is there an easier way to do this? I have about 9,000 lines, one of several
mesh2 objects, in a pov file, that I want to select in order to copy and
paste to another pov file, which also contains several mesh2 objects. The
only would I know to do this is to start selecting and scroll, and scroll,
and scroll.......and scroll until an eternity later I finally have the whole
thing selected. It seems like one ought to be able to tell Povray to "select
from line 8605 to line 17361" and it would be done, but I can't find any way
to do that, nor can I find anything in the documentation about it. Am I
stuck doing it the hard way?
Steve Shelby


Post a reply to this message

From: Steve Martin
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 09:29:38
Message: <3f671042@news.povray.org>
Steve Shelby wrote:
> Hi,
> Is there an easier way to do this? I have about 9,000 lines, one of several
> mesh2 objects, in a pov file, that I want to select in order to copy and
> paste to another pov file, which also contains several mesh2 objects. The
> only would I know to do this is to start selecting and scroll, and scroll,
> and scroll.......and scroll until an eternity later I finally have the whole
> thing selected.

If I'm understanding what you're asking, how about this? Select the first
line, then page/scroll down until you find the last line, and SHIFT-click on
the last line. This should select everything between the two points.

Hope this helps.


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 09:34:11
Message: <3f671153$1@news.povray.org>
Steve,
That's what I'm doing now. The problem is that it takes 5-10 minutes to
scroll down that many lines.
Steve

"Steve Martin" <ecp### [at] bellsouthnet> wrote in message
news:3f671042@news.povray.org...
> If I'm understanding what you're asking, how about this? Select the first
> line, then page/scroll down until you find the last line, and SHIFT-click
on
> the last line. This should select everything between the two points.
>
> Hope this helps.
>


Post a reply to this message

From: ABX
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 09:41:49
Message: <144emv44qg57n5inl0fjpkc6f52le1acl5@4ax.com>
On Tue, 16 Sep 2003 08:20:24 -0500, "Steve Shelby" <ssh### [at] rexnetnet> wrote:
> Hi,
> Is there an easier way to do this? I have about 9,000 lines, one of several
> mesh2 objects, in a pov file, that I want to select in order to copy and
> paste to another pov file, which also contains several mesh2 objects. The
> only would I know to do this is to start selecting and scroll, and scroll,
> and scroll.......and scroll until an eternity later I finally have the whole
> thing selected. It seems like one ought to be able to tell Povray to "select
> from line 8605 to line 17361" and it would be done, but I can't find any way
> to do that, nor can I find anything in the documentation about it. Am I
> stuck doing it the hard way?

You can do this in general way applying method like in... CSG object.
Applying intersection can be replaced with applying difference if you
understand what I mean :-)

BTW: what about asking gui specific question in gui specific group ?

ABX


Post a reply to this message

From: Warp
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 10:39:11
Message: <3f67208f@news.povray.org>
Steve Shelby <ssh### [at] rexnetnet> wrote:
> That's what I'm doing now. The problem is that it takes 5-10 minutes to
> scroll down that many lines.

  If you grab the scrollbar at the right and drag it down, it shouldn't
take too much. That's what the scrollbar is for.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Jim Charter
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 11:37:02
Message: <3f672e1e$1@news.povray.org>
Warp wrote:
> Steve Shelby <ssh### [at] rexnetnet> wrote:
> 
>>That's what I'm doing now. The problem is that it takes 5-10 minutes to
>>scroll down that many lines.
> 
> 
>   If you grab the scrollbar at the right and drag it down, it shouldn't
> take too much. That's what the scrollbar is for.
> 
If the file is very large it is difficlt to do this accurately.  One 
thing I try is to devise a strategy where I select off the topmost block
and either delete it or copy it.  That way I can use the Find to get to 
the middle point, mark it then 'scroll bar' quickly to the top and Shift 
click there to select the block.


Post a reply to this message

From: ABX
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 12:25:29
Message: <jrdemv8brfoighaectslio426naeab03e9@4ax.com>
On Tue, 16 Sep 2003 15:40:25 +0200, ABX <abx### [at] abxartpl> wrote:
> You can do this in general way applying method like in... CSG object.
> Applying intersection can be replaced with applying difference if you
> understand what I mean :-)

In case you didn't here is sequence of keys needed to cut lines from 8605 to
17361 within POV-Ray for Windows editor assuming your file is open and active

Ctrl+G
      8
       6
        0
         5
          Enter
               Shift+Ctrl+Home
                              Del
                                 Ctrl+G
                                       8
                                        7
                                         5
                                          6
                                           Enter
                                                Shift+Ctrl+End
                                                              Del
where 8756 is 17361-8605 :-)

ABX


Post a reply to this message

From: Tim Cook
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 12:54:59
Message: <3f674063$1@news.povray.org>
Wouldn't it be easier to just put the several thousand lines
in a separate .inc file?  Then you only need to move one line
in the .pov file. ;)


Post a reply to this message

From: Jerry
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 13:20:31
Message: <jerry-C52202.10202816092003@netplex.aussie.org>
In article <3f670e1a$1@news.povray.org>,
 "Steve Shelby" <ssh### [at] rexnetnet> wrote:

>Hi,
>Is there an easier way to do this? I have about 9,000 lines, one of several
>mesh2 objects, in a pov file, that I want to select in order to copy and
>paste to another pov file, which also contains several mesh2 objects. The
>only would I know to do this is to start selecting and scroll, and scroll,
>and scroll.......and scroll until an eternity later I finally have the whole
>thing selected. It seems like one ought to be able to tell Povray to "select
>from line 8605 to line 17361" and it would be done, but I can't find any way
>to do that, nor can I find anything in the documentation about it. Am I
>stuck doing it the hard way?
>Steve Shelby

#!/usr/bin/perl

while ($ARGV[0] =~ /^-(start|end)=([0-9]+)/) {
   $cmd = $1;
   $number = $2;
   if ($cmd eq 'start') {
      $startline = $number;
   } else {
      $endline = $number;
   }
   shift;
}

while (<>) {
   $line++;
   print if ($line >= $startline && ($endline<= 0 || $line <= $endline));
}

Save it as "clip" and ensure however you do so for your OS that it is 
executable.

Use as (on Unix)

clip -start=xx -end=xx filename

On Mac OS X, for example, I might use:

clip -start=8605 -end=17361 meshes.pov | pbcopy

And then I could paste those lines into another document.

On Linux, I might use:

clip -start=8605 -end=17361 meshes.pov > wantedmeshes.pov

to put those lines into a file called "wantedmeshes.pov"

I don't know the syntax for using perl on Windows, but it would probably 
be similar.

Leave out -start to start at the beginning, and leave out -end to go to 
the end. You can do multiple files, but it will start counting from the 
first file and continue on counting through subsequent files, which 
probably isn't generally what you want.

Jerry
-- 
"Give a man a fish and you feed him for a day. Teach him to fish, and you've
depleted the lake."--It Isn't Murder If They're Yankees
(http://www.ItIsntMurder.com/)


Post a reply to this message

From: Gilles Tran
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 14:33:47
Message: <3f67578b@news.povray.org>
"Steve Shelby" <ssh### [at] rexnetnet> a écrit dans le message de
news:3f670e1a$1@news.povray.org...
> to do that, nor can I find anything in the documentation about it. Am I
> stuck doing it the hard way?

Copy the file into a spreadsheet (e.g. Excel), do the job there and copy the
result back.
Actually I often use Excel for this sort of job.

G.


-- 
**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Tom Melly
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 14:58:47
Message: <3f675d67@news.povray.org>
"Steve Shelby" <ssh### [at] rexnetnet> wrote in message
news:3f670e1a$1@news.povray.org...
> Hi,
> Is there an easier way to do this? I have about 9,000 lines, one of
several

<snip>

It's been suggested once as a solution by Tim Cook, but it deserves
re-emphasising - right proper include files.

It's then very easy to either add or comment out, or modify a boolean to
change the scene option, and, in your case, which files are included.

This is the portable and native method in pov for doing what you want - why
re-invent the wheel?

Just have stuff like:

#declare do_man = false;
#declare do_woman = true;

#if(do_man)
    #include "man_msh.inc"
    object(man)
#end

#if(do_man)
    #include "woman_msh.inc"
    object(man)
#end


Post a reply to this message

From: Peter Popov
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 17:28:23
Message: <9nvemvcfbtmqsre6c070agg4rmea6m0iah@4ax.com>
On Tue, 16 Sep 2003 08:20:24 -0500, "Steve Shelby"
<ssh### [at] rexnetnet> wrote:

>Hi,
>Is there an easier way to do this?

Yes.

Go to the first line of the mesh file. Place a bookmark (Ctrl-F2). Go
to the opening brace of the mesh and find the matching closing brace
(Ctrl-] I think). Place a bookmark there on the line below the closing
brace. Go to the first bookmark (Shift-F2), then click and hold the
mouse button at the beginning of the line. Now go to the second
bookmark (F2) without releasing the mouse button. Voila.

Just tried it BTW. It works :)


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Marc Champagne
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 18:16:16
Message: <Xns93F8B97A048E3POVMIKA@204.213.191.226>
"Gilles Tran" <git### [at] wanadoofr> wrote in
news:3f67578b@news.povray.org: 

> "Steve Shelby" <ssh### [at] rexnetnet> a écrit dans le message
> de news:3f670e1a$1@news.povray.org...
>> to do that, nor can I find anything in the documentation
>> about it. Am I stuck doing it the hard way?
> 
> Copy the file into a spreadsheet (e.g. Excel), do the job
> there and copy the result back.
> Actually I often use Excel for this sort of job.

Oooooouch, so long as it works for you, I guess it's alright.

Excel does have a limit of 65,536 lines though.

I try as much as possible to stay away from word/excel, you
know whats going in but cannot rely on what comes out :) 

There are tons of "programmer" text editors out there up for
grabs, I very good one I have been using for a number of
years is editplus, you can have a look here.

    	http://www.editplus.com/. 

It supports

- PC/Mac/Unix line termination, you can switch on the fly.

- Plain-text, unicode, UTF-8

- It supports keyword highlighting for many languages.
  (you can define your own for POV code too)

For what it's worth, it can come very handy to some of you.

-- 
Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 19:39:11
Message: <3f679f1f$1@news.povray.org>
Peter,
Your answer looked like just the thing I was looking for, but when I tried
it, it went from the first bookmark to the second, as predicted, but without
highlighting. I tried it several times in several different ways, but the
best it would do was highlight the last line. Is it possible you left
something out of your instructions?
Steve

"Peter Popov" <pet### [at] vipbg> wrote in message
news:9nvemvcfbtmqsre6c070agg4rmea6m0iah@4ax.com...
> On Tue, 16 Sep 2003 08:20:24 -0500, "Steve Shelby"
> <ssh### [at] rexnetnet> wrote:
>
> >Hi,
> >Is there an easier way to do this?
>
> Yes.
>
> Go to the first line of the mesh file. Place a bookmark (Ctrl-F2). Go
> to the opening brace of the mesh and find the matching closing brace
> (Ctrl-] I think). Place a bookmark there on the line below the closing
> brace. Go to the first bookmark (Shift-F2), then click and hold the
> mouse button at the beginning of the line. Now go to the second
> bookmark (F2) without releasing the mouse button. Voila.
>
> Just tried it BTW. It works :)
>
>
> Peter Popov ICQ : 15002700
> Personal e-mail : pet### [at] vipbg
> TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Jim Charter
Subject: Re: selecting several thousand lines in pov file
Date: 16 Sep 2003 19:40:10
Message: <3f679f5a$1@news.povray.org>
Peter Popov wrote:
> On Tue, 16 Sep 2003 08:20:24 -0500, "Steve Shelby"
> <ssh### [at] rexnetnet> wrote:
> 
> 
>>Hi,
>>Is there an easier way to do this?
> 
> 
> Yes.
> 
> Go to the first line of the mesh file. Place a bookmark (Ctrl-F2). Go
> to the opening brace of the mesh and find the matching closing brace
> (Ctrl-] I think). Place a bookmark there on the line below the closing
> brace. Go to the first bookmark (Shift-F2), then click and hold the
> mouse button at the beginning of the line. Now go to the second
> bookmark (F2) without releasing the mouse button. Voila.
> 
> Just tried it BTW. It works :)
> 
> 
> Peter Popov ICQ : 15002700
> Personal e-mail : pet### [at] vipbg
> TAG      e-mail : pet### [at] tagpovrayorg

Are you sure?  When I tried it over a large number of lines, only the 
last dozen or so lines remained selected.


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 08:00:35
Message: <3f684ce3@news.povray.org>
Warp,
It is not possible to highlight text and use the scrollbar at the same time.
Steve

"Warp" <war### [at] tagpovrayorg> wrote in message
news:3f67208f@news.povray.org...
> Steve Shelby <ssh### [at] rexnetnet> wrote:
> > That's what I'm doing now. The problem is that it takes 5-10 minutes to
> > scroll down that many lines.
>
>   If you grab the scrollbar at the right and drag it down, it shouldn't
> take too much. That's what the scrollbar is for.
>
> -- 
> #macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb
x]
> [1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
> -1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// -
Warp -


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 08:29:22
Message: <3f6853a2@news.povray.org>
ABX,
I tried what you suggested, and it deletes everything else in the pov file
except for lines 8605 through 17361. Not exactly what I had in mind.
Steve

"ABX" <abx### [at] abxartpl> wrote in message
news:jrdemv8brfoighaectslio426naeab03e9@4ax.com...
> On Tue, 16 Sep 2003 15:40:25 +0200, ABX <abx### [at] abxartpl> wrote:
> > You can do this in general way applying method like in... CSG object.
> > Applying intersection can be replaced with applying difference if you
> > understand what I mean :-)
>
> In case you didn't here is sequence of keys needed to cut lines from 8605
to
> 17361 within POV-Ray for Windows editor assuming your file is open and
active
>
> Ctrl+G
>       8
>        6
>         0
>          5
>           Enter
>                Shift+Ctrl+Home
>                               Del
>                                  Ctrl+G
>                                        8
>                                         7
>                                          5
>                                           6
>                                            Enter
>                                                 Shift+Ctrl+End
>                                                               Del
> where 8756 is 17361-8605 :-)
>
> ABX


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 08:30:21
Message: <3f6853dd$1@news.povray.org>
In article <3f684ce3@news.povray.org> , "Steve Shelby" <ssh### [at] rexnetnet>
wrote:

> Warp,
> It is not possible to highlight text and use the scrollbar at the same time.
> Steve

He didn't say you should to both at the same time, did he?  But really, how
to use the scrollbar and select text is so obvious, everybody else in this
thread knows...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: ABX
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 08:34:33
Message: <ctkgmv0r9vp1he9iaqj01uuhbn5ib42kg3@4ax.com>
On Wed, 17 Sep 2003 07:28:57 -0500, "Steve Shelby" <ssh### [at] rexnetnet> wrote:
> ABX,
> I tried what you suggested, and it deletes everything else in the pov file
> except for lines 8605 through 17361. Not exactly what I had in mind.
> Steve

Why ? You asked how to select lines from 8605 to 17361 in an easy way. Select
for what? For copying into another file? Do Ctrl+A to select content in
editor, Ctrl+C to put it in clipboard, and finaly call undo twice to return
earlier cuts and be at initial state.

ABX


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 08:37:05
Message: <3f685571$1@news.povray.org>
In article <3f6853a2@news.povray.org> , "Steve Shelby" <ssh### [at] rexnetnet>
wrote:

> I tried what you suggested, and it deletes everything else in the pov file
> except for lines 8605 through 17361. Not exactly what I had in mind.

But now you can select *everything* and copy it.  Then undo your actions and
you get what you want.

Really, I don't see why you are so inflexible with this, after all, the
"problem" you have is exactly the same in every other GUI text editor.  And
you got tons of suggestions how to do what you want easily.  If you can
describe how you think this should work without you doing anything, then by
all means, I think we all would like to know!  If not, then just use one of
the many methods suggested and live happily ever after :-)

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 08:57:18
Message: <3f685a2e@news.povray.org>
ABX, Thorsten,
OK, OK, I get your point. I was just wishing that there would be a *really
simple* way to do it, such as "select text between lines 2000 and 10000".
Maybe it would be something for future development?
Steve

"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3f685571$1@news.povray.org...
> In article <3f6853a2@news.povray.org> , "Steve Shelby"
<ssh### [at] rexnetnet>
> wrote:
>
> > I tried what you suggested, and it deletes everything else in the pov
file
> > except for lines 8605 through 17361. Not exactly what I had in mind.
>
> But now you can select *everything* and copy it.  Then undo your actions
and
> you get what you want.
>
> Really, I don't see why you are so inflexible with this, after all, the
> "problem" you have is exactly the same in every other GUI text editor.
And
> you got tons of suggestions how to do what you want easily.  If you can
> describe how you think this should work without you doing anything, then
by
> all means, I think we all would like to know!  If not, then just use one
of
> the many methods suggested and live happily ever after :-)
>
>     Thorsten
>
> ____________________________________________________
> Thorsten Froehlich, Duisburg, Germany
> e-mail: tho### [at] trfde
>
> Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: ABX
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 09:15:18
Message: <01ngmvkqolklgd7l9base9ceeqc1q2cdjg@4ax.com>
On Wed, 17 Sep 2003 07:56:44 -0500, "Steve Shelby" <ssh### [at] rexnetnet> wrote:
> ABX, Thorsten,
> OK, OK, I get your point. I was just wishing that there would be a *really
> simple*

I'm sure you are refering to complexity of substracting line numbers. Just
replace order of cuting parts and then no math is necessary ;-)

> Maybe it would be something for future development?

Seriously, how long do you use POV-Ray? How many times you needed it earlier?
I work with text editors for more than 10 hours a day for years and I do not
remember if I needed it at all. But as you see there is many workarounds I
could apply for my needs my favorite if I wish...

ABX


Post a reply to this message

From: Hugo Asm
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 12:35:01
Message: <3f688d35$1@news.povray.org>
> Go to the first line of the mesh file. Place a bookmark (Ctrl-F2). Go
> to the opening brace of the mesh and find the matching closing brace
> (Ctrl-] I think). Place a bookmark there on the line below the closing
> brace. Go to the first bookmark (Shift-F2), then click and hold the
> mouse button at the beginning of the line. Now go to the second
> bookmark (F2) without releasing the mouse button. Voila.
>
> Just tried it BTW. It works :)

It doesn't work for me... But it would be nice if it worked. Sometimes I
have the same problem as described by Steve Shelby.

Regards,
Hugo


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 14:11:05
Message: <3f68a3b9$1@news.povray.org>
I found it! Not being one to accept defeat easily, I did a Google search for
"selecting text" and found this: Put the curser at the beginning of the
first line. Holding down the shift key, use the scroll bar to move down to
the last line to select. Then simply click below the last line, while still
holding down the shift key, and, voila! The desired number of lines is
selected. I tried it, and it works. It takes about five seconds. This is the
*easy* solution I was looking for.;~^}>
Steve

"Steve Shelby" <ssh### [at] rexnetnet> wrote in message
news:3f670e1a$1@news.povray.org...
> Hi,
> Is there an easier way to do this? I have about 9,000 lines, one of
several
> mesh2 objects, in a pov file, that I want to select in order to copy and
> paste to another pov file, which also contains several mesh2 objects. The
> only would I know to do this is to start selecting and scroll, and scroll,
> and scroll.......and scroll until an eternity later I finally have the
whole
> thing selected. It seems like one ought to be able to tell Povray to
"select
> from line 8605 to line 17361" and it would be done, but I can't find any
way
> to do that, nor can I find anything in the documentation about it. Am I
> stuck doing it the hard way?
> Steve Shelby
>
>


Post a reply to this message

From: ABX
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 14:19:27
Message: <n69hmv4euqoaat16jsrl643t88v5d2d5a5@4ax.com>
On Wed, 17 Sep 2003 13:11:03 -0500, "Steve Shelby" <ssh### [at] rexnetnet> wrote:
> I found it! Not being one to accept defeat easily, I did a Google search for
> "selecting text" and found this: Put the curser at the beginning of the
> first line. Holding down the shift key, use the scroll bar to move down to
> the last line to select. Then simply click below the last line, while still
> holding down the shift key, and, voila! The desired number of lines is
> selected. I tried it, and it works. It takes about five seconds. This is the
> *easy* solution I was looking for.;~^}>

Huh ? In what way this is simpler than the method Steve Martin proposed to you
in first answer of this thread ? In his method you did exactly the same except
pressing Shift once during final click instead of holding it down for whole
five seconds.

ABX


Post a reply to this message

From: Warp
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 14:36:13
Message: <3f68a99d@news.povray.org>
Steve Shelby <ssh### [at] rexnetnet> wrote:
> Warp,
> It is not possible to highlight text and use the scrollbar at the same time.
> Steve

  Read the original instructions:

  1. Click on the starting place, where you want to start to select.
  2. Go to the ending place, ie the last line you want to select (you
     can use the scrollbar to go there).
  3. Shift-click on this ending place.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 18:09:24
Message: <3f68db94$1@news.povray.org>
ABX,
You're right. I must have read Steve Martin's Post too quickly to understand
it correctly. Please accept my Appologies, everyone (especially Steve
Martin), for being so obtuse.
Steve

"ABX" <abx### [at] abxartpl> wrote in message
news:n69hmv4euqoaat16jsrl643t88v5d2d5a5@4ax.com...
> On Wed, 17 Sep 2003 13:11:03 -0500, "Steve Shelby" <ssh### [at] rexnetnet>
wrote:
> > I found it! Not being one to accept defeat easily, I did a Google search
for
> > "selecting text" and found this: Put the curser at the beginning of the
> > first line. Holding down the shift key, use the scroll bar to move down
to
> > the last line to select. Then simply click below the last line, while
still
> > holding down the shift key, and, voila! The desired number of lines is
> > selected. I tried it, and it works. It takes about five seconds. This is
the
> > *easy* solution I was looking for.;~^}>
>
> Huh ? In what way this is simpler than the method Steve Martin proposed to
you
> in first answer of this thread ? In his method you did exactly the same
except
> pressing Shift once during final click instead of holding it down for
whole
> five seconds.
>
> ABX


Post a reply to this message

From: Hugo Asm
Subject: Re: selecting several thousand lines in pov file
Date: 18 Sep 2003 04:31:46
Message: <3f696d72@news.povray.org>
That solution isn't what I'm looking for. When I have very big files (mesh2)
I can't rely on the scrollbar to find the line I want. It's not accurate
enough. Finding (and selecting) the first line is easy - usually I use
'search' for an opening brace. But finding the next closing brace is not
easy. It's "hidden" somewhere in the mess (mesh) and therefore, I end up
using the arrow keys for several minutes to select the right set of lines..

No complaining though.. but you brought up the subject.

Regards,
Hugo


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 18 Sep 2003 08:51:39
Message: <3f69aa5b$1@news.povray.org>
Hugo,
Try this: Click in front of the first bracket, then go to Search and click
Match Brace, or simply click ctrl+], and it will go to the last bracket of
the mesh. At the bottom of the window there is a box that tells you the line
number, e.g., L:17361. Remember that number. Now go back to the beginning of
the file and click in front of the first line. Now, when you click on the
scrollbar, notice that a box will appear at the middle right of the screen
with the line number in it. As you pull the scrollbar down, the number goes
up. You should be able to get within a hundred or so of where you want to
be, and then you can use the up or down arrow if you need to. I just tried
it and found that it's not hard to get the end of the mesh right within view
by looking at the scrolling page number while using the scrollbar. With a
little practice it becomes a very easy task.
Steve

"Hugo Asm" <hua### [at] post3teledk> wrote in message
news:3f696d72@news.povray.org...
> That solution isn't what I'm looking for. When I have very big files
(mesh2)
> I can't rely on the scrollbar to find the line I want. It's not accurate
> enough. Finding (and selecting) the first line is easy - usually I use
> 'search' for an opening brace. But finding the next closing brace is not
> easy. It's "hidden" somewhere in the mess (mesh) and therefore, I end up
> using the arrow keys for several minutes to select the right set of
lines..
>
> No complaining though.. but you brought up the subject.
>
> Regards,
> Hugo
>
>


Post a reply to this message

From: Remco de Korte
Subject: Re: selecting several thousand lines in pov file
Date: 18 Sep 2003 18:24:07
Message: <3F6A3022.57C52746@onwijs.com>
This will probably not answer the question OR have been mentioned
several times before but having read this thread today I realized I have
to do this quite often. I never thought about it until today. Here's
what I do: move the cursor to the start of the selection. Hold Shift
down and move the cursor down. This can be done by simply scrolling with
the down key, scrolling faster with the PgDn key or jumping to the end
of the file with Ctrl-PgDn. When you're at the end of the selection
release the Shift and presto. I guess the relevant point here is that
you don't use the mouse (prevents RSI too).

Perhaps we need a tutorial on scrolling or should this just be part of
the POVRay documentation?

Cheers!

Remco


Post a reply to this message

From: Marc Champagne
Subject: Re: selecting several thousand lines in pov file
Date: 18 Sep 2003 19:18:35
Message: <Xns93FAC3FF2A74APOVMIKA@204.213.191.226>
Remco de Korte <rem### [at] onwijscom> wrote in
news:3F6A3022.57C52746@onwijs.com: 

> This will probably not answer the question OR have been
> mentioned several times before but having read this thread
> today I realized I have to do this quite often. I never
> thought about it until today. Here's what I do: move the
> cursor to the start of the selection. Hold Shift down and
> move the cursor down. This can be done by simply scrolling
> with the down key, scrolling faster with the PgDn key or
> jumping to the end of the file with Ctrl-PgDn. When you're
> at the end of the selection release the Shift and presto. I
> guess the relevant point here is that you don't use the
> mouse (prevents RSI too). 
> 
> Perhaps we need a tutorial on scrolling or should this just
> be part of the POVRay documentation?

Remco,

This reply is not targeted at you but to the entire thread.

What you describe is part of the most mudane functionalities
of windows and whatever happens to run on it (so long as the
authors of said 3rd party software(s) respect the common
windows' way of doing things for basic editing methodes). 

I do think the docs should mention that is uses basic
windows' editing methodes along with anything else it can do
that is not common to windows. These basic functionalities
should be second-nature to most, unless they are also new to
windows. 

This could also apply to any other operating system you may
be using. 

I do believe this entire thread should have been in
povray.newusers to begin with.

My 2 scales :)

-- 
Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA


Post a reply to this message

From: Remco de Korte
Subject: Re: selecting several thousand lines in pov file
Date: 18 Sep 2003 23:41:05
Message: <3F6A7A6B.6BD3FCAC@onwijs.com>
Marc Champagne wrote:
> 
> Remco,
> 
> This reply is not targeted at you but to the entire thread.
> 

I don't mind, I was just having fun...
I completely agree with what you're saying but somehow this thread had a
sort of bizarre appeal.

Cheers!

Remco


Post a reply to this message

From: Hugo Asm
Subject: Re: selecting several thousand lines in pov file
Date: 19 Sep 2003 10:19:50
Message: <3f6b1086$1@news.povray.org>
> These basic functionalities should be second-nature
> to most, unless they are also new to windows.

Perhaps they should, but I've been using Windows for 8 years and still have
only learned the things I'm forced to learn. The things I need to do often.
I think most users haven't taken a course in Windows. We focus on the
software that run on Windows, not Windows itself.

The thread could have gone elsewhere. I agree.

Regards,
Hugo


Post a reply to this message

From: Warp
Subject: Re: selecting several thousand lines in pov file
Date: 19 Sep 2003 11:41:57
Message: <3f6b23c5@news.povray.org>
Hugo Asm <hua### [at] post3teledk> wrote:
> I think most users haven't taken a course in Windows.

  Why do you think one needs to go to a course in order to learn to
use Windows?
  Besides, I would bet they don't teach these kind of things in those
courses.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Marc Champagne
Subject: Re: selecting several thousand lines in pov file
Date: 19 Sep 2003 18:28:01
Message: <Xns93FBBB6E5AFBFPOVMIKA@204.213.191.226>
"Hugo Asm" <hua### [at] post3teledk> wrote in
news:3f6b1086$1@news.povray.org: 

>> These basic functionalities should be second-nature
>> to most, unless they are also new to windows.
> 
> Perhaps they should, but I've been using Windows for 8
> years and still have only learned the things I'm forced to

I like the word "forced" here :)

> learn. The things I need to do often. I think most users
> haven't taken a course in Windows. We focus on the software
> that run on Windows, not Windows itself. 

Ditto... unfortunetly.

ciao

-- 
Marc Champagne
marcch.AT.videotron.DOT.ca
Montreal, CANADA


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.