Navigation

    • Register
    • Login
    • Search
    • Categories
    • Forum Guidelines
    1. Home
    2. Gianni
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Gianni

    @Gianni

    1
    Reputation
    3
    Posts
    55
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Website giannilorusso.com/ Location Bari (Italy)

    Gianni Follow

    Posts made by Gianni

    • RE: GetClone() with Fields

      Just tried now…
      It seems to work perfectly!
      Thank you! 😍

      I don't want to boring you, but, please, don't disable this super feature in python. Instead you could update the documentation specifying well how to use it. 🙏

      posted in Cinema 4D Development
      Gianni
    • RE: GetClone() with Fields

      @m_adam
      Hi Maxime, thank you for the reply.
      I forgot to write that the code is executed after pressing a button. Last year in the old forum we talked about the fact that it was safe to create a new object while managing the pressure of a button.
      I really hope this feature will not be removed in the future.
      This is the old thread:
      https://plugincafe.maxon.net/topic/10684/14135_add-objects-using-python-tag-/3

      At this point to obtain the result I want, do I still need to use c4d.AliasTrans?
      If yes, I'm going to try it somehow.

      Best,
      Gianni

      posted in Cinema 4D Development
      Gianni
    • GetClone() with Fields

      Hi,
      I have the following problem in making a copy of a bend deformer that has a box field as a child and the same box field inserted in its field list as you can see in the picture.
      Using the pyhon tag to make a copy of the bend deformer I get a different result from one obtained by running the command in Tools/Arrange Objects/Duplicate or even with a simple Drag and Drop.
      I would like to have the same latter results using the python code.
      Precisely happens that the copy made with the python code results in having in the Field list the Box Field of the previous Bend and not the duplicated one.
      How can I solve the problem?

      This is the code used for make and insert a copy:

      def Duplicate():
          last = op.GetObject().GetDownLast()
          new_object = last.GetClone(c4d.COPYFLAGS_NO_ANIMATION)
          new_object.InsertAfter(last)
      

      (C4D R20.055)

      2_1550175500918_Start.jpg
      The start point

      1_1550175500918_Control+Drag_Duplication.jpg
      The Control Drag result

      0_1550175500917_PythonDuplication.jpg
      The Python code result

      posted in Cinema 4D Development
      Gianni