I often want to render a simple-shaded SOP to a TOP without setting up a bunch of nodes, which is what soptotop.tox does.
It is controlled by a table inside, named default_spec. Copy default_spec outside the component and connect it to the second input.
Attach any SOP to the first input, or you can experiment with the default torus.
You can alter the table settings, which are:
resx, resy - resolution of the output image
ortho - 1 = orthographic, 0 = perspective
orthowidth - orthographic width
fov - field of view in degrees if it is perspective
camtz - camera position along the z-axis from the origin. camera x and y are 0
normalize - if 1 (default), the SOP is first scaled and translated to fit in the field of view of the camera
then these transforms apply:
tx ty tz - adds a displacement to the incoming SOP
rx ry rz scale - applies rotation and scale to the incoming SOP
constr constg constb = constant color on the object
diffr diffg diffb - diffuse color of object
lighttx lightty lighttz - light position
You can build your own user interface to this component as it is driven from the one table.