Chế Độ Giới Thiệu (Demo Mode)

Nội Dung Cần Viết Thêm.

Kích Hoạt (Activation)

  • Mở Blender và chuyển đến Cấu Hình, sau đó đến thẻ Trình Bổ Sung.

  • Click System then Demo Mode to enable the script.

Cấu Hình (Configuration)

This is done from File ‣ Demo Mode (Setup) in the File menu, from here you can select a directory which is searched recursively for blend-files to loop over.

There are options as to what to do with each file at the moment the main options are to render or play an animation with options as to how many cycles to play, time to wait after render is done.

Cấu Hình Tự Động (Automatic Configuration)

The Auto option selects between Render and Play option based on the window layout's use of image/node editors. If you are happy to use these settings on all files, you can leave the Run Immediately option enabled and confirm.

Điều Chỉnh Cấu Hình (Adjusting the Configuration)

If you want to set options per file, you can disable Run Immediately, during setup and select demo.py text data-block. This file has one line per file and settings can be edited and saved with the blend-file. When demo.py is present you only have to go to File ‣ Demo Mode (Start).

Thuộc Tính (Attributes)

These keyword arguments show up in generated demo.py, e.g:

dict(anim_cycles=2, anim_render=False, anim_screen_switch=0.0, anim_time_max=8.0, anim_time_min=4.0, display_render=4.0, file='foobar.blend', mode='AUTO'),
  • anim_cycles -- Number of times to play the animation.

  • anim_render -- Render entire animation (applies to mode='RENDER' only).

  • anim_screen_switch -- Time between switching screens (in seconds) or 0 to disable.

  • anim_time_max -- Maximum number of seconds to show the animation for (in case the end frame is very high for no reason).

  • anim_time_min -- Minimum number of seconds to show the animation for (for small loops).

  • display_render -- Time to display the rendered image before moving on (in seconds).

  • file -- The filepath for the blend-file.

  • mode -- AUTO / PLAY / RENDER -- what to do on load.

Cấu Hình Di Động (Portable Configuration)

Once you setup a demo.py you may want to move it to a different system. In this case the paths might not match up, if so update the search_path variable to point to the path on the new system. You can also set the search_path to use the directory of the current blend-file:

search_path = "//"

Cách Sử Dụng (Usage)

Once the demo starts it will play, render and load different files in the same Blender instance. Since its using a modal operator you can still use with Blender while the demo runs.

If you want to stop Demo Mode, you can press Esc and continue using Blender. To enable again there are three buttons at the right hand side of the file menu to navigate Prev/Pause/Next.

Những Giới Hạn (Limitations)

  • One file can't play an animation then render, you need to copy the line in demo.py and set one mode to RENDER the other to PLAY.

Tham Chiếu (Reference)

Hạng Mục (Category)

Hệ Thống (System)

Miêu Tả (Description)

Demo Mode lets you select multiple blend-files and loop over them.

Địa Điểm (Location)

File ‣ Demo menu

Tập Tin (File)

system_demo_mode folder

Tác Giả (Author)

Campbell Barton

Giấy Phép (License)

GPL

Ghi Chú (Note)

Trình Bổ Sung này được gói cùng với Blender.