Simple task in Python

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
  4 Weeks Ago
Simple task in Python

Wouldn't anyone please know how to do this simple task in Python?

1. Load a 3D model to a scene
2. Position it to a place
3. Add a material to it
4. Render the scene
5. Save the picture
6. Delete the model

7. Load another 3D model to the scene
.
.
.
Repeat the sequence with different 3D models

What I have in mind: I have a sequence of 3D models that I created elsewhere. These models form together a movie. I want to render it. Thank you
 
  4 Weeks Ago
Have you thought about an object sequence importer? like this one. https://lesterbanks.com/2014/09/obj...importer-2-c4d/
 
  4 Weeks Ago
How many models are you trying to load?
This may be possible using MoGraph...
__________________
Follow me on Twitter@nosemangr - Watch me on Noseman's Youtube Channel
 
  4 Weeks Ago
Thank you for your great answers. This is precisely what I need. I wonder how this could be done in Mograph. I have never used it before. I can split the video to batches of say 50 models-frames or less. I only don't want to do it manually. I have a sequence of surfaces generated in Wolfram Mathematica-a continuous deformation that I would like to render.
 
  4 Weeks Ago
Noseman has it as usual. To do this with a Mograph cloner:

1) bring a batch of objects into your scene (say 50 objects).
2) create a cloner object, using the default settings, set the count to 1 and set the y transformation to 0 (it defaults to 50 units)
3) place all of your objects under the cloner in the object manager.

now, adjust the offset parameter of the cloner. It will cycle through each object for every n value of the offset. to render out the sequence, animate the offset parameter from 0 at frame 0 to 49 at frame 49. be sure to set your keyframes to be linear and not eased (you can do this in the curve editor). render frames 0-49

hope that helps

(edit) I just realized that step 1 might still be a bit of a pain.

Last edited by travismetcalf : 4 Weeks Ago at 08:30 PM.
 
  4 Weeks Ago
Super. It works. Thank you, greetings from Prague, CZ.
 
  4 Weeks Ago
Originally Posted by travismetcalf: Noseman has it as usual. To do this with a Mograph cloner:

1) bring a batch of objects into your scene (say 50 objects).
2) create a cloner object, using the default settings, set the count to 1 and set the y transformation to 0 (it defaults to 50 units)
3) place all of your objects under the cloner in the object manager.

now, adjust the offset parameter of the cloner. It will cycle through each object for every n value of the offset. to render out the sequence, animate the offset parameter from 0 at frame 0 to 49 at frame 49. be sure to set your keyframes to be linear and not eased (you can do this in the curve editor). render frames 0-49

Thanks Travis! I couldn't have said it better myself
__________________
Follow me on Twitter@nosemangr - Watch me on Noseman's Youtube Channel
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 09:57 PM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.