1
Python and Java API / Re: Exporting a JPG texture after a succesfull buildTexture seems failing
« on: April 12, 2014, 05:17:18 PM »
Thats great help. Worked flawlessly.
thanks again.
thanks again.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
import PhotoScan
doc = PhotoScan.app.document
doc.open('C:/Users/User/Desktop/ref/001/scene.psz')
model = PhotoScan.Model()
model.load('C:/Users/User/Desktop/ref/001/uvedGeo.obj','obj')
chunk = doc.activeChunk
chunk.model = model
chunk.buildTexture(mapping="current", blending="average",size=2048,count=1)
# executing the following line ends with error
model.saveTexture('C:/Users/User/Desktop/testing.jpg')
# RuntimeError: Model.exportTexture(): model has no texture