Hi there,
This is my first dabble in python programming in photoscan, and my first dabble in python for over 10 years so please excuse my ignorance!
I am just trying individual commands in the console window at present, trying to get it to build texture from a single image.
I have a chunk with 17 aligned cameras and geometry already present (93k faces).
My problem is that having finally worked out how to access cameras and frames, the buildTexture function executes happily but returns false, i.e. the texture is not built.
Does anyone know if I am far off getting this to work?!
Thanks
James
>>> import PhotoScan
>>> doc = PhotoScan.app.document
>>> camera = PhotoScan.Cameras(doc.activeChunk)[7]
>>> frame = PhotoScan.Frames(camera)[0]
>>> doc.activeChunk.buildTexture(mapping="camera",width=2048,height=2048,format="U8",camera=frame)
False
Finished processing in 0 sec (exit code 0)
>>>