Hi Sergey and Campbell, Thanks a lot for all the discussions. After having a discussion on IRC with Campbell, I made a set of changes in revision 57200 for better API design in Python and C to make text datablocks internal after loading. Hope the present solution is considered okay.
Regards, -- KAJIYAMA, Tamito <rd6t-k...@asahi-net.or.jp> -----Original Message----- From: Campbell Barton Sent: Sunday, June 02, 2013 1:41 AM To: bf-blender developers Subject: Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57153] trunk/blender/source/blender/ makesrna/intern/rna_text.c: Made text datablock properties 'is_in_memory' and 'is_dirty' editable in Python. On Sun, Jun 2, 2013 at 10:34 AM, Tamito KAJIYAMA <rd6t-k...@asahi-net.or.jp> wrote: > I made the "Make Internal" flag optional in the file selection dialog > because I assumed there are users that prefer to use external editors. > Since making a text datablock external requires extra steps, I thought > it would be nicer from users' perspective to be able to opt out the > "Make Internal" operation. > > I am rather neutral about the ways how the "Make Internal" functionality > is made available in Python. Both a .make_internal() method and the > present editable flags are acceptable for me, as I guess this is a marginal > functionality that won't be used so much. > > That said I agree with Sergey that it is nice in general to have a Python API > function corresponding to an operation that users can perform from the UI. > Scripting is much easier if there is a one-to-one correspondence between > the UI commands and Python API functions. In this case you can just call the operator from the script (which has an internal argument), of if that is a problem add an optional argument to bpy.data.texts.load() _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers