Hello everybody,

I made a new node dependent of "MPxLocatorNode". It works well.

I try to define boudingbox but this time Maya crash all the time ...
I fail to understand why.
Does anyone have the answer?

That is my code.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    def isBounded(self):

        """
        !@Brief Set this node with bounding box. See doc for more infos.
        """

        return True

    def boundingBox(self):

        """
        !@Brief Set boundingbox min and max of this node. See doc for more 
infos.
        """

        return OpenMaya.MBoundingBox(self.bb_min, self.bb_max)

with for exemple:
self.bb_min = [-1.0, 0.0, -1.0]
self.bb_max = [1.0, 0.0, 1.0]

this two variables is calculate with point position value

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

-- 
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/d5fb60d7-9fbe-4026-bba2-76f6be42a4c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to