--&gt; i&#39;d say go for it<br><br>I think so too, without seeing the thing work I just can&#39;t visualize how good/bad its going to be. this is the best theoretical concept you have and it&#39;s probably going to be the best one any of us have before going the trial and error path.<br>
<br><div class="gmail_quote">On Fri, Mar 20, 2009 at 7:25 PM, Michael Fox <span dir="ltr">&lt;<a href="mailto:mfoxdogg@gmail.com">mfoxdogg@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
+1 from for this proposal<br>
<div class="im"><br>
On Fri, 2009-03-20 at 19:52 +0100, Brecht Van Lommel wrote:<br>
&gt; After some IRC discussion with Campbell, some issues that came up (hope<br>
&gt; I&#39;m summarizing this well). The comments on the issues are mine, not a<br>
&gt; consensus between us :).<br>
&gt;<br>
&gt;<br>
&gt; a) Lazy developers will only update Operators and not the API.<br>
&gt;<br>
&gt; Once an operator uses an API function call, changing the operator<br>
&gt; properties will require the API function to be updated too. If that gets<br>
&gt; out of sync, it should generate a compile error or at least a compiler<br>
&gt; warning.<br>
&gt;<br>
&gt; There&#39;s still the issue though that for new operators no API function<br>
&gt; may be added. I don&#39;t think it would be more work than doing<br>
&gt; context-decoupling of the operator, but if they are separate things it&#39;s<br>
&gt; easier to make excuses..<br>
<br>
</div>this is a risk we have to take<br>
<div class="im"><br>
&gt;<br>
&gt; b) Code duplication.<br>
&gt;<br>
&gt; As vekoon mentioned, we could let the operators copy properties and<br>
&gt; description from the API function. It would do the job I think.<br>
&gt;<br>
&gt; c) API may not get tested well.<br>
&gt;<br>
&gt; The core code that runs is the same for Operators and API. What can go<br>
&gt; wrong is that the API function does not do some check but instead does<br>
&gt; it in the operator (e.g. for library linking). If other operators do<br>
&gt; this correct I guess it will stand out? Not sure if there are other<br>
&gt; typical mistakes that could be made.<br>
<br>
</div>I think this is not a worry as if the op/tool works surly the call from<br>
py will work<br>
<div class="im"><br>
&gt;<br>
&gt; d) Python will have &quot;two API&#39;s&quot;.<br>
&gt;<br>
&gt; This is true, though it is not entirely bad in my opinion. You would be<br>
&gt; able to call a tool, or call a member function on an object, they would<br>
&gt; be quite different styles of scripting anyway?<br>
&gt;<br>
&gt; Some operators will not have a corresponding API function because they<br>
&gt; are not useful there, and some API functions will not be useful as an<br>
&gt; operator. For the ones that do have both, they would still be consistent<br>
&gt; if properties and description are copied from the API function to the<br>
&gt; operator.<br>
&gt;<br>
&gt;<br>
&gt; I don&#39;t have a good answer to all these issues, but from my point of<br>
&gt; view the tradeoffs are acceptable?<br>
&gt;<br>
&gt; Brecht.<br>
<br>
<br>
</div>anyway this is the best we have atm, i&#39;d say go for it<br>
<div class="im"><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Bf-taskforce25 mailing list<br>
&gt; <a href="mailto:Bf-taskforce25@blender.org">Bf-taskforce25@blender.org</a><br>
&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-taskforce25" target="_blank">http://lists.blender.org/mailman/listinfo/bf-taskforce25</a><br>
</div><font color="#888888">--<br>
Michael Fox<br>
Developer and user of Blender3d<br>
<a href="http://www.blender.org" target="_blank">www.blender.org</a><br>
<br>
<a href="mailto:mfoxdogg@gmail.com">mfoxdogg@gmail.com</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Bf-taskforce25 mailing list<br>
<a href="mailto:Bf-taskforce25@blender.org">Bf-taskforce25@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-taskforce25" target="_blank">http://lists.blender.org/mailman/listinfo/bf-taskforce25</a><br>
</div></div></blockquote></div><br>