Forum

Show Posts

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.


Topics - IvanShubin

Pages: [1]
1
Python and Java API / Editing reconstruction volume
« on: September 03, 2013, 02:04:37 PM »
How to chenge reconstruction volume using console commands? I use the following command:

ch.region.center[0] = -2

but reconstruction volume doesn't change

2
Python and Java API / Edit Camera.center coords
« on: June 14, 2013, 01:14:10 PM »
Help me. How to set the coordinates for a camera. I tried а script:

         for cam in doc.activeChunk.cameras:
            if cam.label == (geo_date[0]+".JPG"):
               vec = PhotoScan.Vector()
               vec.x = float(geo_date[1])
               vec.y = float(geo_date[2])
               vec.z = float(geo_date[3])   
               cam.center = vec

A consol showed me a error:
      
Traceback (most recent call last):
  File "C:/dev/photoscan/load_photo.py", line 35, in <module>
    cam.center = vec      
AttributeError: attribute 'center' of 'PhotoScan.Camera' objects is not writable

Pages: [1]