Skip to main content

All Questions

Tagged with
15 votes
2 answers
4k views

Is it possible to make a sequence of renders and give the user the option to cancel the process through the UI at any given time?

I'm trying to make a script where I have to render several images of the same scene at the same frame, and write to disk with appropriate names. The problem is that although this works fine with a non-...
Chaos's user avatar
  • 642
6 votes
3 answers
6k views

Script to render one object from different angles

I'm new to Blender. I'm currently working on a 3D reconstruction project using neural networks. I need to create my data set. Therefore I need to render a 3D body scan from different angles and save ...
wissal saihi's user avatar
21 votes
6 answers
17k views

How to access Render Result pixels from python script?

Render Result exists in bpy.data.images["Render Result"] but it contains no data. Also bpy.data.images["Render Result"].size[0] ...
Hatoru Hansou's user avatar
9 votes
1 answer
8k views

Python Render Specific Frames

I'm new to blender scripting and with the api change in 2.56 I'm having difficulty finding relevant information. I'm trying to render 8 non-consecutive single frames to pngs. They are the same scene ...
AkBKukU's user avatar
  • 307
0 votes
1 answer
3k views

How to add/remove links to existing or new nodes using Python?

I have lots of objects consisting of many different meshes. Some of these meshes come with transparent materials applied to them. My goal is to modify the nodes list, add new nodes and change the ...
Amir's user avatar
  • 3,072
5 votes
1 answer
7k views

How to prevent memory leakage in Blender?

I have to load lots of objects/meshes(50k) in Blender and render them for which I have written a Python script. My meshes have lots of vertices/faces (in the range of ~[10k, 70k]). I noticed that ...
Amir's user avatar
  • 3,072
3 votes
1 answer
3k views

Python: Check if vertex is on camera field of view [duplicate]

Suppose I have the following camera perspective. As you can see some of the Cube vertices are visible from the camera, others are not. Is there a way from python to detect if a certain vertex is in ...
wsfax's user avatar
  • 396
14 votes
3 answers
4k views

Is it possible to render only keyframes from Dope-sheet?

I want to render only keyframes from Dope-sheet without the in-between frames. Effectively creating hold of last keyframe till there is new keyframe by re-saving (not re-rendering) the previously ...
ashwin's user avatar
  • 1,759
0 votes
1 answer
702 views

Changing active camera will yield an incorrect rendering (camera view not reflected)

I have defined a Blender class to help me abstract out details for rendering, object manipulation etc. I setup my scene using this class and put 12 cameras in it. Then I start rendering objects by ...
Amir's user avatar
  • 3,072
19 votes
2 answers
14k views

How to automatically fit the camera to objects in the view?

I'm using blender to render avatar and avatar accessories on a website, however there is a problem, when a hat, or accessory is made a bit large, the it doesn't fit in the viewport, is there anyway to ...
slixxed's user avatar
  • 193
13 votes
4 answers
19k views

How to toggle visibible / selectable / renderable for multiple objects?

For quite long time, I was looking for a faster way to toggle (or toggle off) visible / selectable and renderable for many objects, as illustrated below: I know we can do the relatively quick select ...
Leon Cheung's user avatar
  • 27.9k
1 vote
2 answers
976 views

How to trigger LMB click events to activate a specific View node and update contents of 'Viewer Node' image data block using Python?

I am using two Viewer nodes to directly access pixel values of the rendering through bpy.data.images['Viewer Node'].pixels.I want to access the outputs of both of ...
Amir's user avatar
  • 3,072
6 votes
2 answers
2k views

How to randomize any value every frame between specific interval?

I'd like to randomize any value. Here's an example: I'd like to randomize emission strength of a material every frame change between 0-15.
JackieSparrow's user avatar
4 votes
2 answers
915 views

Low-level location, rotation and scale for sphere, cylinders

I am interested in constructing figures of atoms using Blender from an external XYZ file containing atomic positions and species. I have succesfully read the XYZ and found all atoms and their ...
Caelesticum's user avatar
3 votes
2 answers
2k views

Sequentially importing .obj files becomes drastically slow very quickly

I have written a very straight-forward script that imports many obj files one-by-one and renders them. The imported meshes have ~10k to ~120k vertices. After rendering, I completely remove the ...
Amir's user avatar
  • 3,072

15 30 50 per page
1
2 3 4 5
7