GenerateTexturePath issue
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/02/2010 at 18:21, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.5+
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ;---------
In my needs to access bitmaps I've found a problem.
According to the SDK "GenerateTexturePath("name", doc->GetFileName)"
it should use the Cinema texpath routines."[Filename] GenerateTexturePath([string] texturename, [Filename] docpath);
This functions searches with CINEMA's own routines in all paths (tex, startup, global texture paths, document) for the file specified with the name texturename. If found it will return the full pathname for access."However, I can only generate a path if the texture is within the global texture path(s).
The other places (document level, tex folder level etc) is simply ignored.Atm I've written my own search functions, but it's a bit clumpsy compared with
if the GenerateTexPath function should work as described.I've tried in R10.5 and up with the same issue it seems.
Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/03/2010 at 06:45, xxxxxxxx wrote:
It's a mistake in the docu. You have to pass the path of the document without the filename of the document.
var fn = doc->GetFilename(); fn->RemoveLast(); var res = GenerateTexturePath("test.jpg",fn); if (res!=NULL) println("found at ", res->GetFullString()); else println("not found");
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 01/03/2010 at 14:25, xxxxxxxx wrote:
Thanks, Matthias.
Pretty logicalCheers
Lennart