[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13992] trunk/blender/source/blender: Made python scripts save and load in the blend file so you can have the same scripts running when you open a blend file .

Campbell Barton ideasman42 at gmail.com
Sat Mar 8 23:41:12 CET 2008


Scripts do work with undo, just not if you undo back until the moment
when you started the script.
This isnt so simple to fix, since the Script needs to be ignored by
undo (like other parts of the interface)
If it was a pointer it could be handled like ImBufs and node previews
but its apart of the struct, so I'll have to look further into it.

On Sat, Mar 8, 2008 at 11:15 PM, Campbell Barton <ideasman42 at gmail.com> wrote:
> Ok, this is odd, when I was testing this worked fine, but now it
>  obviously dosnt :/
>  - will look into it now.
>
>
>
>  On Sat, Mar 8, 2008 at 11:10 PM, Stéphane SOPPERA
>  <stephane.soppera at wanadoo.fr> wrote:
>  > Campbell Barton a écrit :
>  >
>  > > Revision: 13992
>  >  >           http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13992
>  >  > Author:   campbellbarton
>  >  > Date:     2008-03-06 22:25:15 +0100 (Thu, 06 Mar 2008)
>  >  >
>  >  > Log Message:
>  >  > -----------
>  >  > Made python scripts save and load in the blend file so you can have the same scripts running when you open a blend file.
>  >  > Also scripts will re-run on undo rather then closing.
>  >  >
>  >  Hi,
>  >
>  >  I made the following test:
>  >  - start blender
>  >  - switch a space to python
>  >  - start "interactive console" in it
>  >  - do something else (like moving default cube)
>  >  - undo
>  >  -> then the "interactive console" script is not restarted.
>  >
>  >  But, if I insert a "Save" after starting the "interactive console" in
>  >  above scenario, then the scipt is correclty restarted.
>  >  Is this the correct behavior?
>  >
>  >  Regards,
>  >  Stéphane
>  >
>  >
>  >  _______________________________________________
>  >  Bf-committers mailing list
>  >  Bf-committers at blender.org
>  >  http://lists.blender.org/mailman/listinfo/bf-committers
>  >
>


More information about the Bf-committers mailing list