/usr/share/dx/samples/programs/MovingCamera.net is in dxsamples 4.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 | //
// time: Wed Apr 9 15:40:00 1997
//
// version: 3.1.1 (format), 3.1.4 (DX Beta)
//
//
// MODULE main
// CATEGORY Macros
//
// comment: This example uses the sequencer to change the look-from position. Unlike most of the other examples, this example does not use the Image tool. This is because we want to set the camera direction explicitly using the sequencer, rather than use the direct interactors. Note however, that because we are not using the Image tool, none of the direct interactors from the Image window will be available for this example.
// comment:
// comment: The Sequencer is used as input to the Direction module, which creates an [x y z] position from azimuth, elevation, and distance. The Sequencer is being used to change the azimuth. To run this example, double-click on the Sequencer (or choose the Sequencer option from the Execute menu). Press the right facing arrow to start the Sequencer.
// comment:
// comment: The background color is white, set in AutoCamera. If you are using the Image tool, you can set the background color using the "Set Background Color" choice in the Options menu of the Image window.
// workspace: width = 599, height = 622
// layout: snap = 0, width = 50, height = 50, align = UL
//
macro main(
) -> (
) {
//
// node Import[1]: x = 142, y = 15, inputs = 6, label = Import
// input[1]: defaulting = 0, visible = 1, type = 32, value = "watermolecule"
//
main_Import_1_out_1 =
Import(
main_Import_1_in_1,
main_Import_1_in_2,
main_Import_1_in_3,
main_Import_1_in_4,
main_Import_1_in_5,
main_Import_1_in_6
) [instance: 1, cache: 1];
//
// node ShowBox[1]: x = 527, y = 181, inputs = 1, label = ShowBox
//
main_ShowBox_1_out_1,
main_ShowBox_1_out_2 =
ShowBox(
main_Import_1_out_1
) [instance: 1, cache: 1];
//
// node Color[3]: x = 446, y = 324, inputs = 5, label = Color
// input[2]: defaulting = 0, visible = 1, type = 32, value = "red"
//
main_Color_3_out_1 =
Color(
main_ShowBox_1_out_1,
main_Color_3_in_2,
main_Color_3_in_3,
main_Color_3_in_4,
main_Color_3_in_5
) [instance: 3, cache: 1];
//
// node Sequencer[1]: x = 413, y = 416, inputs = 7, label = Sequencer
// input[1]: defaulting = 0, visible = 0, type = 32, value = "Sequencer_1"
// input[4]: defaulting = 1, visible = 0, type = 1, value = 0
// input[5]: defaulting = 1, visible = 0, type = 1, value = 360
// input[6]: defaulting = 1, visible = 0, type = 1, value = 10
// input[7]: defaulting = 0, visible = 0, type = 16777217, value = { 0 360 10 5 355 1 }
// vcr[1]: min = 0, max = 360, beg = 5, end = 355, cur = 335, inc = 10, loop = on, step = off, pal = on
// window: position = (0.0000,0.0000), size = 0.2188x0.0781
//
main_Sequencer_1_out_1 = @frame;
//
// node Scalar[2]: x = 549, y = 423, inputs = 11, label = Scalar
// input[1]: defaulting = 0, visible = 0, type = 32, value = "Scalar_2"
// input[3]: defaulting = 0, visible = 0, type = 5, value = 10.0000
// input[4]: defaulting = 1, visible = 0, type = 3, value = 0
// input[5]: defaulting = 1, visible = 0, type = 5, value = -80.0
// input[6]: defaulting = 1, visible = 0, type = 5, value = 80.0
// input[7]: defaulting = 1, visible = 0, type = 5, value = 1.00000
// input[8]: defaulting = 1, visible = 0, type = 32, value = "0"
// input[9]: defaulting = 1, visible = 0, type = 1, value = 0
// output[1]: visible = 1, type = 5, value = 10.0000
//
//
// node Direction[1]: x = 458, y = 486, inputs = 3, label = Direction
//
main_Direction_1_out_1 =
Direction(
main_Sequencer_1_out_1,
main_Scalar_2_out_1,
main_Direction_1_in_3
) [instance: 1, cache: 1];
//
// node AutoCamera[1]: x = 222, y = 486, inputs = 9, label = AutoCamera
// input[9]: defaulting = 0, visible = 1, type = 32, value = "white"
//
main_AutoCamera_1_out_1 =
AutoCamera(
main_Color_3_out_1,
main_Direction_1_out_1,
main_AutoCamera_1_in_3,
main_AutoCamera_1_in_4,
main_AutoCamera_1_in_5,
main_AutoCamera_1_in_6,
main_AutoCamera_1_in_7,
main_AutoCamera_1_in_8,
main_AutoCamera_1_in_9
) [instance: 1, cache: 1];
//
// node MapToPlane[1]: x = 350, y = 192, inputs = 3, label = MapToPlane
//
main_MapToPlane_1_out_1 =
MapToPlane(
main_Import_1_out_1,
main_MapToPlane_1_in_2,
main_MapToPlane_1_in_3
) [instance: 1, cache: 1];
//
// node AutoColor[1]: x = 231, y = 279, inputs = 10, label = AutoColor
//
main_AutoColor_1_out_1,
main_AutoColor_1_out_2 =
AutoColor(
main_MapToPlane_1_out_1,
main_AutoColor_1_in_2,
main_AutoColor_1_in_3,
main_AutoColor_1_in_4,
main_AutoColor_1_in_5,
main_AutoColor_1_in_6,
main_AutoColor_1_in_7,
main_AutoColor_1_in_8,
main_AutoColor_1_in_9,
main_AutoColor_1_in_10
) [instance: 1, cache: 1];
//
// node Scalar[1]: x = 169, y = 193, inputs = 11, label = Scalar
// input[1]: defaulting = 0, visible = 0, type = 32, value = "Scalar_1"
// input[3]: defaulting = 0, visible = 0, type = 5, value = 0.230000
// input[4]: defaulting = 1, visible = 0, type = 3, value = 0
// input[5]: defaulting = 1, visible = 0, type = 5, value = 0.1
// input[6]: defaulting = 1, visible = 0, type = 5, value = 1.0
// input[7]: defaulting = 1, visible = 0, type = 5, value = 1.00000
// input[8]: defaulting = 1, visible = 0, type = 32, value = "2"
// input[9]: defaulting = 1, visible = 0, type = 1, value = 2
// output[1]: visible = 1, type = 5, value = 0.230000
//
//
// node Isosurface[1]: x = 0, y = 215, inputs = 6, label = Isosurface
//
main_Isosurface_1_out_1 =
Isosurface(
main_Import_1_out_1,
main_Scalar_1_out_1,
main_Isosurface_1_in_3,
main_Isosurface_1_in_4,
main_Isosurface_1_in_5,
main_Isosurface_1_in_6
) [instance: 1, cache: 1];
//
// node ShowPositions[1]: x = 0, y = 300, inputs = 2, label = ShowPositions
//
main_ShowPositions_1_out_1 =
ShowPositions(
main_Isosurface_1_out_1,
main_ShowPositions_1_in_2
) [instance: 1, cache: 1];
//
// node Shade[4]: x = 112, y = 365, inputs = 7, label = Shade
// input[2]: defaulting = 0, visible = 1, type = 3, value = 0
//
main_Shade_4_out_1 =
Shade(
main_AutoColor_1_out_1,
main_Shade_4_in_2,
main_Shade_4_in_3,
main_Shade_4_in_4,
main_Shade_4_in_5,
main_Shade_4_in_6,
main_Shade_4_in_7
) [instance: 4, cache: 1];
//
// node Collect[1]: x = 98, y = 452, inputs = 3, label = Collect
//
main_Collect_1_out_1 =
Collect(
main_ShowPositions_1_out_1,
main_Shade_4_out_1,
main_Color_3_out_1
) [instance: 1, cache: 1];
//
// node Display[1]: x = 127, y = 560, inputs = 4, label = Display
// depth: value = 24
// window: position = (0.4070,0.0078), size = 0.5109x0.5117
//
main_Display_1_out_1[cache: 2] =
Display(
main_Collect_1_out_1,
main_AutoCamera_1_out_1,
main_Display_1_in_3,
main_Display_1_in_4
) [instance: 1, cache: 1];
// network: end of macro body
}
main_Import_1_in_1 = "watermolecule";
main_Import_1_in_2 = NULL;
main_Import_1_in_3 = NULL;
main_Import_1_in_4 = NULL;
main_Import_1_in_5 = NULL;
main_Import_1_in_6 = NULL;
main_Import_1_out_1 = NULL;
main_ShowBox_1_out_1 = NULL;
main_Color_3_in_2 = "red";
main_Color_3_in_3 = NULL;
main_Color_3_in_4 = NULL;
main_Color_3_in_5 = NULL;
main_Color_3_out_1 = NULL;
main_Sequencer_1_in_1 = "Sequencer_1";
main_Sequencer_1_in_2 = NULL;
main_Sequencer_1_in_3 = NULL;
main_Sequencer_1_in_4 = NULL;
main_Sequencer_1_in_5 = NULL;
main_Sequencer_1_in_6 = NULL;
main_Sequencer_1_in_7 = { 0 360 10 5 355 1 };
main_Sequencer_1_out_1 = NULL;
@startframe = 5;
@nextframe = @startframe;
@endframe = 355;
@deltaframe = 10;
main_Scalar_2_in_1 = "Scalar_2";
main_Scalar_2_in_2 = NULL;
main_Scalar_2_in_3 = 10.0000;
main_Scalar_2_in_4 = NULL;
main_Scalar_2_in_5 = NULL;
main_Scalar_2_in_6 = NULL;
main_Scalar_2_in_7 = NULL;
main_Scalar_2_in_8 = NULL;
main_Scalar_2_in_9 = NULL;
main_Scalar_2_in_10 = NULL;
main_Scalar_2_in_11 = NULL;
main_Scalar_2_out_1 = 10.0000;
main_Direction_1_in_3 = NULL;
main_Direction_1_out_1 = NULL;
main_AutoCamera_1_in_3 = NULL;
main_AutoCamera_1_in_4 = NULL;
main_AutoCamera_1_in_5 = NULL;
main_AutoCamera_1_in_6 = NULL;
main_AutoCamera_1_in_7 = NULL;
main_AutoCamera_1_in_8 = NULL;
main_AutoCamera_1_in_9 = "white";
main_AutoCamera_1_out_1 = NULL;
main_MapToPlane_1_in_2 = NULL;
main_MapToPlane_1_in_3 = NULL;
main_MapToPlane_1_out_1 = NULL;
main_AutoColor_1_in_2 = NULL;
main_AutoColor_1_in_3 = NULL;
main_AutoColor_1_in_4 = NULL;
main_AutoColor_1_in_5 = NULL;
main_AutoColor_1_in_6 = NULL;
main_AutoColor_1_in_7 = NULL;
main_AutoColor_1_in_8 = NULL;
main_AutoColor_1_in_9 = NULL;
main_AutoColor_1_in_10 = NULL;
main_AutoColor_1_out_1 = NULL;
main_Scalar_1_in_1 = "Scalar_1";
main_Scalar_1_in_2 = NULL;
main_Scalar_1_in_3 = 0.230000;
main_Scalar_1_in_4 = NULL;
main_Scalar_1_in_5 = NULL;
main_Scalar_1_in_6 = NULL;
main_Scalar_1_in_7 = NULL;
main_Scalar_1_in_8 = NULL;
main_Scalar_1_in_9 = NULL;
main_Scalar_1_in_10 = NULL;
main_Scalar_1_in_11 = NULL;
main_Scalar_1_out_1 = 0.230000;
main_Isosurface_1_in_3 = NULL;
main_Isosurface_1_in_4 = NULL;
main_Isosurface_1_in_5 = NULL;
main_Isosurface_1_in_6 = NULL;
main_Isosurface_1_out_1 = NULL;
main_ShowPositions_1_in_2 = NULL;
main_ShowPositions_1_out_1 = NULL;
main_Shade_4_in_2 = 0;
main_Shade_4_in_3 = NULL;
main_Shade_4_in_4 = NULL;
main_Shade_4_in_5 = NULL;
main_Shade_4_in_6 = NULL;
main_Shade_4_in_7 = NULL;
main_Shade_4_out_1 = NULL;
main_Collect_1_out_1 = NULL;
main_Display_1_in_3 = "X24,,";
main_Display_1_in_4 = NULL;
Executive("product version 3 1 4");
$sync
sequence main();
play;
|