<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moko_03_25</author_name>
  <author_url>https://blog.hatena.ne.jp/moko_03_25/</author_url>
  <blog_title>ゲームエフェクトデザイナーのブログ | A Real-Time VFX Artist's Blog</blog_title>
  <blog_url>https://effect.hatenablog.com/</blog_url>
  <categories>
    <anon>Maya</anon>
  </categories>
  <description>MELスクリプトと同じ場所にあるファイルを参照したい場合の備忘録。ちょっと手こずったので記事にしておきます。 例えばMELスクリプトと同じ場所にあるテクスチャをマテリアルで指定したい時に、テクスチャ名だけで指定するとプロジェクト/sourceimage直下を参照してしまいます。 しかしスクリプトフォルダはマイドキュメント以下にあるのでユーザーによってパスが変わってしまいます（Users/Document/ユーザー名/maya‥という感じ）。 そんな時には「MAYA_SCRIPT_PATH」を使うと良いようです。 下記の例は前回の記事「MELでシェーダーを作成 2」の一部になります。 //スクリ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feffect.hatenablog.com%2Fentry%2F2016%2F01%2F30%2F010013&quot; title=&quot;MELスクリプトのある場所を参照する - ゲームエフェクトデザイナーのブログ | A Real-Time VFX Artist&amp;#39;s Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-01-30 01:00:13</published>
  <title>MELスクリプトのある場所を参照する</title>
  <type>rich</type>
  <url>https://effect.hatenablog.com/entry/2016/01/30/010013</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
