Try initiailizing your bb_min and bb_max to (-1,-1,-1) and (1,1,1) 
respectively.  Also, you could, instead of doing all that work in another 
method,
do something like this in your boundingBox method if you save the points 
you're gathering in a list, or MPointArray.

def boundingBox(self):
   bbox = om.MBoundingBox()
for point in self.pointList: bbox.expand(point) return bbox


On Tuesday, March 29, 2016 at 6:47:38 AM UTC-7, Rémi Deletrain wrote:
>
> I use maya 2014 on Windows 7
>
> The path of my node
> https://github.com/RDelet/Maya_Tools/blob/master/Custom_Node/QDManip.py
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/5d64fa1d-51a8-4308-bec2-5353ad9e42ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to