Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r944 - trunk/StandAlone


Chronological Thread 
  • From: abe@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r944 - trunk/StandAlone
  • Date: Sat, 18 Feb 2006 14:40:22 -0700 (MST)

Author: abe
Date: Sat Feb 18 14:40:21 2006
New Revision: 944

Modified:
   trunk/StandAlone/manta_path_plot.pl
Log:

Made the -path arg optional so the script can be used with programs besides 
manta.

M    manta_path_plot.pl


Modified: trunk/StandAlone/manta_path_plot.pl
==============================================================================
--- trunk/StandAlone/manta_path_plot.pl (original)
+++ trunk/StandAlone/manta_path_plot.pl Sat Feb 18 14:40:21 2006
@@ -118,7 +118,7 @@
 }
 
 # Check to see if any defaults should be used.
-if (($path_file eq "") || ($input_file eq "")) {
+if (($input_file eq "")) {
     print "Usage: \n";
     print "-file       <manta commands file>\n";
     print "-prefix     <output png prefix>\n";
@@ -426,19 +426,23 @@
 
         $input_line = variable_replace( $input_line );
 
-        # Form the camera path command.
-        $path_command = " -ui \"camerapath( -file $path_file -sync 
$path_sync -behavior exit -warmup $path_warmup ";
-        if ($path_t != 0) {
-            $path_command = $path_command . "-delta_t $path_t ";
-        }
-        if ($path_time != 0) {
-            $path_command = $path_command . "-delta_time $path_time ";
-        }
-        if ($path_start != 0) {
-            $path_command = $path_command . "-interval $path_start 
$path_last ";
+        # Check to see if a camera path file was specified.
+        # If so append the manta camera path directive.
+        if ($path_file ne "") {
+            # Form the camera path command.
+            $path_command = " -ui \"camerapath( -file $path_file -sync 
$path_sync -behavior exit -warmup $path_warmup ";
+            if ($path_t != 0) {
+                $path_command = $path_command . "-delta_t $path_t ";
+            }
+            if ($path_time != 0) {
+                $path_command = $path_command . "-delta_time $path_time ";
+            }
+            if ($path_start != 0) {
+                $path_command = $path_command . "-interval $path_start 
$path_last ";
+            }
+            
+            $path_command = $path_command . ")\"";
         }
-        
-        $path_command = $path_command . ")\"";
 
         # Record stat's on the run.
         $min_fps = 999;




  • [MANTA] r944 - trunk/StandAlone, abe, 02/18/2006

Archive powered by MHonArc 2.6.16.

Top of page