﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Doc%3A2.6%2FManual%2FExtensions%2FPython%2FSecurity</id>
	<title>Doc:2.6/Manual/Extensions/Python/Security - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Doc%3A2.6%2FManual%2FExtensions%2FPython%2FSecurity"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/Security&amp;action=history"/>
	<updated>2026-06-07T07:13:33Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/Security&amp;diff=142813&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/Security&amp;diff=142813&amp;oldid=prev"/>
		<updated>2018-06-28T20:56:48Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 20:56時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/Security&amp;diff=142812&amp;oldid=prev</id>
		<title>wiki&gt;Olson: /* Scripting &amp; Security */ corrected typo</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Doc:2.6/Manual/Extensions/Python/Security&amp;diff=142812&amp;oldid=prev"/>
		<updated>2013-09-03T21:02:52Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Scripting &amp;amp; Security: &lt;/span&gt; corrected typo&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Scripting &amp;amp; Security = &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ability to include Python scripts within blend files is valuable for advanced tasks such as rigging, automation and using the game-engine, however it poses a security risk since Python doesn't restrict what a script can do.&lt;br /&gt;
&lt;br /&gt;
Therefore, you should only run scripts from sources you know and trust.&lt;br /&gt;
&lt;br /&gt;
Automatic execution is disabled by default, however some blend files need this to function properly.&lt;br /&gt;
&lt;br /&gt;
When a blend file tries to execute a script and is not allowed, a message will appear in the header with the option to '''Reload Trusted''' or '''Ignore''' the message.&lt;br /&gt;
&lt;br /&gt;
[[File:Python_Script_AutoExec_Header.png|800px|center]]&lt;br /&gt;
&lt;br /&gt;
== Scripts in Blend Files ==&lt;br /&gt;
&lt;br /&gt;
=== Auto Execution ===&lt;br /&gt;
&lt;br /&gt;
Here are the different ways blend files may automatically run scripts.&lt;br /&gt;
&lt;br /&gt;
* Registered Text-Blocks&amp;lt;br&amp;gt;''A text block can have its '''Register''' option enabled which means it will load on start.''&lt;br /&gt;
* Animation Drivers&amp;lt;br&amp;gt;''Python expressions can be used to '''drive''' values and are often used in more advanced rigs and animations.''&lt;br /&gt;
* Game Engine Auto-Start&amp;lt;br&amp;gt;''scripts are often used for game logic, blend files can have auto-start enabled with runs the game on load.''&lt;br /&gt;
&lt;br /&gt;
=== Manual Execution ===&lt;br /&gt;
&lt;br /&gt;
There are other ways scripts in a &amp;lt;tt&amp;gt;blend&amp;lt;/tt&amp;gt; file may execute that require user interaction (therefor will run even when auto-execution is off),&amp;lt;br&amp;gt;but you should be aware that this is the case since it's not necessarily obvious.&lt;br /&gt;
&lt;br /&gt;
* Running a script in the text editor ''(ok, this is obvious!)''.&lt;br /&gt;
* Rendering with FreeStyle - ''FreeStyle uses scripts to control line styles''&lt;br /&gt;
* Running the Game-Engine.&lt;br /&gt;
&lt;br /&gt;
== Controlling Script Execution ==&lt;br /&gt;
&lt;br /&gt;
Blender provides a number of ways to control whether scripts from a blend file are allowed to automatically execute.&lt;br /&gt;
&lt;br /&gt;
First of all, the file-selector has the option '''Trusted Source''' which you can use on a case-by-case basis to control auto-execution.&lt;br /&gt;
&lt;br /&gt;
However you may forget to set this, or open a file without going through the file selector - so you can change the default (described next).&lt;br /&gt;
&lt;br /&gt;
=== Setting Defaults ===&lt;br /&gt;
&lt;br /&gt;
In the '''File''' section of the user-preferences there is the toggle '''Auto-Run Python Scripts'''.&lt;br /&gt;
&lt;br /&gt;
This means the '''Trusted Source''' option in the file-selector will be enabled by default, and scripts can run when blend files are loaded without using the file selector.&lt;br /&gt;
&lt;br /&gt;
Once enabled you have the option to exclude certain directories, a typical configuration would be to trust all paths except for the download directory.&lt;br /&gt;
&lt;br /&gt;
[[File:Python_Script_AutoExec_Configure.png‎|600px|center]]&lt;br /&gt;
&lt;br /&gt;
=== Command Line ===&lt;br /&gt;
&lt;br /&gt;
You may want to perform batch rendering or some other task from the command line - running Blender without an interface.&lt;br /&gt;
&lt;br /&gt;
In this case the user-preferences are still used but you may want to override them.&lt;br /&gt;
* Enable with &amp;lt;tt&amp;gt;-y&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;--enable-autoexec&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Disable with &amp;lt;tt&amp;gt;-Y&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;--disable-autoexec&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example - rendering an animation in background mode, allowing drivers and other scripts to run:&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
blender --background --enable-autoexec my_movie.blend --render-anim&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: these command line arguments can be used to start a regular blender instance and will still override the user-preferences.&lt;/div&gt;</summary>
		<author><name>wiki&gt;Olson</name></author>
		
	</entry>
</feed>