Just in case it matters, it seems the bug in the object module causing a crash only happens when the object being created is a curve. I should've mentioned that when I submitted the bug report.<br><br>hope that helps,<br>bydesign
<br><br><br><div><span class="gmail_quote">On 12/7/06, <b class="gmail_sendername">Martin Poirier</b> <<a href="mailto:theeth@yahoo.com">theeth@yahoo.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>--- Ken Hughes <<a href="mailto:khughes@pacific.edu">khughes@pacific.edu</a>> wrote:<br><br>> Campbell Barton wrote:<br>> > Joe Eagar wrote:<br>> >> Campbell Barton wrote:<br>> >>> One thing about removing the need for
<br>> >>> import Blender<br>> >>><br>> >>> If your a game engine developer it would not be<br>> desirable.<br>> >>><br>> >>> Maybe we could have 2 contexts.<br>
> >>><br>> >>> Alt+P and menu scripts and GE scripts?<br>> >> GE scripts are totally separate anyway.  why<br>> would they care?  I<br>> >> thought we already had two contexts.
<br>> >><br>> >> Joe<br>> > My Bad for this one, looks like it won't adversely<br>> effect the GE.<br>> > One other thing<br>> >  scn.object.new(obdata)<br>> ><br>> >  - Works fine, however what about empties?
<br>> ><br>> > Was thinking no obdata for empties, just None.<br>> > empty=  scn.object.new(None)<br>> ><br>> > 2 bad points, if any new obkects are added without<br>> data like empties, it
<br>> > would not fit in (Realisticly this probably wont<br>> happen)<br>> > And if the obdata is intended to be a lamp, mesh<br>> etc and somehow gets<br>> > set to None, it may be trickyer to debug, then if
<br>> we<br>> > used....scn.object.new(Types.Empty)  - ore some<br>> other format.<br>><br>> Wanted to poke this thread; now that we're is BCon2.<br>>  I just woke up and<br>> realized some of this is in the Scene module now but
<br>> I don't see epydocs<br>> for it.  Tom just assigned a nasty bug to me that<br>> would best be fixed by<br>> encouraging users to not use Object.New(), so it<br>> would be nice to<br>> document this (the 
scn.object.new() method) as the<br>> "recommended" methods<br>> if we're going to keep it.<br><br>Add a deprecation warning to Object.New if that's no<br>longer wanted and known to be broken.<br><br>I really think it's time we start having a policy on
<br>that sort of thing.<br><br>Here's what I propose:<br><br>1- Deprecation warning in methods that will disappear<br>2- At least 6 months after it has been released with<br>that warning (at the current rate of thing, that means
<br>one major release), remove the method from the API.<br><br>If we always keep old known to be broken calls, it's<br>dangerous for everyone (script users, writers and API<br>maintainers).<br><br>Martin<br><br><br><br><br>
____________________________________________________________________________________<br>Any questions? Get answers on any topic at <a href="http://www.Answers.yahoo.com">www.Answers.yahoo.com</a>.  Try it now.<br>_______________________________________________
<br>Bf-python mailing list<br><a href="mailto:Bf-python@projects.blender.org">Bf-python@projects.blender.org</a><br><a href="http://projects.blender.org/mailman/listinfo/bf-python">http://projects.blender.org/mailman/listinfo/bf-python
</a><br></blockquote></div><br>