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 - captured

Pages: [1]
1
Python and Java API / Re: Run script on start
« on: January 22, 2014, 06:34:40 AM »
Hey guys. If you're on Windows, you can accomplish this by placing a script in "C:/users/<user name>/AppData/Local/AgiSoft/PhotoScan Pro/scripts" I guess that's not exactly the same as starting it from a command line, but is still pretty helpful.

I've been using that to create menu items on startup for employees to click rather than running scripts manually (another pretty useful feature).

Code: [Select]
app = PhotoScan.Application()
app.addMenuItem("Some Button", some_function)

2
General / Re: Agisoft PhotoScan 1.0.0 pre-release
« on: October 02, 2013, 09:41:55 PM »
I was having some issues with my scripts, even after adapting for the new api parameters. I think I finally traced it to a problem with the buildModel function when I assign an arbitrary number of faces rather than a 'low', 'medium', or 'high' setting.

i.e.:
Code: [Select]
import PhotoScan
doc = PhotoScan.app.document
chunk = doc.activeChunk
chunk.buildModel(surface='arbitrary', source='sparse', interpolation='enabled', faces=100000)

The same problem seems to apply across projects and regardless of 'sparse' vs 'dense'.

Here's the error I'm getting:
Quote
TypeError: bad argument type for built-in operation

I won't give the whole traceback, since I think it is not working properly. I was scratching my head chasing several lines of code it was referring to in tracebacks. After investigation, all the lines I was tracing were just fine. I think it was just referencing them incorrectly.

Of course, there's a chance I'm just doing something wrong...

3
Feature Requests / Re: Report and estimations.
« on: July 06, 2013, 06:44:17 AM »
I second this. The ability to add a company logo, add different viewpoints of the model, a few custom paragraphs or freeform text with scripting input, etc. Some customization options would be really neat, even if this only applied to the API.

Pages: [1]