﻿<?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=%E5%88%A9%E7%94%A8%E8%80%85%3AHessiess%2Ffile_management</id>
	<title>利用者:Hessiess/file management - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AHessiess%2Ffile_management"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Hessiess/file_management&amp;action=history"/>
	<updated>2026-12-01T00:49:57Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Hessiess/file_management&amp;diff=100797&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Hessiess/file_management&amp;diff=100797&amp;oldid=prev"/>
		<updated>2018-06-28T19:39:44Z</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日 (木) 19:39時点における版&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=%E5%88%A9%E7%94%A8%E8%80%85:Hessiess/file_management&amp;diff=100796&amp;oldid=prev</id>
		<title>91.111.35.157: added section on file versioning</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Hessiess/file_management&amp;diff=100796&amp;oldid=prev"/>
		<updated>2010-11-07T20:15:12Z</updated>

		<summary type="html">&lt;p&gt;added section on file versioning&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= How to manage your blender project files =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you begin with Blender, your projects are simple and consist only of single&lt;br /&gt;
files. But should you so much as link to a texture file, an inter-file dependency&lt;br /&gt;
is created. When dependencies exist, it is important to store files in an organised &lt;br /&gt;
file tree to avoid future problems.&lt;br /&gt;
&lt;br /&gt;
This article describes a simple directory system template that can be applied to&lt;br /&gt;
your own blender projects. It allows assets to be built independently, then composed&lt;br /&gt;
together into larger projects with ease. All while allowing the project in its&lt;br /&gt;
entity to be moved from one machine to another and to different locations within&lt;br /&gt;
the file system as a whole.&lt;br /&gt;
&lt;br /&gt;
Please note that there are many different ways to achieve these goals, all of which&lt;br /&gt;
have there advantages and disadvantages. The method described here was developed&lt;br /&gt;
through years of trial and error, it is defiantly not sortable for every situation.&lt;br /&gt;
Adapt and adjust as need be.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== note to complete beginners ==&lt;br /&gt;
&lt;br /&gt;
Unlike a lot of desktop applications, such as word processors, when you use an&lt;br /&gt;
external media file like a texture image, blender does not(by default) store&lt;br /&gt;
the image in the blend file. This creates a dependancy between the blend and&lt;br /&gt;
any external files, such that if anything is moved, blender may not be able&lt;br /&gt;
to find the images.&lt;br /&gt;
&lt;br /&gt;
In a lot of ways, this is actually preferable. Should you edit the texture,&lt;br /&gt;
blender will automatically load the latest version. However it does it does&lt;br /&gt;
mean you need a strict file system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The structure of an asset ==&lt;br /&gt;
&lt;br /&gt;
The basic component of this system is an asset. An asset is simply a single blend&lt;br /&gt;
file and any associated texture images. An asset could be a character, an environment&lt;br /&gt;
or a component of an environment.&lt;br /&gt;
&lt;br /&gt;
Within the file system, an asset is a directory. The main blend file lives in the&lt;br /&gt;
root of this tree and all of the dependencies are stored in subdirectories. For&lt;br /&gt;
example, if you were designing a character called Fred, you could have something&lt;br /&gt;
like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fred/&lt;br /&gt;
    | fred.blend&lt;br /&gt;
    | textures/&lt;br /&gt;
        | diffuse.png&lt;br /&gt;
        | bump.png&lt;br /&gt;
        | spec.png&lt;br /&gt;
    | refs/&lt;br /&gt;
        | front.jpg&lt;br /&gt;
        | side.jpg&lt;br /&gt;
    | fred/renders/&lt;br /&gt;
        | render_0001.jpg&lt;br /&gt;
        | bump.png&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So long as the fred.blend file links to its assets using relative paths, this tree&lt;br /&gt;
is an atomic unit. Unfortunately, Blender uses absolute paths by default. To fix&lt;br /&gt;
that, select the &amp;#039;Make all paths relative&amp;#039; option in the File-&amp;gt;External Data menu&lt;br /&gt;
and enable the &amp;#039;Relative Paths Default&amp;#039; option in the preferences.&lt;br /&gt;
&lt;br /&gt;
assets can be used simply by linking the blend file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Composing assets (assets with dependencies) ==&lt;br /&gt;
&lt;br /&gt;
When developing larger projects, it is normal to have each object in its own blend&lt;br /&gt;
file. This can be done easily using the system described above, each file becomes&lt;br /&gt;
its own asset directory. However, where one file links to another, it is tricky to&lt;br /&gt;
maintain re-usability.&lt;br /&gt;
&lt;br /&gt;
A simple example of this is a house scene. A house contains rooms, rooms contain&lt;br /&gt;
tables, chairs and cups. One way to do this is to create a directory structure&lt;br /&gt;
like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
my animation/&lt;br /&gt;
    | scenes/&lt;br /&gt;
        | house/&lt;br /&gt;
        | other scenes ...&lt;br /&gt;
    | props/&lt;br /&gt;
        | sofa/&lt;br /&gt;
        | table/&lt;br /&gt;
        | cup/&lt;br /&gt;
        | other props ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But doing that makes the house scene dependent on the structure of that specific&lt;br /&gt;
project, it would be difficult to then re-use it in a different project. A better&lt;br /&gt;
way is to nest the asset directories, so that copying the top level directory always&lt;br /&gt;
copies all the dependencies. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
house/&lt;br /&gt;
    house.blend&lt;br /&gt;
    | assets/ &lt;br /&gt;
        | sofa/&lt;br /&gt;
        | table/&lt;br /&gt;
        | cup/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The house directory becomes an asset in its own right, it just happens to be composed&lt;br /&gt;
of other assets.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The bigger picture ==&lt;br /&gt;
&lt;br /&gt;
Up to this point, the main focus has been on producing file structures which permit&lt;br /&gt;
easy reuse. But in some cases the reuse ability of a file does not matter, like in&lt;br /&gt;
the scene files of an animated film. The environments, characters and props are all&lt;br /&gt;
linked in from external files, only the animation data is local.&lt;br /&gt;
&lt;br /&gt;
This is reflected in the structure of a projects root directory which is there to&lt;br /&gt;
logically organise the assets and scene files. For an animated film project, the&lt;br /&gt;
root could look something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
characters/&lt;br /&gt;
  | fred&lt;br /&gt;
  | joe&lt;br /&gt;
environments/&lt;br /&gt;
  | house&lt;br /&gt;
scenes/&lt;br /&gt;
  | scene_1/&lt;br /&gt;
      | scene_1.blend&lt;br /&gt;
      | refs/&lt;br /&gt;
          | walk.avi&lt;br /&gt;
      | render/&lt;br /&gt;
  | scene_2/&lt;br /&gt;
      | scene_2.blend&lt;br /&gt;
global/&lt;br /&gt;
  | assets/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Using version control ==&lt;br /&gt;
&lt;br /&gt;
Humans are not perfect, we have a tendency to mess up. Imagine the situation, you&lt;br /&gt;
have just spent several hours working on something, but you realise that it would&lt;br /&gt;
have been better to do it in a completely different way. You want to go back to&lt;br /&gt;
the file before you changed it, but the original file has already been overwritten.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Manual versioning ===&lt;br /&gt;
&lt;br /&gt;
At some point or another, most computer users come across manual versioning. If you&lt;br /&gt;
haven&amp;#039;t it is simply storing versions of a file by incrementing a number in the file&lt;br /&gt;
name i.e. charicter_1.blend, charicter_2.blend etc. While this appears to work at&lt;br /&gt;
first glance, it completely disintegrates in practice. An outline of some of the&lt;br /&gt;
problems follow:&lt;br /&gt;
&lt;br /&gt;
;Linking does not work:&lt;br /&gt;
When you link to data from a different blend file, blender references that file&lt;br /&gt;
using its exact file name. It does not check to see if there is another copy&lt;br /&gt;
with a higher revision number. So, for example if you are working on a character&lt;br /&gt;
saved as character_1.blend then link it from a different file to do some animation.&lt;br /&gt;
If you then go back and change the character, saving it as character_2.blend, the&lt;br /&gt;
linked file will still point at the older version of the file.&lt;br /&gt;
&lt;br /&gt;
;Clutters the file system:&lt;br /&gt;
By storing each version as its own file, the file system gets cluttered up with&lt;br /&gt;
copies of the same file. This can be a huge problem for organisation as it can&lt;br /&gt;
be difficult to find the file you want to change.&lt;br /&gt;
&lt;br /&gt;
;No indication of what was changed where:&lt;br /&gt;
If you leave a project for a week or two in order to work on something else, then&lt;br /&gt;
come back to it later, there is absolutely no indication of what was changed in which&lt;br /&gt;
version. If at this point you want to go back to a previous version, you must go&lt;br /&gt;
through all of the files manually to find the one you want.&lt;br /&gt;
&lt;br /&gt;
;Space inefficient:&lt;br /&gt;
Because each version is stored as a complete copy of the file, a lot of disk space gets&lt;br /&gt;
wasted storing redundant data.&lt;br /&gt;
&lt;br /&gt;
;Working collaboratively is impossible:&lt;br /&gt;
If a project is being worked on collaboratively, or even by one person from more than&lt;br /&gt;
one computer, it is essential that there is some way to merge the changes back together.&lt;br /&gt;
This can be done manually to some degree, but as the number of files and artists goes&lt;br /&gt;
up, it becomes a royal pain in the ass.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version Control Systems ===&lt;br /&gt;
&lt;br /&gt;
Version Control Systems(VCS) are programs designed to solve these problems. Effectively&lt;br /&gt;
they work by adding another dimension to the traditional file system: time. The state&lt;br /&gt;
of a file tree may be snapshotted at different points in time. Then if you want to go&lt;br /&gt;
back, you just revert to one of the snapshots.&lt;br /&gt;
&lt;br /&gt;
Until recently, version control systems had a high barrier to entry. The traditional&lt;br /&gt;
systems like Subversion and CVS all require a central server to operate, something&lt;br /&gt;
most people do not have. Thankfully, the modern trend for decentralised VCS&amp;#039;s has&lt;br /&gt;
removed this barrier.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Versioning blender projects with Git ===&lt;br /&gt;
&lt;br /&gt;
There are a number of decentralised version control systems including Bazaar, Mercurial&lt;br /&gt;
and Git. With regards to functionality, they are almost identical; which you choose to&lt;br /&gt;
use is mainly a matter of personal preference. I have chosen to use Git for this tutorial&lt;br /&gt;
as it is what I use myself, however it is easily applicable to the other systems as&lt;br /&gt;
well. &lt;br /&gt;
&lt;br /&gt;
This will be described twice, demonstrating how to use the software with the command line&lt;br /&gt;
interface and a GUI front end.&lt;br /&gt;
&lt;br /&gt;
==== Installing git ====&lt;br /&gt;
&lt;br /&gt;
[Describe how to install git]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Git from the command line ====&lt;br /&gt;
&lt;br /&gt;
If you are creating a new project, start by setting up a file tree as described in the&lt;br /&gt;
first section of this article. Then create your various asset blend files.&lt;br /&gt;
&lt;br /&gt;
Next open a terminal and cd-ing into the root directory of your project, then run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git init&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command creates a new repository in the current directory. Repositories store&lt;br /&gt;
the different versions of the files and are stored in the &amp;#039;.git&amp;#039; directory. Now run&lt;br /&gt;
&amp;#039;git status&amp;#039;, you should see something like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git status&lt;br /&gt;
# On branch master&lt;br /&gt;
#&lt;br /&gt;
# Initial commit&lt;br /&gt;
#&lt;br /&gt;
# Untracked files:&lt;br /&gt;
#   (use &amp;quot;git add &amp;lt;file&amp;gt;...&amp;quot; to include in what will be committed)&lt;br /&gt;
#&lt;br /&gt;
#	characters/&lt;br /&gt;
#	scenes/&lt;br /&gt;
# nothing added to commit but untracked files present (use &amp;quot;git add&amp;quot; to track)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Git status command tells Git to look at the current directory tree and see what&lt;br /&gt;
files have changed. Git only tracks the files that you tell it to, so it currently&lt;br /&gt;
reports the project files as untracked. To make Git track a file, it must be added&lt;br /&gt;
using the &amp;#039;git add&amp;#039; command, running &amp;#039;git status&amp;#039; again shows they have been added.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git add .&lt;br /&gt;
&lt;br /&gt;
$ git status&lt;br /&gt;
# On branch master&lt;br /&gt;
#&lt;br /&gt;
# Initial commit&lt;br /&gt;
#&lt;br /&gt;
# Changes to be committed:&lt;br /&gt;
#   (use &amp;quot;git rm --cached &amp;lt;file&amp;gt;...&amp;quot; to unstage)&lt;br /&gt;
#&lt;br /&gt;
#	new file:   characters/charicter/charicter.blend&lt;br /&gt;
#	new file:   characters/charicter/textures/bump.png&lt;br /&gt;
#	new file:   characters/charicter/textures/diffuse.png&lt;br /&gt;
#	new file:   scenes/scene_1.blend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All that is left do do is store the first snapshot of these files, which is simply a&lt;br /&gt;
matter of running &amp;#039;git commit&amp;#039;. Ignore the &amp;#039;-m&amp;#039; for now.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git commit -m &amp;quot;Started a new blender project&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Congratulations, you have created your first commit, now you can make any changes you&lt;br /&gt;
want without worrying. Git has safely stored a copy of all of your files. Before&lt;br /&gt;
continuing, make some changes to your files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Going backwards =====&lt;br /&gt;
&lt;br /&gt;
The next thing to demonstrate is how to go back to an older version. However before&lt;br /&gt;
that can be done you need to commit your current changes. Run the &amp;#039;git status&amp;#039; command&lt;br /&gt;
and take note how git has tracked what files have been changed. Next run &amp;#039;git add .&amp;#039;&lt;br /&gt;
to add the changes and git commit -m &amp;quot;&amp;quot; to save them. The part in quotes after&lt;br /&gt;
git commit is called a commit message. Commit messages are there to tell you what&lt;br /&gt;
was changed from one revision to another. Write a commit message which explains&lt;br /&gt;
what you have done.&lt;br /&gt;
&lt;br /&gt;
Now run &amp;#039;git log&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ git log&lt;br /&gt;
commit d84a5dfd4c249c9a479baab2631bfb7edf3c405d&lt;br /&gt;
Date:   Sun Nov 7 19:41:10 2010 +0000&lt;br /&gt;
&lt;br /&gt;
    blocked animation for scene 1&lt;br /&gt;
&lt;br /&gt;
commit 7ff679f2efb2bc5f80c5e1c7465fb0fb033926a7&lt;br /&gt;
Date:   Sun Nov 7 19:39:54 2010 +0000&lt;br /&gt;
&lt;br /&gt;
    created new blender project&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Git log shows a list of all the commits that have been completed, you can see when a commit&lt;br /&gt;
was created and the corresponding commit message. The apparently random sequence next to the&lt;br /&gt;
word &amp;#039;commit&amp;#039; is that commits unique identifier. If you want to go back to the first commit&lt;br /&gt;
you made, just check it out. Note that the commit identifier will be different, copy it&lt;br /&gt;
from git log.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git checkout 7ff679f2efb2bc5f80c5e1c7465fb0fb033926a7&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And thats it, You have created a new repository, told Git to track the files, created your first&lt;br /&gt;
commit and learned to undo changes.&lt;br /&gt;
&lt;br /&gt;
These are the most important aspects of the Git version control system, however this tutorial&lt;br /&gt;
has left a lot of things out, such as how to work collaboratively. You can find more information&lt;br /&gt;
on Git usage at the following URL.&lt;br /&gt;
&lt;br /&gt;
http://hoth.entp.com/output/git_for_designers.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Git from the gui ====&lt;br /&gt;
&lt;br /&gt;
[to be written]&lt;/div&gt;</summary>
		<author><name>91.111.35.157</name></author>
		
	</entry>
</feed>