bugpyFormex - Bugs: bug #46052, save the camera in a file

 
 

bug #46052: save the camera in a file

Submitter:  gianluca de santis <gianlucadesi>
Submitted:  Fri 25 Sep 2015 10:06:09 AM UTC
   
 
Category:  GUI Severity:  1 - Wish
Item Group:  Feature request Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 06 Nov 2015 10:49:52 AM UTC, comment #1: 

In attachment (a draft of) an example on how to store/read back the camera settings (including canvas size) using a human readable & human writable file. It could be interesting to have a functionality in pyFormex to recreate specific views/images/cuts.
In the current example the camera/canvas size are in a dictionary and stored inside a JSON file.
TODO:
- create a JSON plugin in pyFormex
- add functions to get camera+canvasSize, write camera+canvasSize, read camera+canvasSize, apply camera+canvasSize

(file #35397)

gianluca de santis <gianlucadesi>
Group Member
Fri 25 Sep 2015 10:06:09 AM UTC, original submission:  

Nice to have: camera settings (focus, eye, upvector, bbox, near/far clipping) saved in a file (e.g. a pgf). This could be:
- only one single camera: it could be loaded by pyFormex and it should appear next to the standard camera's as user-defined camera (and it should probably have a name). After loading the camera should change to the new camera. We could use the name.pgf to give the camera a name.
- one single camera + other geometries in the same pgf.

gianluca de santis <gianlucadesi>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #35397:  camera2JSON.py added by gianlucadesi (6KiB - text/x-python)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gianlucadesi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-06 gianlucadesi Attached File- Added camera2JSON.py, #35397

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code