Blender For Dummies. Jason van Gumster
Чтение книги онлайн.

Читать онлайн книгу Blender For Dummies - Jason van Gumster страница 43

Название: Blender For Dummies

Автор: Jason van Gumster

Издательство: John Wiley & Sons Limited

Жанр: Программы

Серия:

isbn: 9781119616986

isbn:

СКАЧАТЬ object in the Outliner (essentially dropping it in like copying a file into a folder on your computer’s file browser). That action automatically creates a parent-child relationship between the two objects. On complex scenes, this is an extremely handy trick.

      

Many game engines and other 3D applications have a notion of grouping that’s very different from how Blender works. They tend to treat all members of a group as a single unit, regardless of which one gets selected. They also tend to treat groups hierarchically; an object can only belong to one group (in turn, that group can be a member of another group, but the base object is still only a member of one). In fact, this behavior is a lot more like Blender’s parenting. To mimic this behavior more seamlessly, follow these steps:

      1 Create an Empty object near the center of your “grouping” of objects and display it as a cube (Add ⇒ Empty ⇒ Cube).

      2 Adjust the size of the Empty from the Last Operator panel (it’s the Radius value) to roughly include all the objects in your grouping.

      3 Name the Empty something clever to indicate the grouping’s name.

      4 Make all objects you’re grouping a child of the Empty (select each object, select the Empty, Ctrl+P ⇒ Object).

      With this bit of legwork done, you can select the Empty’s cube outline to transform your whole grouping. Even better, your grouping will be hierarchically organized in the Scenes display mode of the Outliner. Many game-engine export scripts properly recognize and translate this structure to their native means of grouping.

      Creating collections

      

Icon depicting Empty. Of course, under some circumstances, parenting doesn’t make sense for organizing a set of objects. A good example is a lighting setup that you want to adjust and reuse. Sure, you can rationalize that perhaps the key light is the most important light and, therefore, should be the parent, but that logic is a bit of a stretch and doesn’t make much sense in more complex setups. You could also add an Empty to the scene and parent all your lights to it. That solution works, but what if you wanted to make a duplicate instance of that light rig?

Image described by caption and surrounding text.

      FIGURE 4-13: The Outliner is where you manage collections. Four chapters into this book and you’ve been using them all along!

      

If you’re coming from another 3D application, you might think of collections like groups or layers, but they’re so much more than that in Blender. Collections are not only a great way to organize your scenes, but they’re also an integral part of other processes in Blender such as instancing and compositing.

      Even with just the one collection in your scene, there are a few things you may want to do from the Outliner. For the first thing, I strongly recommend that you rename your collection to something that makes sense to you. Nothing is more confusing than opening an old project and seeing your collections named Collection, Collection 1, Collection 2, and so on.

      To rename a collection, double-click its name in the Outliner and type the new name you’d like to use. You can’t do this with the scene collection, but any collection within the scene is fair game.

      To test the difference between these two controls, disable one and then render your scene (Render ⇒ Render Image). Then re-enable it and disable the other before rendering again. You should notice that when you disable the check box, nothing appears when you render, but when you click the eye icon to close it, your objects in the collection still appear when you render.

      

For a faster way to control the visibility of collections in your scene, you can use the Collections panel in the View tab of the 3D Viewport’s Sidebar. That panel lists all the collections enabled in your current view layer and provides you with toggles to control visibility.

      Icon depicting New Collection. Playing with one collection is fun and all, but it’s when you have multiple collections that you can really see this feature sing. From the View Layers display mode of the Outliner, you can create a new collection by clicking the New Collection button on the right side of the Outliner’s header. Clicking this button adds a new empty collection to your scene. You can populate that collection by dragging and dropping objects into it.

      Icon depicting 3D Viewport. Of course, you’re not always working in the Outliner. Sometimes the Outliner is hidden or you’re working with a maximized 3D Viewport (Ctrl+Spacebar) and you don’t want to shrink it just to see the Outliner. Fortunately, you can also manage collections from the 3D Viewport. The easiest way to create a new collection from the 3D Viewport is to move one or more objects to it. Follow these steps:

      1 Select all the objects you want to include in the new collection.As an example, say you want the lights in your scene to be in their own collection, so you start off by selecting all your lights.

      2 Choose Object ⇒ Collection ⇒ Move to Collection or use the M hotkey.A secondary menu appears with a list of your current collections in your scene. Choose the menu item at the bottom that says New Collection. A pop-up will appear where you can name your new collection. In this example, you might choose to name that collection Lights. After you confirm the collection’s name by clicking OK, all your selected objects are moved to your new collection.