Hello,
I'm trying to read a VolumeObject from Python, just trying to visualize the voxel count for now. When I acces a volume interface, like this...
def GetDParameter(self, node, id, flags):
paramId = id[0].id
if paramId == c4d.UNITY_VOLUME_VoxelCount:
volume = self.get_volume_object(node)
if volume == None: return False
vi = volume.GetVolume()
data = vi.GetActiveVoxelCount()
return (True, data, flags | c4d.DESCFLAGS_GET_PARAM_GET)
return False
It works, but I always hit this debug breakpoint. Removing that code stops the critical stop.
Do I need to dispose the interface in any way?
/Volumes/Branches/build_osx/osx-4-release/depot/release/20.0/frameworks/kernel.framework/source/memory/systemallocator.cpp(487): CRITICAL: Stop: Damaged block (or from a different allocator
Also, how to iterate the volume using a GridIterator?
There's nothing like the step methods from C++ SDK, how do I do the loop?