There is a scheduled outage that will affect nanoHUB.org simulation runs from Tuesday, May 15, 2012 at 6am EDT (10:00 UTC) until Thursday, May 17, 2012 at 5pm EDT (21:00 UTC). This outage will affect simulation jobs running on the Rossmann and Coates machines. Further details about affected tools can be found HERE. We apologize for the inconvenience.

Support

Support Options

Submit a Support Ticket

 
You are here: HomeQuestions and AnswersHow do we pre-set camera angle in 3d visualizer?

Questions and Answers: Open Question

Answer this question

Status: Accepting answers

In total, earn up to 26 points for the best answer to this question! Details

Anonymous

How do we pre-set camera angle in 3d visualizer?

How do we pre-set camera angle parameters, namely ‘psi’, ‘theta’, ‘phi’, ‘pan-x’, ‘pan-y’, and ‘zoom’ in a simulation?

And are the pan-x and pan-y parameters working properly? I don’t see any changes whenever the values are altered.

Thanks

Report abuse

Responses (1)

  1. 0 Dislike

    George A. Howlett

    You can set the camera position in the “tool.xml” using the camera.position element.

    This works for fields 2D (using the unirect2d mesh) and 3D.

    theta 142.84 phi 339.32 psi 0 pan-x -0 .216 pan-y -0.128 zoom 0.64

    For example in a tcl program:

    $driver put output.field.camera.position #8220;theta 142.84 phi 339.32 psi 0 pan-x -0 .216 pan-y -0.128 zoom 0.64”

    If setting the pan-x and pan-y values doesn’t move the can in the x or y direction, please create a support ticket. I need to know the tool where this fails.

    You can also change the pan the camera by pressing the middle mouse button and dragging the pointer.

    —gah

    Report abuse Reply

nanoHUB.org, a resource for nanoscience and nanotechnology, is supported by the National Science Foundation and other funding agencies.