I have been using photoscan 0.9 api up until now. I am finally making my way in to the upgraded, feature removed, api 1.0+. And boy oh boy is it painful, convoluted, and stripped of information.
Where do I even start? Adding photos I suppose... I do not want to use the command .addPhotos(). I want to add a single photo, get the object returned, do some stuff like label changing, and then add a mask. All I have been met with is frustration, and confusion. The docs have basically zero information...
why does this not work.
doc = PhotoScan.app.document
chunk = doc.chunks[0]
cam = chunk.addCamera()
cam.open( imagePath )
cam.label = "pleaseWork"
maskPhoto = PhotoScan.Mask()
maskPhoto.load( maskPath )
PhotoScan.utils.createDifferenceMask( cam.photo.image(), maskPhoto.image() , 12)
....
Why are things returning true or false, this information is useless, why have you switched to giving less information back to the user? Am I the only one complaining about this? Am I using this newer API just absolutely wrong? Why the convoluted, mask.load() but cam.open().... I apologize about bashing your code like this, but the previous implementation was leaps and bounds better, and more pythonic, in my opinion.