Difference between revisions of "Attribute SOP"

From Derivative
Jump to navigation Jump to search
(cleaning)
Tag: 2018.28070
(cleaning)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Summary
+
{{Summary
|opClass=attributeSOP_Class
+
|opClass=attributeSOP_Class
|opType=attribute
+
|opType=attribute
|short=The Attribute SOP allows you to manually rename and delete point and primitive attributes.
+
|short=The Attribute SOP allows you to manually rename and delete point, vertex, and primitive attributes.
|opFilter=True
+
|opFilter=True
|opLabel=Attribute
+
|opLabel=Attribute
|long=The Attribute SOP allows you to manually rename and delete point and primitive attributes.
+
|long=The Attribute SOP allows you to manually rename and delete point, vertex, and primitive attributes.
|opFamily=SOP
+
 
|opLicense=Non-Commercial
+
The top portion of each parameter page deals with the deleting of a specifc type of attributes.  
}}
+
 
{{ParameterPage
+
For example: <code>Cd Alpha</code>
|items=
 
{{Parameter|parName=frompt0
 
|parLabel=From Attribute 0
 
|parSummary=
 
|parOrder=0
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=topt0
 
|parLabel=To Attribute 0
 
|parSummary=
 
|parOrder=1
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=frompt1
 
|parLabel=From Attribute 1
 
|parSummary=
 
|parOrder=2
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=topt1
 
|parLabel=To Attribute 1
 
|parSummary=
 
|parOrder=3
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=frompt2
 
|parLabel=From Attribute 2
 
|parSummary=
 
|parOrder=4
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=topt2
 
|parLabel=To Attribute 2
 
|parSummary=
 
|parOrder=5
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=frompt3
 
|parLabel=From Attribute 3
 
|parSummary=
 
|parOrder=6
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=topt3
 
|parLabel=To Attribute 3
 
|parSummary=
 
|parOrder=7
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=frompt4
 
|parLabel=From Attribute 4
 
|parSummary=
 
|parOrder=8
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=topt4
 
|parLabel=To Attribute 4
 
|parSummary=
 
|parOrder=9
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=ptdel
 
|parLabel=Delete Attributes
 
|parSummary=At the bottom of the <span class="tipTextSOP">Point</span> 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:<!--TDparEnd-->
 
 
 
<code>Cd Alpha</code>
+
[[Pattern Matching]] - Deletion accepts general pattern matching when determining which attributes to delete. For example:
|parOrder=10
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
 
|pageSummary=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.<!--TDparEnd-->
 
 
<code>Cd Alpha</code>
 
 
<!--TDparStart--><span class="tipTextSOP">Pattern Matching</span> - Deletion accepts general pattern matching when determining which attributes to delete. For example:<!--TDparEnd-->
 
 
 
 
<blockquote>
 
<blockquote>
Line 138: Line 21:
 
</blockquote>
 
</blockquote>
 
 
+
'''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:
<span class="tipTextSOP">'''Note:'''</span> 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:
+
<code>pCapt (point attribute), pCaptPath, pCaptData (detail attribute)</code>
<code>pCapt (point attribute), pCaptPath, pCaptData (detail attribute)</code>
+
 
|opFamily=SOP
+
See also: [[Attribute Create SOP]].
|pageName=Point
+
 
}}
+
The next section of each page deals with renaming attributes. Specify the name of the original incoming attribute in the 'From Attribute' parameter, and the new name you want it renamed to in the 'To Attribute' parameter.
{{ParameterPage
+
|opFamily=SOP
|items=
+
|opLicense=Non-Commercial
{{Parameter|parName=fromvtx0
+
|opCategories=
|parLabel=From Attribute 0
+
}}
|parSummary=
+
{{ParameterPage
|parOrder=0
+
|items={{Parameter
|opFamily=SOP
+
|parName=ptdel
|opType=attribute
+
|parLabel=Delete Attributes
|parType=
+
|parSummary=Use the field to specify the point attributes to delete. Simply enter a list of the attributes (separated by spaces) to delete, for example entering:<code>Cd Alpha</code>. You can also use the dropdown menu on the right to select them.
|parReadOnly=
+
|parOrder=0
|parItems=
+
|opFamily=SOP
}}
+
|opType=attribute
{{Parameter|parName=tovtx0
+
|parType=StrMenu
|parLabel=To Attribute 0
+
|parReadOnly=
|parSummary=
+
|parItems={{ParameterItem
|parOrder=1
+
|opFamily=SOP
|opFamily=SOP
+
|parName=ptdel
|opType=attribute
+
|itemLabel=*
|parType=
+
|itemName=*
|parReadOnly=
+
|itemSummary=
|parItems=
+
}}
}}
+
}}
{{Parameter|parName=fromvtx1
+
{{Parameter
|parLabel=From Attribute 1
+
|parName=frompt0
|parSummary=
+
|parLabel=From Attribute 0
|parOrder=2
+
|parSummary=Specify the attribute you wish to rename, or select it from the dropdown menu on the right.
|opFamily=SOP
+
|parOrder=1
|opType=attribute
+
|opFamily=SOP
|parType=
+
|opType=attribute
|parReadOnly=
+
|parType=StrMenu
|parItems=
+
|parReadOnly=
}}
+
|parItems=
{{Parameter|parName=tovtx1
+
}}
|parLabel=To Attribute 1
+
{{Parameter
|parSummary=
+
|parName=topt0
|parOrder=3
+
|parLabel=To Attribute 0
|opFamily=SOP
+
|parSummary=Enter the new name for the attribute here.
|opType=attribute
+
|parOrder=2
|parType=
+
|opFamily=SOP
|parReadOnly=
+
|opType=attribute
|parItems=
+
|parType=Str
}}
+
|parReadOnly=
{{Parameter|parName=fromvtx2
+
|parItems=
|parLabel=From Attribute 2
+
}}
|parSummary=
+
|pageSummary=
|parOrder=4
+
|opFamily=SOP
|opFamily=SOP
+
|pageName=Point
|opType=attribute
+
}}
|parType=
+
{{ParameterPage
|parReadOnly=
+
|items={{Parameter
|parItems=
+
|parName=vtxdel
}}
+
|parLabel=Delete Attributes
{{Parameter|parName=tovtx2
+
|parSummary=Use the field to specify the vertex attributes to delete. Simply enter a list of the attributes (separated by spaces) to delete, for example entering:<code>uv N</code>. You can also use the dropdown menu on the right to select them.
|parLabel=To Attribute 2
+
|parOrder=0
|parSummary=
+
|opFamily=SOP
|parOrder=5
+
|opType=attribute
|opFamily=SOP
+
|parType=StrMenu
|opType=attribute
+
|parReadOnly=
|parType=
+
|parItems={{ParameterItem
|parReadOnly=
+
|opFamily=SOP
|parItems=
+
|parName=vtxdel
}}
+
|itemLabel=*
{{Parameter|parName=fromvtx3
+
|itemName=*
|parLabel=From Attribute 3
+
|itemSummary=
|parSummary=
+
}}
|parOrder=6
+
}}
|opFamily=SOP
+
{{Parameter
|opType=attribute
+
|parName=fromvtx0
|parType=
+
|parLabel=From Attribute 0
|parReadOnly=
+
|parSummary=Specify the attribute you wish to rename, or select it from the dropdown menu on the right.
|parItems=
+
|parOrder=1
}}
+
|opFamily=SOP
{{Parameter|parName=tovtx3
+
|opType=attribute
|parLabel=To Attribute 3
+
|parType=StrMenu
|parSummary=
+
|parReadOnly=
|parOrder=7
+
|parItems=
|opFamily=SOP
+
}}
|opType=attribute
+
{{Parameter
|parType=
+
|parName=tovtx0
|parReadOnly=
+
|parLabel=To Attribute 0
|parItems=
+
|parSummary=Enter the new name for the attribute here.
}}
+
|parOrder=2
{{Parameter|parName=fromvtx4
+
|opFamily=SOP
|parLabel=From Attribute 4
+
|opType=attribute
|parSummary=
+
|parType=Str
|parOrder=8
+
|parReadOnly=
|opFamily=SOP
+
|parItems=
|opType=attribute
+
}}
|parType=
+
|pageSummary=These tabbed pages are identical to the <code>Point</code> page except that they deal with vertex and primitive attributes of the input geometry.
|parReadOnly=
+
|opFamily=SOP
|parItems=
+
|pageName=Vertex
}}
+
}}
{{Parameter|parName=tovtx4
+
{{ParameterPage
|parLabel=To Attribute 4
+
|items={{Parameter
|parSummary=
+
|parName=primdel
|parOrder=9
+
|parLabel=Delete Attributes
|opFamily=SOP
+
|parSummary=Use the field to specify the primitive attributes to delete. Simply enter a list of the attributes (separated by spaces) to delete, for example entering:<code>Cd creaseweight</code>. You can also use the dropdown menu on the right to select them.
|opType=attribute
+
|parOrder=0
|parType=
+
|opFamily=SOP
|parReadOnly=
+
|opType=attribute
|parItems=
+
|parType=StrMenu
}}
+
|parReadOnly=
{{Parameter|parName=vtxdel
+
|parItems={{ParameterItem
|parLabel=Delete Attributes
+
|opFamily=SOP
|parSummary=
+
|parName=primdel
|parOrder=10
+
|itemLabel=*
|opFamily=SOP
+
|itemName=*
|opType=attribute
+
|itemSummary=
|parType=
+
}}
|parReadOnly=
+
}}
|parItems=
+
{{Parameter
}}
+
|parName=frompr0
+
|parLabel=From Attribute 0
|pageSummary=These tabbed pages are identical to the <span class="tipTextSOP">Point</span> page except that they deal with vertex and primitive attributes of the input geometry.
+
|parSummary=Specify the attribute you wish to rename, or select it from the dropdown menu on the right.
|opFamily=SOP
+
|parOrder=1
|pageName=Vertex
+
|opFamily=SOP
}}
+
|opType=attribute
{{ParameterPage
+
|parType=StrMenu
|items=
+
|parReadOnly=
{{Parameter|parName=frompr0
+
|parItems=
|parLabel=From Attribute 0
+
}}
|parSummary=
+
{{Parameter
|parOrder=0
+
|parName=topr0
|opFamily=SOP
+
|parLabel=To Attribute 0
|opType=attribute
+
|parSummary=Enter the new name for the attribute here.
|parType=
+
|parOrder=2
|parReadOnly=
+
|opFamily=SOP
|parItems=
+
|opType=attribute
}}
+
|parType=Str
{{Parameter|parName=topr0
+
|parReadOnly=
|parLabel=To Attribute 0
+
|parItems=
|parSummary=
+
}}
|parOrder=1
+
|pageSummary=Accepts geometry of all types.
|opFamily=SOP
+
|opFamily=SOP
|opType=attribute
+
|pageName=Primitive
|parType=
+
}}
|parReadOnly=
+
{{ParameterPage
|parItems=
+
|items={{Parameter
}}
+
|parName=dtldel
{{Parameter|parName=frompr1
+
|parLabel=Delete Attributes
|parLabel=From Attribute 1
+
|parSummary=Use the field to specify the detail attributes to delete. Simply enter a list of the attributes (separated by spaces) to delete. You can also use the dropdown menu on the right to select them.
|parSummary=
+
|parOrder=0
|parOrder=2
+
|opFamily=SOP
|opFamily=SOP
+
|opType=attribute
|opType=attribute
+
|parType=StrMenu
|parType=
+
|parReadOnly=
|parReadOnly=
+
|parItems={{ParameterItem
|parItems=
+
|opFamily=SOP
}}
+
|parName=dtldel
{{Parameter|parName=topr1
+
|itemLabel=*
|parLabel=To Attribute 1
+
|itemName=*
|parSummary=
+
|itemSummary=
|parOrder=3
+
}}
|opFamily=SOP
+
}}
|opType=attribute
+
{{Parameter
|parType=
+
|parName=fromdtl0
|parReadOnly=
+
|parLabel=From Attribute 0
|parItems=
+
|parSummary=Specify the attribute you wish to rename, or select it from the dropdown menu on the right.
}}
+
|parOrder=1
{{Parameter|parName=frompr2
+
|opFamily=SOP
|parLabel=From Attribute 2
+
|opType=attribute
|parSummary=
+
|parType=StrMenu
|parOrder=4
+
|parReadOnly=
|opFamily=SOP
+
|parItems=
|opType=attribute
+
}}
|parType=
+
{{Parameter
|parReadOnly=
+
|parName=todtl0
|parItems=
+
|parLabel=To Attribute 0
}}
+
|parSummary=Enter the new name for the attribute here.
{{Parameter|parName=topr2
+
|parOrder=2
|parLabel=To Attribute 2
+
|opFamily=SOP
|parSummary=
+
|opType=attribute
|parOrder=5
+
|parType=Str
|opFamily=SOP
+
|parReadOnly=
|opType=attribute
+
|parItems=
|parType=
+
}}
|parReadOnly=
+
|pageSummary=
|parItems=
+
|opFamily=SOP
}}
+
|pageName=Detail
{{Parameter|parName=frompr3
+
}}
|parLabel=From Attribute 3
 
|parSummary=
 
|parOrder=6
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=topr3
 
|parLabel=To Attribute 3
 
|parSummary=
 
|parOrder=7
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=frompr4
 
|parLabel=From Attribute 4
 
|parSummary=
 
|parOrder=8
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=topr4
 
|parLabel=To Attribute 4
 
|parSummary=
 
|parOrder=9
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=primdel
 
|parLabel=Delete Attributes
 
|parSummary=
 
|parOrder=10
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
 
|pageSummary=Accepts geometry of all types.
 
|opFamily=SOP
 
|pageName=Primitive
 
}}
 
{{ParameterPage
 
|items=
 
{{Parameter|parName=fromdtl0
 
|parLabel=From Attribute 0
 
|parSummary=
 
|parOrder=0
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=todtl0
 
|parLabel=To Attribute 0
 
|parSummary=
 
|parOrder=1
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=fromdtl1
 
|parLabel=From Attribute 1
 
|parSummary=
 
|parOrder=2
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=todtl1
 
|parLabel=To Attribute 1
 
|parSummary=
 
|parOrder=3
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=fromdtl2
 
|parLabel=From Attribute 2
 
|parSummary=
 
|parOrder=4
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=todtl2
 
|parLabel=To Attribute 2
 
|parSummary=
 
|parOrder=5
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=fromdtl3
 
|parLabel=From Attribute 3
 
|parSummary=
 
|parOrder=6
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=todtl3
 
|parLabel=To Attribute 3
 
|parSummary=
 
|parOrder=7
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=fromdtl4
 
|parLabel=From Attribute 4
 
|parSummary=
 
|parOrder=8
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=todtl4
 
|parLabel=To Attribute 4
 
|parSummary=
 
|parOrder=9
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
{{Parameter|parName=dtldel
 
|parLabel=Delete Attributes
 
|parSummary=
 
|parOrder=10
 
|opFamily=SOP
 
|opType=attribute
 
|parType=
 
|parReadOnly=
 
|parItems=
 
}}
 
 
|pageSummary=
 
|opFamily=SOP
 
|pageName=Detail
 
}}
 
 
{{InputsPage
 
{{InputsPage
|opFamily=SOP
+
|opFamily=SOP
|opInputs={{OPInput
+
|opInputs={{OPInput
|opFamily=SOP
+
|opFamily=SOP
|inputIndex=0
+
|inputIndex=0
|inputName=
+
|inputName=
|inputSummary=
+
|inputSummary=
}}
+
}}
}}{{History
+
}}
}}
+
{{History}}
{{SOPNavBox
+
{{SOPNavBox|opFamily=SOP}}
|opFamily=SOP
+
{{#invoke:Category|list|SOPs}}
}}
 
{{#invoke:Category
 
|list|SOPs}}
 

Latest revision as of 13:35, 1 July 2021

Summary
[edit]

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

The top portion of each parameter page deals with the deleting of a specifc type of attributes.

For example: 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)

See also: Attribute Create SOP.

The next section of each page deals with renaming attributes. Specify the name of the original incoming attribute in the 'From Attribute' parameter, and the new name you want it renamed to in the 'To Attribute' parameter.

PythonIcon.pngattributeSOP_Class


Parameters - Point Page

Delete Attributes ptdel - - Use the field to specify the point attributes to delete. Simply enter a list of the attributes (separated by spaces) to delete, for example entering:Cd Alpha. You can also use the dropdown menu on the right to select them.

  • * * -

From Attribute 0 frompt0 - Specify the attribute you wish to rename, or select it from the dropdown menu on the right.

To Attribute 0 topt0 - Enter the new name for the attribute here.


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.

Delete Attributes vtxdel - - Use the field to specify the vertex attributes to delete. Simply enter a list of the attributes (separated by spaces) to delete, for example entering:uv N. You can also use the dropdown menu on the right to select them.

  • * * -

From Attribute 0 fromvtx0 - Specify the attribute you wish to rename, or select it from the dropdown menu on the right.

To Attribute 0 tovtx0 - Enter the new name for the attribute here.


Parameters - Primitive Page

Accepts geometry of all types.

Delete Attributes primdel - - Use the field to specify the primitive attributes to delete. Simply enter a list of the attributes (separated by spaces) to delete, for example entering:Cd creaseweight. You can also use the dropdown menu on the right to select them.

  • * * -

From Attribute 0 frompr0 - Specify the attribute you wish to rename, or select it from the dropdown menu on the right.

To Attribute 0 topr0 - Enter the new name for the attribute here.


Parameters - Detail Page

Delete Attributes dtldel - - Use the field to specify the detail attributes to delete. Simply enter a list of the attributes (separated by spaces) to delete. You can also use the dropdown menu on the right to select them.

  • * * -

From Attribute 0 fromdtl0 - Specify the attribute you wish to rename, or select it from the dropdown menu on the right.

To Attribute 0 todtl0 - Enter the new name for the attribute here.


Operator Inputs

  • Input 0 -

TouchDesigner Build:

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