Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    ObjectPlugin And Hide the Childrens

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 767 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post