Photogrammetry

"Creating 3D models with Object Capture" the API provided is only working on console app now ? It's working perfect on console app but not on macOS GUI app. I couldn't find such information in the documents as well.

In my GUI app, I am getting the error as, "Process got error: invalidRequest(RealityFoundation.PhotogrammetrySession.Request.modelFile(url: file:///Users/s***ik/Desktop/Pot_usdz/sam.usdz, detail: RealityFoundation.PhotogrammetrySession.Request.Detail.preview, geometry: nil), ".modelFile directory path file:///Users/snayvik/Desktop/Pot_usdz/ cannot be written to!")"

Any help is appreciated.

Answered by DTS Engineer in 686469022

/Desktop is a protected folder, and requires user permission to access it. I'm thinking maybe your app doesn't have permission, but the Terminal does.

You can check the permission status by going to "System Preferences" -> "Security & Privacy" -> select the "Privacy" tab -> "Files and Folders"

From there you can see if your app has access to the Desktop.

Accepted Answer

/Desktop is a protected folder, and requires user permission to access it. I'm thinking maybe your app doesn't have permission, but the Terminal does.

You can check the permission status by going to "System Preferences" -> "Security & Privacy" -> select the "Privacy" tab -> "Files and Folders"

From there you can see if your app has access to the Desktop.

Photogrammetry
 
 
Q