Page MenuHome

Adds freestyle.context for Freestyle add-ons to test rendering conditions
Needs RevisionPublic

Authored by Tamito Kajiyama (kjym3) on Dec 1 2014, 9:25 AM.

Details

Summary

This patch adds freestyle.context to allow Freestyle add-ons to test rendering conditions.

Available data members are:

  • is_animation: True if animation rendering is ongoing.
  • is_preview: True if preview rendering is ongoing.

Diff Detail

Event Timeline

Tamito Kajiyama (kjym3) retitled this revision from to Adds freestyle.context for Freestyle add-ons to test rendering conditions.
Tamito Kajiyama (kjym3) updated this object.
Tamito Kajiyama (kjym3) updated this object.
Sergey Sharybin (sergey) requested changes to this revision.Feb 4 2015, 6:51 PM

The thing is, there is already render context. In fact, it is called EvaluationContext which has a mode in it: viewport, preview final. Instead of adding functionality which duplicates it for freestyle would like if it is investigated to use R.eval_ctx instead.

This revision now requires changes to proceed.Feb 4 2015, 6:51 PM

@Sergey Sharybin (sergey)

I've taken on this project (in coordination with @Tamito Kajiyama (kjym3)) as this functionality is needed for the SVG Exporter. Would you also like to see this setting exposed to Blender in general, or is it OK to just expose it via the Freestyle Python API?