- Substance 3D home
- Home
- Command Line Tools
- Command Line overview
- sbsbaker
- sbscooker
- sbsmtools
- sbsmutator
- sbsrender
- sbsupdater
- Command Line overview
- Pysbs - Python API
- Pysbs - Python API overview
- Getting started
- General topics
- Examples
- API Content
- API Content overview
- Substance definitions
- Common interfaces
- compnode
- context projectmgr
- graph
- mdl
- modelgraphindex
- modelannotationnames
- modelgraph
- modelgraphgenerator
- modelgraphimplementation
- modelnodenames
- modeloperand
- modulegraphindex
- moduleannotation
- moduleconnection
- modulegraph
- modulegraphgenerator
- modulegraphimplementation
- modulegraphlibrary
- modulegraphregister
- modulenode
- modulenodeimplementation
- modulenodeinstance
- moduleoperand
- moduleoutputbridging
- moduleparaminput
- params
- projectmgrdoc
- sbsarchive
- sbscommon
- sbspreset
- sbsproject
- substance
- Libraries
- sbsenum
- sbslibrary
- sbsbakerslibrary
- Helpers
- Execution context
- API Change log
- Samples
- Setup and Getting Started
- Integrations
- Substance Maya toolset
- Changelog overview
ag_types
Module ag_types defines a set of types for making it more convenient to write pixel processors, dynamic values and functions.
It provides the definition of the classes:
class autograph.ag_types.TypeInfo(base_type, vector_size=1)
Bases: object
Class representing type information
static type_to_string(a)
class autograph.ag_types.Type(new_node, fn_ctx, type_info)
Bases: object
Base class for all sbs types
class autograph.ag_types.VectorType(new_node, fn_ctx, type_info)
Bases: autograph.ag_types.Type
Base class for scalar and vector arithmetic types (float, int)
class autograph.ag_types.FloatType(new_node, fn_ctx, type_info)
Bases: autograph.ag_types.VectorType
Base class for float scalar and vector arithmetic types
class autograph.ag_types.Float1(new_node, fn_ctx)
Bases: autograph.ag_types.FloatType
Scalar float node type
static constant(x, fn_ctx)
static variable(name, fn_ctx)
class autograph.ag_types.Float2(new_node, fn_ctx)
Bases: autograph.ag_types.FloatType
Float vector 2
static constant(x, fn_ctx)
static variable(name, fn_ctx)
class autograph.ag_types.Float3(new_node, fn_ctx)
Bases: autograph.ag_types.FloatType
Float vector 3
static constant(x, fn_ctx)
static variable(name, fn_ctx)
class autograph.ag_types.Float4(new_node, fn_ctx)
Bases: autograph.ag_types.FloatType
Float vector 4
static constant(x, fn_ctx)
static variable(name, fn_ctx)
class autograph.ag_types.IntType(new_node, fn_ctx, type_info)
Bases: autograph.ag_types.VectorType
Base class for int types
class autograph.ag_types.Int1(new_node, fn_ctx)
Bases: autograph.ag_types.IntType
Int scalar type
static constant(x, fn_ctx)
static variable(name, fn_ctx)
class autograph.ag_types.Int2(new_node, fn_ctx)
Bases: autograph.ag_types.IntType
Int vector 2 type
static constant(x, fn_ctx)
static variable(name, fn_ctx)
class autograph.ag_types.Int3(new_node, fn_ctx)
Bases: autograph.ag_types.IntType
Int vector 3 type
static constant(x, fn_ctx)
static variable(name, fn_ctx)
class autograph.ag_types.Int4(new_node, fn_ctx)
Bases: autograph.ag_types.IntType
Int vector 4 type
static constant(x, fn_ctx)
static variable(name, fn_ctx)
class autograph.ag_types.Boolean(new_node, fn_ctx)
Bases: autograph.ag_types.Type
Boolean type, always scalar
static constant(x, fn_ctx)
static variable(name, fn_ctx)
autograph.ag_types.create_constant(fn_node, type_enum, val, vector_size)
Creates a constant
Parameters: |
|
---|---|
Returns: |
autograph.ag_types.create_variable(fn_node, type_enum, name)
Creates a variable (i.e a named input reference)
Parameters: |
|
---|---|
Returns: |