<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Dear Chris<div><br></div><div>Unfortunately, there is a bug in SetShapeProperties when called from a Python script, i.e. the shape can't be found.</div><div>It will be fixed with the next 6.2 release.</div><div><br></div><div>As a work around you may want to delete the text shape and create a new one for each frame.</div><div>(Also, the command should work properly in Pascal script.)</div><div><br></div><div>Regarding on how you call SetShapeProperties from a Python script:</div><div>Correct - using 'shape = ' is the parameter to identify the shape by name:</div><div>     <font face="Monaco" color="#0042aa">pf.SetShapeProperties(shape = "psi_ID", text = psi_string)</font></div><div>Wrong - undefined shape; 'name = ' is the parameter to change it's new name, but does not identify it:</div><div>     <font color="#0042aa"><span style="font-family: Monaco;">pf.SetShapeProperties</span><span style="font-family: Monaco;">(name =</span><span style="font-family: Monaco;"> </span><span style="font-family: Monaco;">"psi_ID"</span><span style="font-family: Monaco;">, text = psi_string)</span></font></div><div><br></div><div>Best regards,</div><div><br></div><div>Peter Amrhein</div><div>Quantum Soft</div><div><br></div><div><br><div><div>On 13.06.2014, at 13:42, Chris Lee <<a href="mailto:laserboy@fusemail.com">laserboy@fusemail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Actually, I think something very strange is happening.<div><br></div><div>If I change the shape name, the second option, pf.SetShapeProperties(name = ‘X’, text = some_string), worked once. If I change the name again, it doesn’t seem to work.</div><div><br></div><div>I also note that if I change the shape name, its position shifts…</div><div><br></div><div><br><div><div>On 13 Jun 2014 (W: 24), at 13:33, Chris Lee <<a href="mailto:laserboy@fusemail.com">laserboy@fusemail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi All,<div><br></div><div>I’m making a movie of a graph. I calculate my data, put it in a window, graph the results. It all works fine (and creates lovely movies). Now, I want to put the parameters that are varying over the course of the movie in the graph.</div><div><br></div><div>I created two text boxes, named “psi_ID” and “delta_ID” Since I know their names, I should be able to call them directly.</div><div><br></div><div>I use: </div><div><span style="font-family: Monaco; font-size: 14px; color: rgb(0, 166, 66);"><br></span></div><div><div style="margin: 0px; font-size: 14px; font-family: Monaco;">psi_string = <span style="color: #797979">"Psi = "</span> + `j` + <span style="color: #797979">"°"</span></div></div><div><span style="font-family: Monaco; font-size: 14px; color: rgb(0, 166, 66);">pf.SetShapeProperties</span><span style="font-family: Monaco; font-size: 14px;">(shape = </span><span style="font-family: Monaco; font-size: 14px; color: rgb(121, 121, 121);">"psi_ID"</span><span style="font-family: Monaco; font-size: 14px;">, text = psi_string)</span></div><div><br></div><div><br></div><div>This fails with the error that it cannot convert parameter to desired type. I think this refers to the first argument. If I change it to </div><div><br></div><div><div style="margin: 0px; font-size: 14px; font-family: Monaco;"><span style="color: #00a642">pf.SetShapeProperties</span>(name = <span style="color: #797979">"psi_ID"</span>, text = psi_string)</div></div><div style="margin: 0px; font-size: 14px; font-family: Monaco;"><br></div><div style="margin: 0px;">This fails with the error “No such shape” (I have checked the shape name)</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Can anyone see what I am doing wrong here?</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Cheers</div><div style="margin: 0px;">Chris </div></div>_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br><a href="http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com">http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com</a><br></blockquote></div><br></div></div>_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br>http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com<br></blockquote></div><br></div></body></html>