This file contains hidden or 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 hidden or 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 | |
import math | |
src_name = 'Cube' | |
loop = 10 | |
split = 32 | |
width_init = 1 | |
width_incr = 0.01 | |
height_init = 0 | |
height_loop = 0.8 |
This file contains hidden or 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 MIT LICENSE BLOCK // | |
// | |
// Copyright (c) 2017 dskjal | |
// This software is released under the MIT License. | |
// http://opensource.org/licenses/mit-license.php | |
// | |
// END MIT LICENSE BLOCK // | |
/* | |
* 使い方 | |
* GIF2JPG gifのファイルパス 出力ディレクトリ(option) ファイルフォーマット(option) |
This file contains hidden or 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 MIT LICENSE BLOCK // | |
// | |
// Copyright (c) 2017 dskjal | |
// This software is released under the MIT License. | |
// http://opensource.org/licenses/mit-license.php | |
// | |
// END MIT LICENSE BLOCK // | |
/* | |
* *注意* | |
* 改行の処理はしてない.ルビを必要とする部分が途中で改行されないよう処理する必要がある. |
This file contains hidden or 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 MIT LICENSE BLOCK // | |
// | |
// Copyright (c) 2016 dskjal | |
// This software is released under the MIT License. | |
// http://opensource.org/licenses/mit-license.php | |
// | |
// END MIT LICENSE BLOCK // | |
// ******************************使い方************************************* | |
// csv のロード(Resources/test.csv を読み込む場合) |
This file contains hidden or 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 hidden or 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
#ボーンを選択していなくてもできる | |
bpy.context.active_object.pose.bones['hand.ik.L'].keyframe_insert(data_path='location',group='hand.ik.L') | |
#ボーンを選択して以下のコマンドでも可能(ただし遅い) | |
bpy.ops.anim.keyframe_insert_menu(type='LocRotScale') | |
#ボーンを選択 | |
bpy.ops.pose.select_all(action="DESELECT") | |
bpy.context.active_object.data.bones['hand.ik.L'].select = True | |
#ボーンに設定されたプロパティにキーを打つ |
This file contains hidden or 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 | |
#アクティブなアーマチュアのすべてが対象 | |
for bone in bpy.context.active_object.pose.bones: | |
for c in bone.constraints: | |
#Constraint の名前で削除 | |
if c.name == 'Limit Location': | |
bone.constraints.remove(c) | |
break | |
#Constraint の型で削除 |
This file contains hidden or 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
''' old code | |
# Create list of layer name/row pairs | |
layer_layout = [] | |
for l in metarig.data.rigify_layers: | |
print( l.name ) | |
layer_layout += [(l.name, l.row)] | |
end old code''' | |
# new code | |
# Create list of layer name/row pairs |
NewerOlder