How can I assign variables to xform parameters?

I have created two boxes and a pipe and I located the two boxes around
the pipe just as a dumb bell shape. I use a script file to combine these
objects and able to render them in different sizes in succession. In this
script file I'm using "xform" to locate these images. The problem is that I
have to re-render these images in different sizes however, when it is
rendered in different size, the pipe and the box are departing from each
other. I need to render these images 100 times in different sizes (their
size will diminish gradually) thus, I have to assign variables.

How can I assign variables to "xform -n column -s $n squares/Box1.rad |
xform -t 4.32 -10 -9 >> tmp.rad;" to the right side of the xform? I have
been trying for two days however I cannot get through it.

···

--
Begum Erten
Research Assistant

National Research Center for Magnetic Resonance (UMRAM)
Bilkent University
Ankara 06800, Turkey

Phone: +90 312 2903016

Dear Begum,

You need to provide more information on what you are doing. Specifically:

1) What is your view of the scene?
2) What is your current script for generating the scene?
3) What is wrong with the current script, precisely?

-Greg

···

From: Begum Erten <[email protected]>
Date: June 9, 2010 6:51:37 AM PDT

     I have created two boxes and a pipe and I located the two boxes around the pipe just as a dumb bell shape. I use a script file to combine these objects and able to render them in different sizes in succession. In this script file I'm using "xform" to locate these images. The problem is that I have to re-render these images in different sizes however, when it is rendered in different size, the pipe and the box are departing from each other. I need to render these images 100 times in different sizes (their size will diminish gradually) thus, I have to assign variables.

How can I assign variables to "xform -n column -s $n squares/Box1.rad | xform -t 4.32 -10 -9 >> tmp.rad;" to the right side of the xform? I have been trying for two days however I cannot get through it.

--
Begum Erten
Research Assistant

National Research Center for Magnetic Resonance (UMRAM)
Bilkent University
Ankara 06800, Turkey

Phone: +90 312 2903016

Just to make sure we're all talking about the same thing, when you say
"render these images ... In different sizes" I assume you mean the image is
the same size but the dumbell object is resized. (?)

One way to keep your dumbell assembly to remain constant is to place all the
objects (two boxes and the column) into one .rad file, and then scale/array
that .rad file with its own xform operation(s). Then all the components will
maintain the same spatial relationship.

But I may be totally misunderstanding what you're trying to do (no coffee
yet).

- Rob

···

On 6/9/10 7:51 AM, "Begum Erten" <[email protected]> wrote:

 I have created two boxes and a pipe and I located the two boxes around

the pipe just as a dumb bell shape. I use a script file to combine these
objects and able to render them in different sizes in succession. In this
script file I'm using "xform" to locate these images. The problem is that I
have to re-render these images in different sizes however, when it is rendered
in different size, the pipe and the box are departing from each other. I need
to render these images 100 times in different sizes (their size will diminish
gradually) thus, I have to assign variables.

How can I assign variables to "xform -n column -s $n squares/Box1.rad | xform
-t 4.32 -10 -9 >> tmp.rad;" to the right side of the xform? I have been trying
for two days however I cannot get through it.