From: danielle@chama.eece.unm.edu (Danielle Argiro)
Newsgroups: comp.soft-sys.khoros
Subject: Re: output file on xprism2?
Date: 8 Sep 92 18:56:38 GMT


	Hi there,

On Sep 5,  5:50pm, av@ds5000.dgsca.unam.mx wrote:
} Subject: output file on xprism2?
}
} If we call xprism in cantata, the glyph has an
} output arrow called 'output file'. Does it corresponds
} to any of the file to be generated in the 'output' section
} of xprism  (explicit, implicit, screendump) ?

	It corresponds to the implicit image output file.
} 
} Another question is how can we modify the max. number of
} graphs in xprism2 if we access it from cantata (the default seemes to
} be 4), I understand that we can plot 20. 

	This you can do by modifying the xprism2.pane file that is found
	in the KHOROS_HOME/repos/cantata/subforms/output_plot directory.
	(The procedure is practically identical for modifying the xprism3 
	glyph, for those who might want to do that).

	Looking at this UIS file, you will see that the first four -I UIS lines
	define the 4 inputs to the xprism2 glyph of cantata.  By copying one
	of these lines the desired amount of times (up to a total of 20) and 
	modifying each line properly, you can get more input connections to the 
	xprism2 glyph.

	For example, if I wanted to add a fifth input to the glyph, I would
	copy the fourth -I line: 

	-I 1 0 1 0 0 1 50x1+2+5 +0+0 ' ' 'Input Plot 4' 'input plot 1' i14

	and modify it to look like this:

	-I 1 0 1 0 0 1 50x1+2+6 +0+0 ' ' 'Input Plot 5' 'input plot 1' i15

	Note that the comment, 'input plot 1' is bogus, but this will not
	affect anything.  Also note that it was necessary to change the 
	geometry of the UIS line to have +6 as the y position rather than +5,
	so that the new input file selection is visible when you open up
	the glyph.  

	You can add many more of these lines, just be sure 
	to change the y position of subsequent UIS lines so that you will
	still be able to see the associated selections when you open up the
	xprism2 glyph.  For example, if we added a 6th -I line at +2+7, it
	would obscure (or be obscured by) the 'Input Answer File' string 
	selection, so the geometry of that -s line would also have to be 
	bumped up, and similarly for all remaining UIS lines with a geometry.

	Also notice that the variable of the UIS line is what is sent as
	a command line option to xprism2 when cantata executes it.  That
	is why we can add -I UIS lines with variables names  from i11 (plot 1)
	up to i120 (plot 20), because "-i1x" (where 1 < x < 20) are valid
	command line options to xprism2.  Deciding on a random variable name
	for a -I line would cause an error message, as it would cause cantata
	to execute xprism2 with a bogus command line option.  Valid command 
	line options for xprism2 are found in 
	KHOROS_HOME/doc/xprism/xprism2/help/Start_Up.

	In this same spirit, if you wanted it to output an explicit image
	output file instead of an implicit one, you could look at the
	Start_Up file to find the command line option associated with an 
	explicit image output file.  There, it says that that "-expifile" 
	is the command line option for an explicit image output file.
	So, changing the variable name on the -O line of the xprism2.pane 
	file from "impifile" to "expifile" will do the trick.

	Using the "Start_Up" file to look up the extensive number of command 
	line arguments to xprism2/3, the cantata glyph can be highly 
	personalized through modification of the *.pane files.
} 
} Thanks.
} Alberto Villarreal 
} DGSCA-UNAM
}-- End of excerpt from av@ds5000.dgsca.unam.mx

	Hope this gets you on the right track.  

		~ danielle

	ps. oh - one last remark - you must always modify *.pane files
	    when NOT running cantata.  Modify the *.pane file to your 
	    satisfaction, using preview to see how it will look when the
	    glyph is open.  Start a fresh cantata session to use the new
	    glyph when you are done.

       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       ~   Danielle Argiro - danielle@bullwinkle.eece.unm.edu   ~
       ~   Software Design & Development, The Khoros Group      ~
       ~   Room 110, EECE Building, UNM;  Albq, NM 87131        ~
       ~                                                        ~
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~