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

Pages: [1]
1
General / Re: Coordinatesystem issue while exporting Shapes to *.dxf
« on: January 13, 2017, 06:05:36 PM »
Thanks Alexey, you were right as always. Appreciate your help, it was in the "import options" of .obj in Blender :)

2
General / Re: Coordinatesystem issue while exporting Shapes to *.dxf
« on: January 05, 2017, 10:21:32 PM »
I'm sorry apparently this topic got posted two times!

3
General / Coordinatesystem issue while exporting Shapes to *.dxf
« on: January 05, 2017, 10:20:28 PM »
hey guys, it's me again,
I try to export the shapes of my project to .dxf, if I have my coordinate system set to wgs84 and I do the import into Blender afterwards I get the result as you can se in picture one -> all the points of the shapes are stacked in a line.
Whilst if I export the shapes in local coordinates I get the result in picture 2 with the right distribution of the points.
I would like to have aligned my model and the shapes in blender (or any other mesh editing program - maybe somebody of you has a better suggestion for this task) .. do you have any suggestions?
thanks a lot

4
Python and Java API / Re: Export markers
« on: January 04, 2017, 06:47:28 PM »
# exports all markers in activeChunk to csv.
# compatibility: Agisoft PhotoScan Professional 0.9.0
import PhotoScan
import math


FILEPATH = 'E:/marker_export.txt'

app = PhotoScan.app
doc = PhotoScan.app.document
chunk = PhotoScan.app.document.chunk
f = open(FILEPATH, 'w')
for item in chunk.markers:
   if item.position == None:
      continue
   v = item.position
   v.size = 4
   v.w = 1
   T = chunk.transform
   if not chunk.transform:
      chunk.transform = PhotoScan.Matrix.diag( (1,1,1,1) )
   T = chunk.transform
   v_t = T * v
   v_t.size = 3
   proj = chunk.crs
   v_out = proj.project(v_t)
   f.write(item.label + ',' + str(v_out[0]) + ',' + str(v_out[1]) + ',' + str(v_out[2]) + '\n')
f.close()

5
Python and Java API / Re: Export markers
« on: January 04, 2017, 06:46:50 PM »
hey erix,
I tried the same code as you posted last, but I got the same typeerror es you earlier. what did you do about it? Is there an easier way to export my markers together with my mesh?
thanks guys

6
General / Re: Export Marker to Blender
« on: January 02, 2017, 07:01:40 PM »
hey dave, sounds reasonable and maybe that explains my problem too. But the thing is that whilst exporting the shapes into .dxf I don't have to specify any coordinate system whatsoever. I just have to afirm the layers where my shapes are at.
In the end, I actually would just like to have a model with some points (shapes) displayed on its surface so that I can work with them in blender. Isn't there an easier way of getting this result? I just wonder because the model already looks super perfect in photoscan, just the way  I would like it to be and then I can't get all the data into blender (or any other 3d editing programm).

7
General / Re: Export Marker to Blender
« on: January 02, 2017, 03:58:12 AM »
hey james, thanks a lot for your answer. I tried it with the dxf add on and at least I get some points imported into blender now. unfortunately the shapes that I wanted to import into blender are not at the right position anymore .. they are all in a straight line while in photoscan they are at other places distributed all over my scanned object.
Did I mess something up with the relevant coordinates? do you have any advice or idea what it could be that makes my shapes no appear at the right positions?
a happy new year to all of you! have a good time

8
General / Re: Export Marker to Blender
« on: December 17, 2016, 02:20:13 AM »
hey Alexey, I actually don't know how this operation could be done. But is there a way to export a model with the shapes on it?

9
General / Export Marker to Blender
« on: December 17, 2016, 01:08:26 AM »
hey guys, I do my models with photoscan Pro and I have an issue about exporting my markers (or shapes) from photoscan into an adequate file that I can use in blender again. In blender i would like to import those markers/shapes as points being displayed on the surface of my uv mapped model.
Until now I tryed the addons offered for .shp import, which didn't help
The goal is to be able to connect those points on the surface of the model with drawn lines.
I would appreciate every help so much.
Thank you guys.

10
Feature Requests / Re: Exporting
« on: October 18, 2016, 08:48:17 PM »
wow Alexey this is incredible!!! I send you the biggest greetz from Berlin, this is absolutly awesome

11
Feature Requests / Re: Exporting
« on: October 18, 2016, 08:30:27 PM »
I m using version 1.2.6 (64bit) and in the console pane I get the following:

2016-10-18 19:25:19     Traceback (most recent call last):
2016-10-18 19:25:19     File "C:/Users/../Downloads/markertopoints.py", line 14, in <module>
2016-10-18 19:25:19     shape.vertices = [chunk.crs.project(chunk.transform.matrix.mulp(marker.position))]
2016-10-18 19:25:19    TypeError: must be PhotoScan.Vector, not None

I don't really understand the error.
thanks for your help Alexey

12
Feature Requests / Re: Exporting
« on: October 18, 2016, 08:11:02 PM »
Thanks a lot Alexey for the response. My other scripts run already with my photoscan pro version but with this one I just get "can't run script" .. do I have to customize it before use?

13
Feature Requests / Re: Exporting
« on: October 17, 2016, 11:24:00 AM »
Hey stihl, thanks for the answer. Which CAD application do you use for this? I can t import xml marker filesin autucad for example. Thanks

Pages: [1]