qualityAssurance.checks.scene module

class qualityAssurance.checks.scene.DefaultName

Bases: qualityAssurance.utils.qa.QualityAssurance

All transforms will be checked ti see if they start with a string that is considered to be a default name.

regex
Returns:Regex to find default names
Return type:_sre.SRE_Pattern
class qualityAssurance.checks.scene.EmptyDisplayLayer

Bases: qualityAssurance.utils.qa.QualityAssurance

All display layers will be checked to see if they are empty. When fixing these nodes will be deleted.

class qualityAssurance.checks.scene.EmptyNamespaces

Bases: qualityAssurance.utils.qa.QualityAssurance

All namespaces will be checked to see if they are empty. When fixing these namespaces will be deleted.

ignoreNamespaces
Returns:Namespaces to ignore
Return type:list
class qualityAssurance.checks.scene.EmptyRenderLayer

Bases: qualityAssurance.utils.qa.QualityAssurance

All render layers will be checked to see if they are empty. When fixing these nodes will be deleted.

class qualityAssurance.checks.scene.EmptyTransform

Bases: qualityAssurance.utils.qa.QualityAssurance

All transform will be checked to see if they are empty. When fixing these nodes will be deleted.

class qualityAssurance.checks.scene.HyperBookmarks

Bases: qualityAssurance.utils.qa.QualityAssurance

All hyper bookmarks of the predefined node types will be added to the error list. When fixing these nodes will be deleted. To make sure no no connected nodes are deleted. The nodes will be locked before deletion.

nodeIgnore
Returns:List of nodes to be ignored
Return type:list
nodeTypes
Returns:List of node types that should be checked
Return type:list
class qualityAssurance.checks.scene.NamingConvention

Bases: qualityAssurance.utils.qa.QualityAssurance

All nodes part of the predefined node type list are being checked to see if they follow the lower case split with a “_” naming convention. When fixing the error nodes will be renamed to follow the correct naming convention.

convertToNamingConvention(name)

Convert string to naming convention.

Parameters:name (str) –
Returns:Name adjusted to naming convention
Return type:str
nodeTypes
Returns:List of node types that should be checked
Return type:list
splitOn(split, func)
Parameters:
  • split (list) – List of strings to split
  • func – Function to split string by
Returns:

Split sections

Return type:

list

splitOnCamelCase(n)
Parameters:n (str) –
Returns:If n is upper case
Return type:bool
splitOnDigit(n)
Parameters:n (str) –
Returns:If n is a digit
Return type:bool
class qualityAssurance.checks.scene.NonReferencedNamespace

Bases: qualityAssurance.utils.qa.QualityAssurance

All nodes will be checked to see if they have a non-referenced namespace. When fixing this the namespace will be removed from the node.

class qualityAssurance.checks.scene.NotConnectedGroupID

Bases: qualityAssurance.utils.qa.QualityAssurance

All not connected intermediate nodes will be added to the error list. When fixing these nodes will be deleted.

class qualityAssurance.checks.scene.NotConnectedIntermediateShape

Bases: qualityAssurance.utils.qa.QualityAssurance

All not connected intermediate nodes will be added to the error list. When fixing these nodes will be deleted.

class qualityAssurance.checks.scene.UniqueName

Bases: qualityAssurance.utils.qa.QualityAssurance

All transforms will be checked to see if their name is unique. When fixing the not uniquely named transforms will be made unique.

class qualityAssurance.checks.scene.UnknownNodes

Bases: qualityAssurance.utils.qa.QualityAssurance

All unknown nodes will be added to the error list. When fixing these nodes will be deleted.