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.


Messages - mixa

Pages: [1]
1
Python and Java API / 'MarkerProjection' question
« on: October 27, 2015, 11:01:08 AM »
Hi.
I have a measured GCP in another software and save it in format:

'GCP label, Image, X, Y'

where 'Image' - label of image where GCP was measured, 'X' and 'Y' - coordinated in pixels on image.
I try write this data in Photoscan via 'MarkerProjection' object, but it's read only.
Is there any other way to do it?

2
Python and Java API / Run PySide GUI app inside Photoscan
« on: September 11, 2015, 07:09:13 PM »
Hi. I try to run PySide GUI inside Photoscan, menu is added, but when i try to run script from menu, GUI show and after close automatically.
mainForm.exec() works, but i need to open this widget in non modal mode.

from PySide.QtCore import *
from PySide.QtGui import *


class MainForm(QDialog):

    def __init__(self):
        QDialog.__init__(self, None)
        self.setWindowTitle("Hello")


def main():

    app = QCoreApplication.instance()

    if app == None:
        app = QApplication([])

    mainForm = MainForm()
    mainForm.show()
    # mainForm.exec()

PhotoScan.app.addMenuItem("TestMenu/TestScript", main)

3
Нужная же вещь - подскажите пожалуйста  :(

4
Как сделать так, чтобы скрипт выполнялся сразу после запуска программы?

5
Здравствуйте можно и мне скрипт, почта grizlis@list.ru

Спасибо, Михаил

Pages: [1]