POV-Ray : Newsgroups : povray.general : Include path : Include path Server Time
15 Jul 2026 13:29:21 EDT (-0400)
  Include path  
From: Maetes
Date: 14 Jul 2026 07:40:00
Message: <web.6a561ebf7c9b290f84cf3cd730225ff5@news.povray.org>
Is there a way to find out in an included script where it is relative to the
executed script?

Problem: I include a script that needs to include more scripts, textures in
separate files, or images. Unfortunately, it is the case that the path of the
executed script applies in the included script.

#include "textures.inc"

therefore does not lead to success there.

At the moment I do this by setting a path before the first include.

#declare Coupe_Path = ".. /base/cars/coupe/";

I then use this path with Concat, and thus include further scripts and images.

Is there a better method?

I think there is the possibility to give general include_path, but I don't want
to use it. That would be too many and the folder structure changes often.

Ma


Post a reply to this message

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