Attribute SOP

From TouchDesigner Documentation
Jump to: navigation, search

Summary
[edit]

The Attribute SOP allows you to manually rename and delete point and primitive attributes.

PythonIcon.pngattributeSOP_Class


Parameters - Point Page

The top portion of this page deals with the renaming of attributes. Specify the name of the original incoming attribute in the first column, and the new name you want it renamed to in the second column.

Cd Alpha

Pattern Matching - Deletion accepts general pattern matching when determining which attributes to delete. For example:

* = Delete all attributes
Cd = Delete the Cd attribute
Cd Alpha = Delete Cd & Alpha attributes
a* = Delete all attributes beginning with a
* ^Cd = Delete all attributes except Cd


Note: You should never delete just one of the following attributes, but always keep/delete them together. This is because TouchDesigner's capture/deform system expects these three attributes to occur together. Deleting a subset of the three will cause errors as they are interdependent: pCapt (point attribute), pCaptPath, pCaptData (detail attribute)

From Attribute 0 frompt0 -  

To Attribute 0 topt0 -  

From Attribute 1 frompt1 -  

To Attribute 1 topt1 -  

From Attribute 2 frompt2 -  

To Attribute 2 topt2 -  

From Attribute 3 frompt3 -  

To Attribute 3 topt3 -  

From Attribute 4 frompt4 -  

To Attribute 4 topt4 -  

Delete Attributes ptdel - At the bottom of the Point page, there is a field to specify attributes to delete. Simply enter a list of the attributes (separated by spaces) to delete. For example entering:

Cd Alpha  


Parameters - Vertex Page

These tabbed pages are identical to the Point page except that they deal with vertex and primitive attributes of the input geometry.

From Attribute 0 fromvtx0 -  

To Attribute 0 tovtx0 -  

From Attribute 1 fromvtx1 -  

To Attribute 1 tovtx1 -  

From Attribute 2 fromvtx2 -  

To Attribute 2 tovtx2 -  

From Attribute 3 fromvtx3 -  

To Attribute 3 tovtx3 -  

From Attribute 4 fromvtx4 -  

To Attribute 4 tovtx4 -  

Delete Attributes vtxdel -  


Parameters - Primitive Page

Accepts geometry of all types.

From Attribute 0 frompr0 -  

To Attribute 0 topr0 -  

From Attribute 1 frompr1 -  

To Attribute 1 topr1 -  

From Attribute 2 frompr2 -  

To Attribute 2 topr2 -  

From Attribute 3 frompr3 -  

To Attribute 3 topr3 -  

From Attribute 4 frompr4 -  

To Attribute 4 topr4 -  

Delete Attributes primdel -  


Parameters - Detail Page

From Attribute 0 fromdtl0 -  

To Attribute 0 todtl0 -  

From Attribute 1 fromdtl1 -  

To Attribute 1 todtl1 -  

From Attribute 2 fromdtl2 -  

To Attribute 2 todtl2 -  

From Attribute 3 fromdtl3 -  

To Attribute 3 todtl3 -  

From Attribute 4 fromdtl4 -  

To Attribute 4 todtl4 -  

Delete Attributes dtldel -  


Operator Inputs

  • Input 0 -

TouchDesigner Build:

SOPs
Add • Experimental:Add • Alembic • Align • Arm • Attribute Create • Attribute • Experimental:Attribute • Basis • Blend • Experimental:Blend • Bone Group • Boolean • Box • Bridge • Cache • Cap • Capture Region • Capture • Carve • CHOP to • Circle • Clay • Clip • Convert • Copy • Experimental:Copy • CPlusPlus • Creep • Curveclay • Curvesect • DAT to • Deform • Delete • Divide • Extrude • Facet • File In • Fillet • Fit • Font • Force • Fractal • Grid • Group • Hole • Import Select • In • Introduction To SOPs id • Inverse Curve • Iso Surface • Join • Joint • Kinect • Lattice • Limit • Experimental:Limit • Line • Line Thick • LOD • LSystem • Magnet • Material • Merge • Metaball • Model • Noise • Null • Object Merge • Experimental:Object Merge • Oculus Rift • OpenVR • Out • Particle • Point • Experimental:Point • Polyloft • Experimental:Polyloft • Polypatch • Polyreduce • Polyspline • Polystitch • Primitive • Experimental:Primitive • Profile • Project • Rails • Experimental:Raster • Ray • Rectangle • Refine • Resample • Revolve • Script • Select • Sequence Blend • Skin • Sort • Sphere • Spring • Sprite • Stitch • Subdivide • Superquad • Surfsect • Sweep • Switch • Text • Texture • Torus • Trace • Trail • Transform • Trim • Tristrip • Tube • Twist • Vertex • Experimental:Vertex • Wireframe • ZED

An Operator Family that reads, creates and modifies 3D polygons, curves, NURBS surfaces, spheres, meatballs and other 3D surface data.

Each SOP has a list of Points. Each point has an XYZ 3D position value plus other optional attributes. Each polygon Primitive is defined by a vertex list, which is list of point numbers.

Matching strings using wildcard characters and bracketing. Useful in "Select" parameters to select multiple operators, paths, etc.

Matching strings using wildcard characters and bracketing. Useful in "Select" parameters to select multiple operators, paths, etc.

Information associated with SOP geometry. Points and primitives (polygons, NURBS, etc.) can have any number of attributes - position (P) is standard, and optional are normals (N), texture coordinates (uv), color (Cd), etc.

A surface type in SOPs including polygon, curve (NURBS and Bezier), patch (NURBS and Bezier) and other shapes like sphere, tube, and metaball. Points and Primitives are part of the Geometry Detail, which is a part of a SOP.