Moved to: https://github.com/p2or/blender-batch-import-wavefront-obj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
C = bpy.context | |
scene = C.scene | |
# path to the blend | |
filepath = "C:\\Users\\poor\\Desktop\\assets.blend" | |
prefix = "RNDR" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# DO NOT EDIT THIS FILE | |
# This file was automatically generated by Natron PyPlug exporter version 10. | |
# Hand-written code should be added in a separate file named N_FlickerExt.py | |
# See http://natron.readthedocs.org/en/master/devel/groups.html#adding-hand-written-code-callbacks-etc | |
# Note that Viewers are never exported | |
import NatronEngine | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --------------------------------------------------------------------------- | |
* Custom CSS to reduce title bar size | |
* ------------------------------------------------------------------------- */ | |
/* shrink headerbars (don't forget semicolons after each property) */ | |
headerbar { | |
min-height: 0px; | |
padding-left: 2px; /* same as childrens vertical margins for nicer proportions */ | |
padding-right: 2px; | |
background-color: #2d2d2d; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nano ~/.bash_profile | |
export PATH=$PATH\:/opt/gaffer-0.54.1.0-linux/bin | |
export GAFFERCYCLES="/opt/gafferCycles/" | |
export GAFFER_EXTENSION_PATHS=$GAFFERCYCLES:$GAFFER_EXTENSION_PATHS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
custom_range = (0,10) | |
filename = "~/flipbook/flip_$F4.png" | |
cur_desktop = hou.ui.curDesktop() | |
scene = cur_desktop.paneTabOfType(hou.paneTabType.SceneViewer) | |
flip_options = scene.flipbookSettings().stash() | |
flip_options.frameRange(custom_range) | |
flip_options.output(filename) | |
scene.flipbook(scene.curViewport(), flip_options) |
OpticalZDefocus is a physically accurate ZDefocus, which controls circle of confusion size based on lens geometry using the depth of field equation.
- Set your focal length and film-back characteristics to match the lens that shot your plate
- Animate your focus distance
- Adjust the f-stop to match the size of your bokeh to your plate
Just like a real lens! (And using the same math :P )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for https://blender.stackexchange.com/q/143599/3710 | |
import bpy | |
mat_name = "Material_Name" | |
# check whether the material already exists | |
if bpy.data.materials.get(mat_name): | |
mat = bpy.data.materials[mat_name] | |
else: |