<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Jens,<br>
      <br>
      Why do you use a while loop? You can use only the following. <br>
      <br>
      scf();<br>
      param3d([0 1 1 1],[0 0 1 1],[0 0 0 1]);<br>
      ce = <span style="text-decoration: underline;">gce</span>();<br>
      ce.thickness = 10;<br>
      m1 = uimenu('label', 'alpha=50', 'callback',"ca=gca();
      ca.rotation_angles(1)=50");<br>
      m2 = uimenu('label', 'alpha=80', 'callback',"ca=gca();
      ca.rotation_angles(1)=80");
      <br>
      <tt>
      </tt><br>
      HTH<br>
      Samuel<br>
      <br>
      Le 18/12/2016 11:36, Jens Simon Strom a écrit :<br>
    </div>
    <blockquote cite="mid:5856669D.9090301@hslmg.de" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      Hi,<br>
      I try to use uimenue() in a minimal example to toggle the aspect
      of a 3D curve between two values - without succes.<br>
      Here is my defective script.<br>
      <br>
      <pre style="font-family:Monospaced;font-style:normal;font-size:13.0;"><big><big>//BEGIN OF UNFUNCTIONAL CODE
xdel()
figure(1)
param3d([0 1 1 1],[0 0 1 1],[0 0 0 1]); ce=<span style="text-decoration: underline;">gce</span>(); ce.thickness=10;
ca=<span style="text-decoration: underline;">gca</span>();
alpha=ca.rotation_angles(1);<span style="font-style: italic;">//initial alpha</span>
  uimenu('label', 'alpha=0', 'callback',"alpha=70");
  uimenu('label', 'alpha=90', 'callback',"alpha=10");
  uimenu('label', 'break', 'callback',"break");
while 1
  xclick()  //to interrupt script, enable click on label, and restart
  ca.rotation_angles(1)=alpha;
  disp(alpha)
end
//END OF UNFUNCTIONAL CODE

Please give me a clue for a feasible route.

Kind regards
Jens


</big></big></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>