Cleanup: trailing space
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
# Filename : apriori_and_causal_density.py
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Selects the lines with high a priori density and
|
||||
# subjects them to the causal density so as to avoid
|
||||
# Purpose : Selects the lines with high a priori density and
|
||||
# subjects them to the causal density so as to avoid
|
||||
# cluttering
|
||||
|
||||
from freestyle.chainingiterators import ChainPredicateIterator
|
||||
|
@@ -19,7 +19,7 @@
|
||||
# Filename : cartoon.py
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Draws colored lines. The color is automatically
|
||||
# Purpose : Draws colored lines. The color is automatically
|
||||
# inferred from each object's material in a cartoon-like
|
||||
# fashion.
|
||||
|
||||
|
@@ -19,8 +19,8 @@
|
||||
# Filename : external_contour_sketchy.py
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Draws the external contour of the scene using a sketchy
|
||||
# chaining iterator (in particular each ViewEdge can be drawn
|
||||
# Purpose : Draws the external contour of the scene using a sketchy
|
||||
# chaining iterator (in particular each ViewEdge can be drawn
|
||||
# several times
|
||||
|
||||
from freestyle.chainingiterators import pySketchyChainingIterator
|
||||
@@ -41,7 +41,7 @@ from freestyle.shaders import (
|
||||
from freestyle.types import Operators
|
||||
|
||||
|
||||
upred = AndUP1D(QuantitativeInvisibilityUP1D(0), ExternalContourUP1D())
|
||||
upred = AndUP1D(QuantitativeInvisibilityUP1D(0), ExternalContourUP1D())
|
||||
Operators.select(upred)
|
||||
Operators.bidirectional_chain(pySketchyChainingIterator(), NotUP1D(upred))
|
||||
shaders_list = [
|
||||
|
@@ -19,8 +19,8 @@
|
||||
# Filename : haloing.py
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : This style module selects the lines that
|
||||
# are connected (in the image) to a specific
|
||||
# Purpose : This style module selects the lines that
|
||||
# are connected (in the image) to a specific
|
||||
# object and trims them in order to produce
|
||||
# a haloing effect around the target shape
|
||||
|
||||
@@ -42,14 +42,14 @@ from freestyle.shaders import (
|
||||
from freestyle.types import Id, Operators
|
||||
|
||||
|
||||
# id corresponds to the id of the target object
|
||||
# id corresponds to the id of the target object
|
||||
# (accessed by SHIFT+click)
|
||||
id = Id(3,0)
|
||||
upred = AndUP1D(QuantitativeInvisibilityUP1D(0), pyIsOccludedByUP1D(id))
|
||||
Operators.select(upred)
|
||||
Operators.bidirectional_chain(ChainSilhouetteIterator(), NotUP1D(upred))
|
||||
shaders_list = [
|
||||
IncreasingThicknessShader(3, 5),
|
||||
IncreasingThicknessShader(3, 5),
|
||||
IncreasingColorShader(1,0,0, 1,0,1,0,1),
|
||||
SamplingShader(1.0),
|
||||
pyTVertexRemoverShader(),
|
||||
|
@@ -19,7 +19,7 @@
|
||||
# Filename : invisible_lines.py
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Draws all lines whose Quantitative Invisibility
|
||||
# Purpose : Draws all lines whose Quantitative Invisibility
|
||||
# is different from 0
|
||||
|
||||
from freestyle.chainingiterators import ChainSilhouetteIterator
|
||||
|
@@ -19,13 +19,13 @@
|
||||
# Filename : long_anisotropically_dense.py
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Selects the lines that are long and have a high anisotropic
|
||||
# a priori density and uses causal density
|
||||
# Purpose : Selects the lines that are long and have a high anisotropic
|
||||
# a priori density and uses causal density
|
||||
# to draw without cluttering. Ideally, half of the
|
||||
# selected lines are culled using the causal density.
|
||||
#
|
||||
# ********************* WARNING *************************************
|
||||
# ******** The Directional a priori density maps must ******
|
||||
# ******** The Directional a priori density maps must ******
|
||||
# ******** have been computed prior to using this style module ******
|
||||
|
||||
from freestyle.chainingiterators import ChainSilhouetteIterator
|
||||
@@ -75,7 +75,7 @@ Operators.sort(pyLengthBP1D())
|
||||
shaders_list = [
|
||||
SamplingShader(2.0),
|
||||
ConstantThicknessShader(2),
|
||||
ConstantColorShader(0.2,0.2,0.25,1),
|
||||
ConstantColorShader(0.2,0.2,0.25,1),
|
||||
]
|
||||
## uniform culling
|
||||
Operators.create(pyDensityUP1D(3.0,2.0e-2, IntegrationType.MEAN, 0.1), shaders_list)
|
||||
|
@@ -19,7 +19,7 @@
|
||||
# Filename : multiple_parameterization.py
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : The thickness and the color of the strokes vary continuously
|
||||
# Purpose : The thickness and the color of the strokes vary continuously
|
||||
# independently from occlusions although only
|
||||
# visible lines are actually drawn. This is equivalent
|
||||
# to assigning the thickness using a parameterization covering
|
||||
|
@@ -22,7 +22,7 @@
|
||||
# Purpose : Uses the NatureUP1D predicate to select the lines
|
||||
# of a given type (among Nature.SILHOUETTE, Nature.CREASE, Nature.SUGGESTIVE_CONTOURS,
|
||||
# Nature.BORDERS).
|
||||
# The suggestive contours must have been enabled in the
|
||||
# The suggestive contours must have been enabled in the
|
||||
# options dialog to appear in the View Map.
|
||||
|
||||
from freestyle.chainingiterators import ChainSilhouetteIterator
|
||||
|
@@ -19,7 +19,7 @@
|
||||
# Filename : near_lines.py
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Draws the lines that are "closer" than a threshold
|
||||
# Purpose : Draws the lines that are "closer" than a threshold
|
||||
# (between 0 and 1)
|
||||
|
||||
from freestyle.chainingiterators import ChainSilhouetteIterator
|
||||
|
@@ -20,7 +20,7 @@
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Draws lines hidden by one surface.
|
||||
# *** Quantitative Invisibility must have been
|
||||
# *** Quantitative Invisibility must have been
|
||||
# enabled in the options dialog to use this style module ****
|
||||
|
||||
from freestyle.chainingiterators import ChainSilhouetteIterator
|
||||
|
@@ -20,7 +20,7 @@
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Draws lines hidden by two surfaces.
|
||||
# *** Quantitative Invisibility must have been
|
||||
# *** Quantitative Invisibility must have been
|
||||
# enabled in the options dialog to use this style module ****
|
||||
|
||||
from freestyle.chainingiterators import ChainSilhouetteIterator
|
||||
|
@@ -21,7 +21,7 @@
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Use the sequential split with two different
|
||||
# predicates to specify respectively the starting and
|
||||
# the stopping extremities for strokes
|
||||
# the stopping extremities for strokes
|
||||
|
||||
from freestyle.chainingiterators import ChainSilhouetteIterator
|
||||
from freestyle.predicates import (
|
||||
|
@@ -19,7 +19,7 @@
|
||||
# Filename : sketchy_multiple_parameterization.py
|
||||
# Author : Stephane Grabli
|
||||
# Date : 04/08/2005
|
||||
# Purpose : Builds sketchy strokes whose topology relies on a
|
||||
# Purpose : Builds sketchy strokes whose topology relies on a
|
||||
# parameterization that covers the complete lines (visible+invisible)
|
||||
# whereas only the visible portions are actually drawn
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
# ##### END GPL LICENSE BLOCK #####
|
||||
|
||||
# Filename : uniformpruning_zsort.py
|
||||
# Authors : Fredo Durand, Stephane Grabli, Francois Sillion, Emmanuel Turquin
|
||||
# Authors : Fredo Durand, Stephane Grabli, Francois Sillion, Emmanuel Turquin
|
||||
# Date : 08/04/2005
|
||||
|
||||
from freestyle.chainingiterators import ChainSilhouetteIterator
|
||||
|
@@ -128,7 +128,7 @@ class SpellChecker:
|
||||
"multisampling",
|
||||
"multiscatter",
|
||||
"multitexture",
|
||||
"multithreaded",
|
||||
"multithreaded",
|
||||
"multiuser",
|
||||
"multiview",
|
||||
"namespace",
|
||||
|
@@ -232,7 +232,7 @@ bbone_property_ids = (
|
||||
"bbone_scalein",
|
||||
"bbone_scaleout",
|
||||
|
||||
# NOTE: These are in the nested bone struct
|
||||
# NOTE: These are in the nested bone struct
|
||||
# Do it this way to force them to be included
|
||||
# in whatever actions are being keyed here
|
||||
"bone.bbone_in",
|
||||
|
@@ -723,7 +723,7 @@ def main(context,
|
||||
global USER_FILL_HOLES_QUALITY
|
||||
global USER_STRETCH_ASPECT
|
||||
global USER_ISLAND_MARGIN
|
||||
|
||||
|
||||
from math import cos
|
||||
import time
|
||||
|
||||
@@ -747,7 +747,7 @@ def main(context,
|
||||
USER_FILL_HOLES = 0
|
||||
USER_FILL_HOLES_QUALITY = 50 # Only for hole filling.
|
||||
USER_VIEW_INIT = 0 # Only for hole filling.
|
||||
|
||||
|
||||
is_editmode = (context.active_object.mode == 'EDIT')
|
||||
if is_editmode:
|
||||
obList = [ob for ob in [context.active_object] if ob and ob.type == 'MESH']
|
||||
|
@@ -886,10 +886,10 @@ class ConstraintButtonsPanel:
|
||||
box.template_cache_file(con, "cache_file")
|
||||
|
||||
cache_file = con.cache_file
|
||||
|
||||
|
||||
layout.label(text="Constraint Properties:")
|
||||
box = layout.box()
|
||||
|
||||
|
||||
if cache_file is not None:
|
||||
box.prop_search(con, "object_path", cache_file, "object_paths")
|
||||
|
||||
|
@@ -180,7 +180,7 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, Panel):
|
||||
if poselib:
|
||||
# warning about poselib being in an invalid state
|
||||
if len(poselib.fcurves) > 0 and len(poselib.pose_markers) == 0:
|
||||
layout.label(icon='ERROR', text="Error: Potentially corrupt library, run 'Sanitize' operator to fix")
|
||||
layout.label(icon='ERROR', text="Error: Potentially corrupt library, run 'Sanitize' operator to fix")
|
||||
|
||||
# list of poses in pose library
|
||||
row = layout.row()
|
||||
|
@@ -494,7 +494,7 @@ class BUILTIN_KSI_WholeCharacter(KeyingSetInfo):
|
||||
# bendy bone properties
|
||||
def doBBone(ksi, context, ks, pchan):
|
||||
bone = pchan.bone
|
||||
|
||||
|
||||
# This check is crude, but is the best we can do for now
|
||||
# It simply adds all of these if the bbone has segments
|
||||
# (and the bone is a control bone). This may lead to some
|
||||
|
Reference in New Issue
Block a user