POV-Ray : Newsgroups : povray.macintosh : Importing templates not working on 3.6 Server Time
16 Sep 2021 05:57:07 EDT (-0400)
  Importing templates not working on 3.6 (Message 1 to 5 of 5)  
From: Apollo 16
Subject: Importing templates not working on 3.6
Date: 8 Aug 2006 00:25:00
Message: <web.44d8116d82a8895ab83c34e90@news.povray.org>
I did a search and found reference to this for beta versions of 3.5 and
older versions of OS X. I am using 3.6 build 0197 and 10.3.9. The import
menu brings up the browse window but all the templates are grayed out no
matter what the pulldown choice is (i.e. pov docs, all docs etc.). Windows
templates aren't grayed out but only the folder shows up in the templates
window and it is empty. If I quit POV-Ray, then even the empty folder
disappears. Is this still a bug or is it a wetware issue? (i.e. I'm
screwing up.)

Thanks!

Apollo 16


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Importing templates not working on 3.6
Date: 8 Aug 2006 02:42:08
Message: <44d83240@news.povray.org>
Apollo 16 wrote:
> I did a search and found reference to this for beta versions of 3.5 and
> older versions of OS X. I am using 3.6 build 0197 and 10.3.9. The import
> menu brings up the browse window but all the templates are grayed out no
> matter what the pulldown choice is (i.e. pov docs, all docs etc.).

If you select "All Documents" this cannot be the case as it is a
system-supplied setting allowing you to select any kind of file. Most likely
you are looking at files you do not have the permission to read, or
something else that are not actually files (i.e. folder, clipboard pieces,
aliases, etc)

> Windows
> templates aren't grayed out but only the folder shows up in the templates
> window and it is empty.

Most likely you are not actually importing a Windows template folder then,
but just some other arbitrary folder and POV-Ray tries its best to make
sense of that selection. If you didn't get a folder in the proper format
from a Windows system and know it worked there as a whole, it most likely
wasn't a Windows template folder. Also note that you really need to select
the Windows template folder, not some sub-folder inside it.

> If I quit POV-Ray, then even the empty folder disappears.

If the folder containing POV-Ray is locked, you cannot change your
templates. Further, template folders that contain no items may be deleted.
As such, either of the two conditions may be your problem.

	Thorsten


Post a reply to this message

From: Apollo 16
Subject: Re: Importing templates not working on 3.6
Date: 8 Aug 2006 23:00:01
Message: <web.44d94efe9d914eb0b83c34e90@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:

> > Windows
> > templates aren't grayed out but only the folder shows up in the templates
> > window and it is empty.
>
> Most likely you are not actually importing a Windows template folder then,
> but just some other arbitrary folder and POV-Ray tries its best to make
> sense of that selection. If you didn't get a folder in the proper format
> from a Windows system and know it worked there as a whole, it most likely
> wasn't a Windows template folder. Also note that you really need to select
> the Windows template folder, not some sub-folder inside it.


It is a windows template folder that works on a pc. It was zipped and sent
via email to me and I upzipped it and tried to import it. I imagine that
something could be corrupt but when I had it resent, still no go.


> > If I quit POV-Ray, then even the empty folder disappears.
>
> If the folder containing POV-Ray is locked, you cannot change your
> templates. Further, template folders that contain no items may be deleted.
> As such, either of the two conditions may be your problem.
>
>  Thorsten


I thought you had something there with the locked idea. I never lock
anything but, just in case, I verified and none of my POV-Ray folders,
subfolders or files are locked and all are on the hard drive not some other
media.

So back to the very basics....

In theory, is the following procedure correct?

Should I be able to import into templates a simple POV-Ray text file (for
the sake of argument let's say... cylinder1.pov from the scene folder in
the original 3.6 download) by using the pulldown templates menu, clicking
on import, clicking on From File..., selecting cylinder1.pov with POV-Ray
text file selected in the pulldown and clicking open?

This procedure doesn't work for me.

Granted this is not a big deal... all the templates I want to import open
directly in POV-Ray and I can access them. It's just a pain to have to go
searching for them each time.

I have been lurking here for... ahem... going on several years now. (I post
rarely as my questions are relatively mundane and I can usually find my
answers using the search feature.) I have always appreciated your quick
responses. Thank you Thorsten.

Apollo 16


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Importing templates not working on 3.6
Date: 9 Aug 2006 02:29:26
Message: <44d980c6@news.povray.org>
Apollo 16 wrote:
> In theory, is the following procedure correct?

No.

> Should I be able to import into templates a simple POV-Ray text file (for
> the sake of argument let's say... cylinder1.pov from the scene folder in
> the original 3.6 download) by using the pulldown templates menu, clicking
> on import, clicking on From File..., selecting cylinder1.pov with POV-Ray
> text file selected in the pulldown and clicking open?
> 
> This procedure doesn't work for me.

A POV-Ray scene file is not what you can insert this way. I have to admit
the documentation does not go into a lot of details, but what the file
import is for is the import of the "old" Mac template file format. It was
documented in the previous versions of POV-Ray that supported it. Unless
your file is in that format (which means it has to contain special markers,
but is otherwise more or less a scene file, just with multiple templates),
nothing will show up when imported.

	Thorsten


Post a reply to this message

From: Apollo 16
Subject: Re: Importing templates not working on 3.6
Date: 9 Aug 2006 13:40:00
Message: <web.44da1d9b9d914eb0b82c8b5f0@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> Apollo 16 wrote:
> > In theory, is the following procedure correct?
>
> No.
>
> > Should I be able to import into templates a simple POV-Ray text file (for
> > the sake of argument let's say... cylinder1.pov from the scene folder in
> > the original 3.6 download) by using the pulldown templates menu, clicking
> > on import, clicking on From File..., selecting cylinder1.pov with POV-Ray
> > text file selected in the pulldown and clicking open?
> >
> > This procedure doesn't work for me.
>
> A POV-Ray scene file is not what you can insert this way. I have to admit
> the documentation does not go into a lot of details, but what the file
> import is for is the import of the "old" Mac template file format. It was
> documented in the previous versions of POV-Ray that supported it. Unless
> your file is in that format (which means it has to contain special markers,
> but is otherwise more or less a scene file, just with multiple templates),
> nothing will show up when imported.
>
>  Thorsten

One mystery solved. It's too bad that I misunderstood what that function was
for. It would have been a great time saver for me to be able to import my
own templates. (Pouring through the actual uncompiled POV-Ray code to
figure out how to fake the header is just too much like work.)

Thanks!

Apollo 16


Post a reply to this message

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