Ah, right. Sorry. I’m not too sure how to do this. All I did was create a simple cylinder geometry, and save 2 edge loops into 2 variables. Then I try to run the rivet script. It looks something like this:
import mgear.rigbits
import mgear.rigbits.rivet
edge1_ls = [u'pCylinder1.e[33]', u'pCylinder1.e[38]', u'pCylinder1.e[43]', u'pCylinder1.e[48]', u'pCylinder1.e[53]', u'pCylinder1.e[58]', u'pCylinder1.e[63]']
edge2_ls = [u'pCylinder1.e[32]', u'pCylinder1.e[37]', u'pCylinder1.e[42]', u'pCylinder1.e[47]', u'pCylinder1.e[52]', u'pCylinder1.e[57]', u'pCylinder1.e[62]']
mgear.rigbits.rivet.create(mesh='pyCylinder1', edge1=edge1_ls, edge2=edge2_ls, parent='null1', name='test')
and it return this:
# Error: 'module' object has no attribute 'create'
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# AttributeError: 'module' object has no attribute 'create' #
But when I look at rivet.py, this first function is like this:
def create(self, mesh, edge1, edge2, parent, name=None):
self.sources = {
'oMesh': mesh,
'edgeIndex1': edge1,
'edgeIndex2': edge2
}
self.createNodes()
self.createConnections()
self.setAttributes()
if parent:
pm.parent(self.o_node['locator'].getParent(), parent)
if name:
pm.rename(self.o_node['locator'].getParent(), name)
return self.o_node['locator'].getParent()
And I thought if I can provide those arguments, I can build a ribbon with this rivet script. I also roughly went through the tutorial through this link >> http://jinglezzz.tumblr.com and I feel like, I must have missed something.