Sim12 Batch Guide

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search

Sim 12 Batch Mode Command Guide

This is a repository of common commands.

Setting the stage:

Open new view (of [x] size)

/vis/open OGLIX x

Draw xml file loaded by Sim12

/vis/view/drawVolume

Manipulate the display of some material:

Select a material to work with. (Without the back ticks)

/hdds/vis/matName 'material you want'

Set it's color and transparency. (r(ed) g(reen) b(lue) a(lpha), values between 0 and 1.)

/hdds/vis/setColor r g b a

Set the display type of an object. (0 -invisible 1 -wireframe 2 -surface)

/hdds/vis/setStyle x

Update the viewer with your changes.

/hdds/vis/updateVis


View Manipulation:

Zoom (by a factor [x])

/vis/viewer/zoom x

Rotate (In theta [x] and phi [y])

/vis/viewer/set/viewpointThetaPhi x y

Pan by... (Pan by [x] and [y])

/vis/viewer/pan x y

Pan to... (Pan to [x] and [y])

/vis/viewer/panTo x y

Refresh View

/vis/viewer/refresh

Reset View (theta, phi, x, y all equal to 0)

/vis/viewer/reset