I want to sculpting from high mesh.
High mesh was got from zbrush.
this is like 'Project Mesh'.
My code is simple but was not working.
from c4d.modules import sculpting
sculpt = sculpting.GetSelectedSculptObject(doc)
sel = doc.GetActiveObject()
if not sculpt:
if not sel:
if sel == sculpt.GetOriginalObject():
if sculpt.GetPointCount() != sel.GetPointCount():
firstLayer = sculpt.GetFirstLayer()
layer = firstLayer.GetFirstSculptLayer()
for i in range(firstLayer.GetPointCount()):
if __name__ == "__main__":
Traceback (most recent call last):
File "scriptmanager", line 26, in <module>
File "scriptmanager", line 21, in main
TypeError: an integer is required
SculptLayer.SetOffset(self, index, offset)
offset is vector. but 'TypeError: an integer is required'
how can i fix it?
There's actually a bug in the API, not only this method is affected. It probably affect all method of the sculpt module using a vector as a parameter.
This will be fixed as soon as possible.
@m_magalhaes Thank you for reply. I am going to use it for this project. Hope it gets fixed soon. Thank you.