[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #EQX-211532]: help with scripting camera changes

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [IDV #EQX-211532]: help with scripting camera changes
  • Date: Thu, 28 May 2009 15:18:10 -0600

> Good morning. I've been tasked with doing a volume rendering
> visualization that will need to have changes in camera position
> scripted. We're going to show the visualization from one angle and
> once all the frames are done we want to script a way for the IDV to
> move to another angle and then have the visualization rotate 360
> degrees around the z-axis. I've looked at the IDV website and didn't
> see a way to this with the isl tags. Is it possible to do this with
> isl tags? If not, is it possible to do what I want using jython? Any
> examples you can show me of code that allows the user to script the
> camera positions?
> 
>
Hi Katie,
That's a good idea so I just implemented it. In tonight's build there will be 
support for a viewpoint tag in ISL. You can do 3 things - set the aspect ratio 
of a view, set the tilt/azimuth (like you can do with the Viewpoint dialog) and 
explicitly set the rotation/translation/scale matrix.

Attached is an example isl file that shows these 3 things.

I have also added to the Aspect Ratio tab of the View manager properties dialog 
a listing of the rotation/scale/translation values. So you can easily figure 
out for a given viewpoint what the values are.

Please give us some feedback on this and feel free to make suggestions for 
improvements.

-Jeff


Ticket Details
===================
Ticket ID: EQX-211532
Department: Support IDV
Priority: Normal
Status: Closed

Attachment: viewpoint.isl
Description: Binary data