<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule" >
  <channel>
  <title>カネモリ製作所</title>
  <link>http://kanemori.blog.shinobi.jp/</link>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://kanemori.blog.shinobi.jp/RSS/" />
  <description>CGアニメーションに関することを書いていきます。</description>
  <lastBuildDate>Mon, 23 Jun 2025 15:55:23 GMT</lastBuildDate>
  <language>ja</language>
  <copyright>© Ninja Tools Inc.</copyright>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />

    <item>
    <title>カスタムプロパティでオブジェクトの表示／非表示（レンダリング／非レンダリング）を制御する(blender)</title>
    <description>
    <![CDATA[<p><img src="//kanemori.blog.shinobi.jp/File/customProperty_example01.gif" alt="" /><br />
カスタムプロパティを使用して表示するオブジェクトを切り替える手法です。<br />
<br />
<br />
<img src="//kanemori.blog.shinobi.jp/File/customProperty_example01_1.png" alt="" /> <br />
まず、制御元のオブジェクトにカスタムプロパティを作成します。(+New を押す）&hellip;①<br />
Edit Propertyを開いて（歯車のボタンを押す）&hellip;②<br />
Typeを"Integer"&hellip;③<br />
今回は４つのオブジェクトの表示を切り替えるので、Maxを"4"&hellip;④<br />
Property Nameを"objectDisplay"&hellip;⑤<br />
と設定します。<br />
<br />
<br />
<img src="//kanemori.blog.shinobi.jp/File/customProperty_example01_2.png" alt="" /><br />
パラメータ部分を右クリック&rarr;Copy as New Driverを選択。<br />
<br />
<br />
<img src="//kanemori.blog.shinobi.jp/File/customProperty_example01_3.png" alt="" />&nbsp;<br />
表示／非表示を<strong>コントロールされる</strong>側のオブジェクトの Show In Viewports のチェックボックスを右クリックし&rarr;Paste Driverを選択します。<br />
同じくShow In Renders のチェックボックスに対しても右クリック&rarr;Paste Driverを行います。<br />
ドライバーが適用されることにより、それぞれのチェックボックスが紫色になります。<br />
<br />
<br />
<img src="//kanemori.blog.shinobi.jp/File/customProperty_example01_4.png" alt="" /> <br />
Show In Viewportsのチェックボックスを右クリックし、Edit Driverを選択、<br />
Driven PropertyのTypeを&rdquo;Scripted Expression&rdquo;<br />
Expressionを&rdquo;objectDisplay != 1&rdquo;と入力します。（カスタムプロパティの値が１の際に、Show In ViewportsのチェックボックスがONになる。）<br />
Show In Rendersのチェックボックスにも同様の設定をしてください。<br />
<br />
<br />
<img src="//kanemori.blog.shinobi.jp/File/customProperty_example01_5.png" alt="" /> <br />
他の4つのオブジェクトのShow In Viwports/Rendersにも同様の設定を行いますが、<br />
Expressionの数字はそれぞれ別の値にします。<br />
今回、オブジェクトText_Bは"2"、オブジェクトText_Cは"3"、オブジェクトText_Dは"4"に設定します。<br />
カスタムプロパティの値と一致するオブジェクトのみが表示／レンダリングされるようになります。<br />
<br />
完成したシーンは<a href="https://kanemori.blog.shinobi.jp/File/custumProperty_example01.zip" title="">こちら</a>(blender 4.2.8で作成）<br />
<br />
<br />
※ちなみに理由はわかりませんが、Show In ViewportsとShow In Rendersプロパティは、<br />
値がTrueの時にチェックボックスがOFF、falseの時にチェックボックスがONになるようです。<br />
<img src="//kanemori.blog.shinobi.jp/File/customProperty_example01_6.png" alt="" /></p>]]>
    </description>
    <category>Blender</category>
    <link>http://kanemori.blog.shinobi.jp/blender/%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%83%97%E3%83%AD%E3%83%91%E3%83%86%E3%82%A3%E3%81%A7%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%AE%E8%A1%A8%E7%A4%BA%EF%BC%8F%E9%9D%9E%E8%A1%A8%E7%A4%BA%EF%BC%88%E3%83%AC%E3%83%B3</link>
    <pubDate>Mon, 23 Jun 2025 15:55:23 GMT</pubDate>
    <guid isPermaLink="false">kanemori.blog.shinobi.jp://entry/23</guid>
  </item>
    <item>
    <title>renameLayers (3dsmax maxScript)</title>
    <description>
    <![CDATA[<p>3dsmaxのシーン上のレイヤー名を一括変換するmaxScript。<br />
レイヤーエクスプローラー等で選択中のレイヤー名を一括で変換することが出来ます。<br />
シーン内の特定のツリー内のレイヤー名を一括変換できるので、<br />
・アセット作成作業時のアセット名の変更<br />
・複数の同じアセットをシーンに合成する際のレイヤー名重複回避<br />
等に便利です。<br />
<br />
<img src="//kanemori.blog.shinobi.jp/File/renameLayers.png" alt="" /> <br />
<br />
version 1.0.0 May.11.2024<br />
リリース<br />
<br />
version 1.1.0 May.12.2024<br />
文字列の置換機能を搭載<br />
<br />
<a href="https://kanemori.blog.shinobi.jp/File/renameLayers.zip" title="">ダウンロード</a><br />
<br />
</p>]]>
    </description>
    <category>maxScript</category>
    <link>http://kanemori.blog.shinobi.jp/maxscript/renamelayers</link>
    <pubDate>Sun, 12 May 2024 10:47:07 GMT</pubDate>
    <guid isPermaLink="false">kanemori.blog.shinobi.jp://entry/22</guid>
  </item>
    <item>
    <title>clothoidMaker (3dsmax maxScript)</title>
    <description>
    <![CDATA[<a href="https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AD%E3%82%BD%E3%82%A4%E3%83%89%E6%9B%B2%E7%B7%9A" title="">クロソイド曲線</a>を生成するmaxScript<br />
<br />
<img src="//kanemori.blog.shinobi.jp/File/clothoidMaker.png" alt="" /> <br />
<img src="//kanemori.blog.shinobi.jp/File/bcacb646.png" alt="" /> <br />
<span color="#4b3f26" face="Verdana, Osaka, sans-serif" size="2" style="color: #4b3f26; font-family: Verdana, Osaka, sans-serif; font-size: small;"><span color="#4b3f26" face="Verdana, Osaka, sans-serif" size="2" style="color: #4b3f26; font-family: Verdana, Osaka, sans-serif; font-size: small;"></span></span><div><div>version 1.1.1 May.12.2024</div><div>マクロスクリプト化しました</div><div></div><div><span color="#4b3f26" face="Verdana, Osaka, sans-serif" size="2" style="color: #4b3f26; font-family: Verdana, Osaka, sans-serif; font-size: small;"><span color="#4b3f26" face="Verdana, Osaka, sans-serif" size="2" style="color: #4b3f26; font-family: Verdana, Osaka, sans-serif; font-size: small;"><a href="https://kanemori.blog.shinobi.jp/File/clothoidMaker.zip" title="">ダウンロード</a></span></span></div></div>]]>
    </description>
    <category>maxScript</category>
    <link>http://kanemori.blog.shinobi.jp/maxscript/clothoidmaker</link>
    <pubDate>Sun, 12 May 2024 10:25:31 GMT</pubDate>
    <guid isPermaLink="false">kanemori.blog.shinobi.jp://entry/21</guid>
  </item>
    <item>
    <title>MaterialSwitcher (blender add-on)</title>
    <description>
    <![CDATA[<p><iframe width="400" height="225" src="https://www.youtube.com/embed/rHel-Lr8cog" frameborder="0" allowfullscreen=""></iframe><br />
複数のマテリアルを持ったマテリアルを一括して切り替えることのできるアドオンです。<br />
１つのマテリアルにマスク処理や陰影グラデーションなどのマテリアルを複数持たせ、<br />
シーン全体のマテリアルを一括で切り替えます。<br />
blender 3.3以降推奨。3.2でも動くかもしれません。以前のバージョンでは<a href="https://blender.stackexchange.com/questions/255984/set-the-active-material-output-node-with-python" title="">is_active_outputプロパティ</a>の挙動に問題があったようです。<br />
<br />
<span style="text-decoration: line-through;">※blenderの標準機能であるshaderAOVを使用するのと結局同じことをしているので、</span><br />
<span style="text-decoration: line-through;">ツールとしての意味はあまりなかったです。マテリアルノードへのアクセス方法の参考としてご覧ください。</span><br />
<br />
※2024/07/29追記　半透明・透明抜きの処理のあるオブジェクトのマスク処理やらZ深度出力用に結局使ってます。（AOVだと半透明処理の出力が出来ない？・・・未検証　の為）</p><br />
<p><a href="https://kanemori.blog.shinobi.jp/File/MaterialSwitcher.zip" title="">ダウンロード<br />
<br />
</a>アドオン作成の参考にさせていただいたYouTubeチャンネル<br />
<a href="https://www.youtube.com/@DarkfallBlender/videos" title="">Darkfall</a></p>]]>
    </description>
    <category>Blender</category>
    <link>http://kanemori.blog.shinobi.jp/blender/blender%20add-on%20materialswitcher</link>
    <pubDate>Wed, 26 Apr 2023 22:01:50 GMT</pubDate>
    <guid isPermaLink="false">kanemori.blog.shinobi.jp://entry/20</guid>
  </item>
    <item>
    <title>ビュー操作のみ業界互換、他はBlenderキーマップにした際のTips</title>
    <description>
    <![CDATA[<p>（以下Blender 3.1での記事になります。）<br />
Blenderでのビューの回転、移動、ドリーをAltキーを押して操作する、いわゆる「業界互換」を使いたいが、それ以外のキーマップはBlenderオリジナルを使いたいと思い、設定を試みました。<br />
<img src="//kanemori.blog.shinobi.jp/File/blenderKeyMapA.png" alt="" /> <br />
上図の３つの個所をそれぞれ、<br />
Alt Left Mouse<br />
Alt Middle Mouse<br />
Alt Right Mouse<br />
に変えればMayaやsubstancePainterと同じ操作になりますが・・・<br />
<br />
【Alt + 左クリック】がループ選択と被ってしまい、ループ選択のショートカットが効かなくなってしまいます。<br />
<img src="//kanemori.blog.shinobi.jp/File/blenderKeyMapC.png" alt="" /> <br />
<br />
いろいろ試行した結果、<br />
<img src="//kanemori.blog.shinobi.jp/File/blenderKeyMapD.png" alt="" /> <br />
Rotation Viewボタン押下の判定をPressからClick Dragに変更すると、ループ選択もビューのローテートも【Alt + 左クリック】で出来るようになりました。<br />
マウスボタン押下の判定順が影響しているのかもしれません。</p>]]>
    </description>
    <category>Blender</category>
    <link>http://kanemori.blog.shinobi.jp/blender/%E3%80%90blender%E3%80%91%E3%83%93%E3%83%A5%E3%83%BC%E6%93%8D%E4%BD%9C%E3%81%AE%E3%81%BF%E6%A5%AD%E7%95%8C%E4%BA%92%E6%8F%9B%E3%80%81%E4%BB%96%E3%81%AFble</link>
    <pubDate>Tue, 08 Nov 2022 08:06:26 GMT</pubDate>
    <guid isPermaLink="false">kanemori.blog.shinobi.jp://entry/19</guid>
  </item>
    <item>
    <title>findZeroAreaPoly (3dsmax maxScript)</title>
    <description>
    <![CDATA[<p><img src="//kanemori.blog.shinobi.jp/File/findZeroAreaPoly.png" alt="" /> <br />
指定値よりも面積が小さいポリゴンを検出／選択します。例えば、ほぼゼロに近い面積の、点状や直線状のポリゴンを検出できます。</p><br />
<p>モデルのクリーンナップの際、不正なポリゴンを発見するのに役立つと思います。<br />
<br />
fbxを介してblenderでクリーニングしても良いのですが、max内でも出来たほうが良いなと思い作成しました。<br />
<br />
April.28.2023 Version 1.1.0<br />
マクロスクリプト化しました。<br />
<br />
<a href="https://kanemori.blog.shinobi.jp/File/findZeroAreaPoly110.zip" title=""></a><a href="https://kanemori.blog.shinobi.jp/File/findZeroAreaPoly.zip" title="">ダウンロード</a><br />
<br />
</p>]]>
    </description>
    <category>maxScript</category>
    <link>http://kanemori.blog.shinobi.jp/maxscript/findzeroareapoly</link>
    <pubDate>Mon, 12 Sep 2022 09:01:44 GMT</pubDate>
    <guid isPermaLink="false">kanemori.blog.shinobi.jp://entry/18</guid>
  </item>
    <item>
    <title>simulator D (3dsmax maxScript)</title>
    <description>
    <![CDATA[物理シミュレーションによる車両アニメーション支援ツール。<br />
移動のアニメーションをつけるだけで、<br />
タイヤの回転、地形のアップダウンへの追従、加減速による車体の傾き、サスペンションの挙動などを自動生成します。<br />
<br />
・最近のmaxScriptの仕様に対応しています。<br />
・stabiliserパラメーターを追加<br />
・ver.4との設定データの互換性がありません。ご了承ください。（パラメーターの数値が同じであれば、類似した結果が出ます）<br />
・数値が発散しにくいようにアルゴリズムを調整しました。<br />
<br />
2022.09.12<br />
youtube解説動画を公開しました。<br />
<br />
<iframe width="400" height="225" src="https://www.youtube.com/embed/A-1NOmbVpL0" frameborder="0" allowfullscreen=""></iframe><br />
<br />
<a title="" href="//kanemori.blog.shinobi.jp/File/simD4_manual.pdf" target="_blank"><br />
マニュアル(PDF)</a><br />
<br />
<a href="//kanemori.blog.shinobi.jp/File/SimD509.zip" target="_blank">ダウンロード</a>]]>
    </description>
    <category>maxScript</category>
    <link>http://kanemori.blog.shinobi.jp/maxscript/maxscript-simulator%20d%20vers</link>
    <pubDate>Tue, 03 Nov 2020 15:00:00 GMT</pubDate>
    <guid isPermaLink="false">kanemori.blog.shinobi.jp://entry/16</guid>
  </item>
    <item>
    <title>SmoothByMaterialID (3sdmax maxScript)</title>
    <description>
    <![CDATA[選択している編集可能メッシュのスムージングクループに、<br />
マテリアルＩＤと同じ番号を与えます。<br />
<br />
<a href="//kanemori.blog.shinobi.jp/File/SBM100.lzh" target="_blank">ダウンロード</a>]]>
    </description>
    <category>maxScript</category>
    <link>http://kanemori.blog.shinobi.jp/maxscript/maxscript-smoothbymaterialid</link>
    <pubDate>Mon, 12 Jan 2015 15:57:40 GMT</pubDate>
    <guid isPermaLink="false">kanemori.blog.shinobi.jp://entry/15</guid>
  </item>

    </channel>
</rss>