POV-Ray : Newsgroups : povray.windows : Editing vs. Rendering a file Server Time
23 Nov 2024 18:30:38 EST (-0500)
  Editing vs. Rendering a file (Message 1 to 8 of 8)  
From: Tim Cook
Subject: Editing vs. Rendering a file
Date: 23 Oct 2003 20:16:56
Message: <3f986f78$1@news.povray.org>
Having just re-installed POV after a system rebuild, when
I right-click and try to open an .inc file in POV, it tries
to render it instead of opening it for editing...I don't
see anywhere to fix this behaviour to where it used to be,
and 'command line' related topics in the help file don't
list anything.  Help?


Post a reply to this message

From: Hughes, B 
Subject: Re: Editing vs. Rendering a file
Date: 23 Oct 2003 22:02:52
Message: <3f98884c@news.povray.org>
"Tim Cook" <z99### [at] bellsouthnet> wrote in message
news:3f986f78$1@news.povray.org...
> Having just re-installed POV after a system rebuild, when
> I right-click and try to open an .inc file in POV, it tries
> to render it instead of opening it for editing...I don't
> see anywhere to fix this behaviour to where it used to be,
> and 'command line' related topics in the help file don't
> list anything.  Help?

Do the files, as seen in Explorer for example, have POV-Ray icons something
else?

I'm thinking it could mean your Windows has associated them with POV. Mine
here are not. If that's the case, and reason for the problem, then you could
try going into the Tools menu (of My Computer or Explorer) and selecting
(Folder) Options, then File Types. Find INC in that list and choose
something else like Notepad to open those. Hopefully that's the route to
there in your version of Windows, could be View menu then Options instead,
since seems like Win95 did it that way. I forget now.

Bob H.


Post a reply to this message

From: Tim Cook
Subject: Re: Editing vs. Rendering a file
Date: 23 Oct 2003 22:36:18
Message: <3f989022$1@news.povray.org>
Hughes, B. wrote:
> I'm thinking it could mean your Windows has associated them with POV. Mine
> here are not. If that's the case, and reason for the problem, then you could
> try going into the Tools menu (of My Computer or Explorer) and selecting
> (Folder) Options, then File Types. Find INC in that list and choose
> something else like Notepad to open those.

Actually it uses notepad by default to open them.  I want to use POV.
POV opening them just tries to render them, instead of opening them in
its editor as it did prior to my system rebuild.


Post a reply to this message

From: Hughes, B 
Subject: Re: Editing vs. Rendering a file
Date: 23 Oct 2003 23:02:30
Message: <3f989646@news.povray.org>
"Tim Cook" <z99### [at] bellsouthnet> wrote in message
news:3f989022$1@news.povray.org...
> Hughes, B. wrote:
> > I'm thinking it could mean your Windows has associated them with POV.
Mine
> > here are not. If that's the case, and reason for the problem, then you
could
> > try going into the Tools menu (of My Computer or Explorer) and selecting
> > (Folder) Options, then File Types. Find INC in that list and choose
> > something else like Notepad to open those.
>
> Actually it uses notepad by default to open them.  I want to use POV.
> POV opening them just tries to render them, instead of opening them in
> its editor as it did prior to my system rebuild.

Sorry, I misunderstood then. Thought you were saying when you right-clicked
on #include "a_file.inc" from within the POV editor, to open it, that it was
rendering somehow.

Should be able to edit the settings there where I said. Oh wait... hmmmm.
Well now that I look for it myself I don't even have an entry for that
particular file type yet.
Okay, I just added one and made a new action to edit the file in POV-Ray. I
have always used Notepad for quick editing and checking content of include
files since it's so much faster and doesn't interfere with a currently
running POV-Ray session. I've made the program command line say "C:\Program
Files\POV-Ray for Windows v3.5\bin\pvengine.exe" /edit %1  so I think that
ought to work.

Isn't working yet, maybe I need to reboot. I'll check on this and get back
to you, unless someone else has the solution already. Maybe I've overlooked
something. Wish I could remember this stuff better.  :-)
-- 
Bob H.


Post a reply to this message

From: Hughes, B 
Subject: Re: Editing vs. Rendering a file
Date: 23 Oct 2003 23:41:02
Message: <3f989f4e@news.povray.org>
Okay, figured it out. All I had to do is see how the pov file type was set
up and it was different from the default way Windows XP tries to set it.

The following line is used in the "application" field:

C:\PROGRA~1\POV-RA~1.5\bin\pvengine.exe /EDIT "%1"

Again, you will either need to add or edit the INC entry into the File Types
listing. Let me try and go step by step here in case anyone else happens
across this message thread.

Go into My Computer (or Explorer).

Tools menu, select Folder Options... (View menu, Options... if Win95/98).

Choose the File Types section.

Select INC from the list, if exists, or press New button to create it.

If exists, press Advanced button. If not, go back and select INC after
creation then do this part.

Now, name it POV-Ray include file in top field. Change icon if you like,
too.

Press the New... button (unless existed already).

For Action: type in  &Edit  and for Application used to perform action: use
C:\PROGRA~1\POV-RA~1.5\bin\pvengine.exe /EDIT "%1"  but based on the path
your POV-Ray is located if different, as well as version number (~1.5 here
is acutally 3.5, 3.1 would be ~1.1).

If you already had a INC entry then you'll press Edit... button instead of
New... (possibly even Remove an item first). And you can also make it the
Default action while there.

This should help, as I've tested it in XP here and it works right.

Bob H.


Post a reply to this message

From: Tim Cook
Subject: Re: Editing vs. Rendering a file
Date: 24 Oct 2003 04:06:23
Message: <3f98dd7f$1@news.povray.org>
Hughes, B. wrote:
> The following line is used in the "application" field:
> C:\PROGRA~1\POV-RA~1.5\bin\pvengine.exe /EDIT "%1"

Whee that fixed it.  Even added another option that does a
/render, so I can right-click and have render or edit in my
menu.  ^_^


Post a reply to this message

From: Tim Cook
Subject: Re: Editing vs. Rendering a file
Date: 24 Oct 2003 04:08:37
Message: <3f98de05$1@news.povray.org>
Hughes, B. wrote:
> For Action: type in  &Edit  and for Application used to perform action: use
> C:\PROGRA~1\POV-RA~1.5\bin\pvengine.exe /EDIT "%1"  but based on the path
> your POV-Ray is located if different, as well as version number (~1.5 here
> is acutally 3.5, 3.1 would be ~1.1).

(As a side note, if you use double quotes around the program path, as
with the %1, you don't have to truncate the names and leave out spaces.)
e.g. "C:\Program Files\POV-Ray for Windows 3.5\bin\pvengine.exe" /EDIT
"%1"


Post a reply to this message

From: Hughes, B 
Subject: Re: Editing vs. Rendering a file
Date: 24 Oct 2003 09:30:16
Message: <3f992968@news.povray.org>
"Tim Cook" <z99### [at] bellsouthnet> wrote in message
news:3f98de05$1@news.povray.org...
> Hughes, B. wrote:
> > For Action: type in  &Edit  and for Application used to perform action:
use
> > C:\PROGRA~1\POV-RA~1.5\bin\pvengine.exe /EDIT "%1"  but based on the
path
> > your POV-Ray is located if different, as well as version number (~1.5
here
> > is acutally 3.5, 3.1 would be ~1.1).
>
> (As a side note, if you use double quotes around the program path, as
> with the %1, you don't have to truncate the names and leave out spaces.)
> e.g. "C:\Program Files\POV-Ray for Windows 3.5\bin\pvengine.exe" /EDIT
> "%1"

Ahh, good, thanks for telling of that! Oh, everyone, don't forget that "v"
in front of the version number.

I figured the POV for Windows installation was using the best alternative to
fit any Windows situation by going with the truncated path, but when I tried
the long file name way I overlooked putting quotes on the file name
parameter %1 and instead had quoted the entire thing or just the path name.

I like your idea to add a render option to inc's, guess I'll do that too.
What I need to figure out now is how to force them to open in Notepad as
main choice (left-click) then give me the other options to open into POV-Ray
in a right-click menu.

Well, just checked on that and it was simple, all I had to do is use
different actions/applications and set the Notepad one as default. Yea! I
should have done this long ago. ;-)
-- 
Bob H.
http://www.3digitaleyes.com


Post a reply to this message

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