Navigation

    • Register
    • Login
    • Search
    1. Home
    2. ilad
    I

    ilad

    @ilad

    0
    Reputation
    16
    Posts
    48
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    ilad Follow

    Best posts made by ilad

    This user does not have any upvoted posts yet.

    Latest 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 •
    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 •
    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 •
    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 •
    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 •
    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 •
    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 •
    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 •
    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 •
    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 •