ObjectPlugin And Hide the Childrens



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 19/03/2011 at 15:36, xxxxxxxx wrote:

    Hi Can i make plugin like HyperNurbs , i want to make only the method no the Formula
    to explane what i mean

    In HyperNurbs
    for example i create one new object hypernurbs and i put as Childer one cube
    when i do this i see the cube change and hide original and make new with hypernurbs
    also if i click Make Editable Command i have only one object with HyperNubrs and the original delete automatic

    -----Object List------
    +HyperNurbs
      - Cube

    the question is how can do this with python ?
    to make this method to hide and delete when i click Make Editable Command

    i don't want use for example

    the method i use now but dosen't work correct :(
    because this hide the object and when i make editable keep the original

    here for example

    import c4d

    def main() :
     opa=op.GetDown()
     opa.SetEditorMode(c4d.Mode_OFF)
     return c4d.BaseObject(c4d.Ocube)

    i hope understand

    Thank you



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 19/03/2011 at 17:10, xxxxxxxx wrote:

    What do you want being done as your Object is "made editable" ?
    Maybe the __del__(self) function will help you. This is called as the classintance is being deleted. Maybe it also is called when it's made editble.

    Cheers,nux



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 19/03/2011 at 17:42, xxxxxxxx wrote:

    thank you Nux95 for quick reply

    but i think you don't understand me so i explane

    another example in cineam4d Create ExtrudeNurb Object
    and create Spline Rectangle
    when you put the Spline Rectangle as Childer in Extrude Nurbs

    +ExtrudeNurb
     -Spline Rectangle

    The Spline Hide and Make Polygon
    The First i ask is How i can use same method to hide the object
    the second i ask if i Select The Extrude Nurb and i click Make Editable
    this make 3 new Objects , Extrude NURBS , Cap 1 , Cap2
    i don't wan't the formula Extrude Nurb only the method for the Childer object how can hide or to have same results .
     
    Test This
    now try make a Python Genarate
    put Spline Rectangle first you see is Spline Rectangle is Visible
    and second when you click Make Editable
    Make new Cube because of the code write for begin , and second the Spline Rectangle still there :(

    so i ask if there is anyway to hide the Spline Rectangle when i put
    as Chidler in Python Genarator
    and when i make editable the Python Genarate
    so create only the cube and delete the Spline Rectangle,

    in Python Genaretor or in Plugin Object

    i hope understand me now

    thank you


Log in to reply