Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Register
    • Register
    • Login
    1. Maxon Developers Forum
    2. ilad
    3. Posts
    I
    • Profile
    • Following 1
    • Followers 0
    • Topics 8
    • Posts 16
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by ilad

    • How to adjust output path in Python Batchrender class?

      Hi , i am batch rendering images with different output path in Python , i want to adjust the output path when i add image render to render queue in Python

      Is there any way to finish that ?i Google a lot and look through documents , but there is no explicit way to do that ..

      I really need this function cause i need render thousand of images in C4D , and if no solution , i have to manually adjust the render queue output path , which would be a disaster to me , kill my great designer dream in baby.

      Thanks if you have any ideas ! Love you .

      posted in Cinema 4D SDK python r21
      I
      ilad
    • RE: How can i render/add render queue in Python ?

      @m_adam Ok, i have try successfully in add render queue with your help , but , how can i set the output name of the batch render ??

      posted in Cinema 4D SDK
      I
      ilad
    • How can i render/add render queue in Python ?

      Hi , i am new to C4D but familiar with Python , i discover a lot in google and forum,but find nothing about simple instant render code demo

      Unlike Blender which has huge resource about code , C4D is a little difficult to find code demo,

      so i wonder is there any way to start render in C4D ?

      Here is my fake code demo :

      #fake code demo
      
      set_render_output("D://path")
      set_render_format("PNG")
      set_render_resolution(2000,1300)
      add_to_render_queue()
      start_render()
      
      

      is there any method to achieve the fake code demo i posted?

      It is very simple , but maybe i dont have good luck , i find nothing relative in internet

      Thanks if you have any ideas!!

      posted in Cinema 4D SDK
      I
      ilad
    • RE: Beginner:How to assign A-material to B-cube by python?

      @r_gigante Thanks!Greate help for me! I got it!😁

      posted in Cinema 4D SDK
      I
      ilad
    • Beginner:How to assign A-material to B-cube by python?

      (😁 Thanks to all the good people who kindly answer questions to a green hand like me in recent days ,i have certainly made a huge pregress due to you zealous guys in such a super forum)

      Well,i meet the problem to assign a material to another object in my project,i reviewed history post but not so solvable,let me take an easy example of A material and B cube,how to assign A to B?

      Below is example pic
      mat assign.png

      import c4d
      
      def main():
         A = c4d.BaseObject(c4d.Ocube)
      #lost on how to make assignment
      
      
      
      
      

      Thanks !
      ilad

      posted in Cinema 4D SDK
      I
      ilad
    • RE: Beginner:How to set A cube as the child of B cube by python?

      @m_adam Thanks a lot, great help, I will try your way

      posted in Cinema 4D SDK
      I
      ilad
    • Beginner:How to set A cube as the child of B cube by python?

      Hi~I recently meet the problem to batch move objects with the same offset distance, however, to set position respectively can be a disaster and a little fool, so I want to make them as children of a Null object that I can move all of them with just move Null object.

      To let other potential beginners better pick up and understand, let me make 2 cubes as an easy example, so how to set B cube as the child of A cube by python? what if two B cubes or more?

      ABcube.png

      import c4d
      A_cube=c4d.BaseObject(c4d.Ocube)
      B_cube=c4d.BaseObject(c4d.Ocube)
      #?????unknow how to set children ???
      
      doc.InsertObject(B_cube)
      c4d.EventAdd()
      
      
      

      Thanks!

      posted in Cinema 4D SDK
      I
      ilad
    • RE: Beginner:How to set axis to the bottom of a cube by python?

      @mp5gosu Thanks,great thought while only limit to still object rather than animated one with botton set axis.😀

      posted in Cinema 4D SDK
      I
      ilad
    • RE: Beginner:How to set axis to the bottom of a cube by python?

      @r_gigante Thanks,great help,i will retry in your way later.

      posted in Cinema 4D SDK
      I
      ilad
    • Beginner:How to set axis to the bottom of a cube by python?

      Hi~i am a green hand, well, I think many beginners will meet the problem to set the axis to the specific point, make cube as an easy example, I am wondering how to achieve it
      cube_axis.png
      cube_axis2.png

      import c4d
      #Welcome to the world of Python
      
      
      def main():
          cube=c4d.BaseObject(c4d.Ocube)
          
          '''how to set axis?(for exaple,to the bottom):grinning: '''
          
          
          doc.InsertObject(cube)
          c4d.EventAdd()   
      
      
      posted in Cinema 4D SDK
      I
      ilad
    • RE: Beginner:How can i set a key-frame and value to a cube by python?

      @m_magalhaes
      Thanks !!!! You certainly help me a lot!!!😁
      I spend around half an hour to deeply understand code with the reference of the official document!
      so excited that I figure out this problem!

      Btw, what if I want to add the key to 'Size Y'to this cube,? I should replace

      ..........
      c4d.DescLevel(c4d.ID_BASEOBJECT_POSITION, c4d.DTYPE_VECTOR, 0)
      .........
      
      

      with

      ..........
      c4d.DescLevel(c4d.PRIM_CUBE_LEN, c4d.DTYPE_VECTOR_Y, 0)
      ...........
      
      

      right?

      posted in Cinema 4D SDK
      I
      ilad
    • Beginner:How can i set a key-frame and value to a cube by python?

      Hi~As a crazy beginner.
      what puzzled me recently is how I can set a Key-frame and value to a cube
      my question is so simple while the existed codes are not so friendly to a beginner due to the no explanation
      (BTW, the systematic python-C4D video tutorial is so rare 😅 )

      Python question:
      **I want to set cube Y position in 0cm in 1st key-frame and 100cm in 10th key-frame, BTW, let them ease in and out **

      未命名图片11.png

      import c4d
      
      
      
      input = c4d.BaseObject(5159)
      #????????????????
      #how to set key-frame?
      
      doc.InsertObject(input)
      
      c4d.EventAdd()
      
      
      

      How to do it ?
      Thanks if you can help me ,i know my question is simple,but i am in the way to be professional.😊

      posted in Cinema 4D SDK
      I
      ilad
    • RE: i code to create a group of cylinders in C4D python,why no response?

      @r_gigante
      Thank for your professional help! I am so grateful for your commitment!☺ 👍 👍

      posted in Cinema 4D SDK
      I
      ilad
    • RE: i code to create a group of cylinders in C4D python,why no response?

      @r_gigante Thank for your kind and high-quality assistance!
      it is such a great forum to study and learn 👍 ☺ ☺

      posted in Cinema 4D SDK
      I
      ilad
    • i code to create a group of cylinders in C4D python,why no response?

      I am a beginner in C4D python, i want to create a group of cylinders in python,This is my original script, it is simple but wrong, Thank you if you can solve my problem

      import c4d
      
      def create_object(x):
          position = c4d.Vector(x, 0, 0)
          a = c4d.BaseObject(c4d.Ocube)
          a.SetAbsPos(position)
          return a
      
      def main():
      
          for i in range(1,1000,100):
              create_object(i) '''
      

      it should be a line array group of cylinders,the distance of each is 100,but

      No response,i am so sad~

      未命名图片.png

      posted in Cinema 4D SDK
      I
      ilad