From c93d0476023f6748b6bb0ee57279aa3bb6337e12 Mon Sep 17 00:00:00 2001 From: slevy <slevy> Date: Wed, 7 Dec 2011 16:17:27 +0000 Subject: [PATCH] Accept command-line arguments for starting-view, rotation axis, fixed point. All have defaults. --- scripts/mkcirclepath | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/mkcirclepath b/scripts/mkcirclepath index 4ec817d..c4dd04d 100755 --- a/scripts/mkcirclepath +++ b/scripts/mkcirclepath @@ -8,9 +8,9 @@ require 'tfm.pl'; $fovy = 71; # Y-axis field of view (included in .wf file) -$start = "0 0 0 0.703464 -90.24 -29.3133"; # starting "jump" view -$axis = "0 0 1"; # rotation axis -$center = "0 0 0"; # fixed point of rotation +$start = $ARGV[0] || "0 0 0 0.703464 -90.24 -29.3133"; # starting "jump" view +$axis = $ARGV[1] || "0 0 1"; # rotation axis +$center = $ARGV[2] || "0 0 0"; # fixed point of rotation $angle = 360; # rotate through this total angle $time = 25; # seconds duration -- GitLab