<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi, 
<div class="">I have a user that supplies me with a text file of ellipsoids specified by location, rotation, and axis, from which I plan to create Spheres modified by the Transform operator to make ellipsoids.  I can write a function that basically does this:
  </div>
<div class=""><br class="">
</div>
<div class="">ellipsoids = open(filename, 'r').read()</div>
<div class="">for ellipse in ellipsoids:</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>sphere1 = Sphere()</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>renderView1 = GetActiveViewOrCreate('RenderView')<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>sphere1Display = Show(sphere1, renderView1)<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>transform1 = Transform(Input=sphere1)<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>transform1.Transform = 'Transform'<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span></div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>transform1.Transform.Translate = [0.0, 2.0, 0.0]<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>transform1.Transform.Rotate = [0.0, 65.0, 76.0]<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>transform1.Transform.Scale = [1.0, 2.0, 1.0]<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>transform1Display = Show(transform1, renderView1)<br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">My question is, how can I use this approach to provide her a macro in the GUI somehow to read her file and populate her scene with ellipsoids?  I hope this question is clear enough.  </div>
<div class=""><br class="">
</div>
<div class="">Thanks. </div>
<div class=""><br class="">
</div>
<div class="">
<div apple-content-edited="true" class=""><span class="Apple-style-span" style="border-collapse: separate; font-size: 13px; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; ">
<div class="">-- </div>
<div class="">✐Richard Cook   </div>
<div class="">✇ Lawrence Livermore National Laboratory</div>
<div class="">Bldg-453 Rm-4024, Mail Stop L-557        </div>
<div class="">7000 East Avenue,  Livermore, CA, 94550, USA</div>
<div class="">☎ (office) (925) 423-9605    </div>
<div class="">☎ (fax) (925) 423-6961</div>
<div class="">---</div>
<div class="">Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.</div>
<div class="">(opinions expressed herein are mine and not those of LLNL)</div>
<br class="Apple-interchange-newline">
</span></span></span></span></span></span></span><br class="Apple-interchange-newline">
</span></div>
<br class="">
</div>
</body>
</html>