overview 1 pick a .csv file with Browse in GUI 2 pymel code loops through .csv file and creates a text curve for each city 3 if you want to follow along here is the simple csv data file qt designer pymel pastebin code def textIn(): import EasyDialogs input_file…
pymel, qt designer
Curve fix and setup for Renderman/3delight
by admin •
coded this up in pymel and used qt designer for the GUI in maya. This GUI sets up the normals on curves for rendering in renderman / 3delight – and is used in conjunction with primitive variables on each curve and a curve shader.
As you can see in (1) a regular curve prior to be fixed is all kinds of wonky. With this technique the ‘Face Camera’ of the normals are disabled and they can be set to all face the direction selected.
GUI enables per item or selection
1 Fix
2 set direction
3 color
5 Animation of Curve based on curve length proportion or custom set. Start and end frames
can also be set.
6 Width for start and end can be adjusted
pymel
Add Mask AOVS – 3delight
by admin •
# select all geo that you want to have a mask and run the script – this will create a 3delight mask aov for each piece. import pymel.core as pm selection = pm.ls(sl = True) for maskobject in selection: pm.createNode(‘3DelightMaskSet’,n=’Mask_’ + maskobject) cmds.sets( str(maskobject), add=’Mask_’ + maskobject )