AttribPromoteSOP

From Odwiki

Jump to: navigation, search

Contents

What it does

This is a handy SOP to use once you get into thinking and using attributes in a SOP network. This is used to convert one attribute type to another. Use it in conjunction with the AttribCreateSOP to fine tune you attributes.

How do I?

Example 1

Replace this text with one example use of the SOP

Power tips

Maintaining Primitive Order after resampling geometry

Say you have geometry whose primitive order is importand yet you wish to resample it to get more points. The resampleSOP will do the job, but it will also reorder the geometry at the same time. Use an attribCreateSOP to store the primitive number. To do this create a primitive attribute called order, integer type, size 1, with a value of $PR. Use your resampleSOP and then append a sortSOP. Go into the primitive tab and enter an expression to sort the new geometry.

prim("opinputpath(".",0),$PR,"order",0).

This will match your order prior to your resampleSOP adventure.

See Also


Back to SOPs

© 2009 od[force].net | advertise