<?xml version="1.0" encoding="UTF-8" ?>
<rss version="0.91">
  <channel>
    <title>ちょびちょびMayaPython</title>
    <description>Autodesk Maya中心にPythonをしていきます。
自分の復習を兼ねて自作のscriptなどを中心に公開していく予定です
</description>
    <link>https://chobimayahebi.syoyu.net/</link>
    <language>ja</language>
    <copyright>Copyright (C) NINJATOOLS ALL RIGHTS RESERVED.</copyright>

    <item>
      <title>【PySide2】WindowをmayaWindowの後ろに行かせない方法いろいろ</title>
      <description>&lt;div&gt;
&lt;div&gt;WindowをmayaWindowの後ろに行かせない方法いろいろ&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;PyQtやPySideを使用してウィジェットを制作した場合、&lt;/div&gt;
&lt;div&gt;自分の制作したウィジェットがMayaの後ろに行ってしまったりすることが多々あります。&lt;/div&gt;
&lt;div&gt;それを防ぐためにMayaのメインウィンドウに自分のウィジェットをペアレント化して防ぐのですが&lt;/div&gt;
&lt;div&gt;従来のshibokenを使用した方法とMayaQWidgetBaseMixinを使った場合の&lt;/div&gt;
&lt;div&gt;2017とそれ以前のバージョンで試してみました。&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;br /&gt;
shibokenを使った方法&lt;br /&gt;
&lt;br /&gt;
Maya2016.5以前&lt;br /&gt;
#!/usr/bin/env python&lt;/div&gt;
&lt;div&gt;# -*- coding: utf-8 -*-&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;import sys&lt;/div&gt;
&lt;div&gt;import shiboken&lt;/div&gt;
&lt;div&gt;from PySide.QtCore import *&lt;/div&gt;
&lt;div&gt;from PySide.QtGui import *&lt;/div&gt;
&lt;div&gt;from maya import OpenMayaUI&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;ptr = OpenMayaUI.MQtUtil.mainWindow()&lt;/div&gt;
&lt;div&gt;parent = shiboken.wrapInstance(long(ptr), QWidget)&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;cw = QWidget()#CentralWidgetの設定用&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;class GUI(QMainWindow):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def __init__(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(GUI, self).__init__()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.initUI()&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def initUI(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn = QPushButton(&quot;OK&quot;,cw)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn.setGeometry(50, 25, 100, 25)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setWindowTitle('GUI')&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setGeometry(200, 300, 200, 100)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setCentralWidget(cw)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.show()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;def main():&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; app = QApplication.instance()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; ex = GUI()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; sys.exit()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; app.exec_()&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;if __name__ == '__main__':&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; main()&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;div&gt;Maya2017&lt;br /&gt;

&lt;div&gt;#!/usr/bin/env python&lt;/div&gt;
&lt;div&gt;# -*- coding: utf-8 -*-&lt;/div&gt;
&lt;div&gt;import sys&lt;/div&gt;
&lt;div&gt;import shiboken2&lt;/div&gt;
&lt;div&gt;from PySide2.QtWidgets import *&lt;/div&gt;
&lt;div&gt;from PySide2.QtGui import *&lt;/div&gt;
&lt;div&gt;from maya import OpenMayaUI&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;ptr = OpenMayaUI.MQtUtil.mainWindow()&lt;/div&gt;
&lt;div&gt;parent = shiboken2.wrapInstance(long(ptr), QWidget)&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;cw = QWidget()#CentralWidgetの設定用&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;class GUI(QMainWindow):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def __init__(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(GUI, self).__init__(parent)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.initUI()&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def initUI(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn = QPushButton(&quot;OK&quot;,cw)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn.setGeometry(50, 25, 100, 25)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setWindowTitle('GUI')&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setGeometry(200, 300, 200, 100)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setCentralWidget(cw)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.show()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;def main():&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; app = QApplication.instance()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; ex = GUI()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; sys.exit()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; app.exec_()&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;if __name__ == '__main__':&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; main()&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;shibokenを使わない方法&lt;/div&gt;
2015年以降&lt;br /&gt;
&lt;br /&gt;

&lt;div&gt;#!/usr/bin/env python&lt;/div&gt;
&lt;div&gt;# -*- coding: utf-8 -*-&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;from PySide.QtCore import *&lt;/div&gt;
&lt;div&gt;from PySide.QtGui import *&lt;/div&gt;
&lt;div&gt;from maya.app.general.mayaMixin import MayaQWidgetBaseMixin&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;class GUI(MayaQWidgetBaseMixin, QWidget):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def __init__(self, parent=None):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(GUI, self).__init__(parent=parent)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.initUI()&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def initUI(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn = QPushButton(&quot;OK&quot;,self)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn.setGeometry(50, 25, 100, 25)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setWindowTitle('GUI')&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setGeometry(200, 300, 200, 100)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.show()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;def main():&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; app = QApplication.instance()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; ex = GUI()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; sys.exit()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; app.exec_()&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;if __name__ == '__main__':&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; main()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
とりあえずこれでいけます！&lt;/div&gt;
&lt;/div&gt;</description> 
      <link>https://chobimayahebi.syoyu.net/pyside2/%E3%80%90pyside2%E3%80%91window%E3%82%92mayawindow</link> 
    </item>
    <item>
      <title>【PySide2】PySideからPySide2に移行してみました</title>
      <description>&lt;!-- admax --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://adm.shinobi.jp/s/c0987941dd06cd90836400358b78f604&quot;&gt;&lt;/script&gt;
&lt;!-- admax --&gt; &lt;br /&gt;
&lt;br /&gt;

&lt;div&gt;&lt;/div&gt;
Maya2017からPySideが廃止されPySide2になるということで試しに移行してみました&lt;br /&gt;
&lt;br /&gt;
実験したMayaのバージョンはMaya2016とMaya2017です&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ボタンを押したら文字がプリントされるコードを組みます&lt;br /&gt;
ベースのコードはこちら&lt;br /&gt;

&lt;div&gt;
&lt;div&gt;import sys&lt;/div&gt;
&lt;div&gt;import shiboken&lt;/div&gt;
&lt;div&gt;from PySide.QtGui import*&lt;/div&gt;
&lt;div&gt;from PySide.QtCore import*&lt;/div&gt;
&lt;div&gt;from maya import OpenMayaUI&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;span style=&quot;color: #ff0000;&quot; data-mce-mark=&quot;1&quot;&gt;#Mayaのウィンドウの後ろに行かないよう設定、それに合わせCentralWidgetを設定する&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;color: #0000ff;&quot; data-mce-mark=&quot;1&quot;&gt;ptr&lt;/span&gt; = OpenMayaUI.MQtUtil.mainWindow()&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;color: #99cc00;&quot; data-mce-mark=&quot;1&quot;&gt;parent&lt;/span&gt; = shiboken.wrapInstance(long(&lt;span style=&quot;color: #0000ff;&quot; data-mce-mark=&quot;1&quot;&gt;ptr&lt;/span&gt;), QWidget)&lt;/div&gt;
&lt;div&gt;cw = QWidget()&lt;/div&gt;
&lt;div&gt;class Main(QMainWindow):&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def __init__(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(Main, self).__init__(&lt;span style=&quot;color: #99cc00;&quot; data-mce-mark=&quot;1&quot;&gt;parent&lt;/span&gt;)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.initUI()&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def initUI(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setCentralWidget(cw)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setGeometry(500, 400, 250, 200)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setWindowTitle(&quot;Test&quot;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #ff0000;&quot; data-mce-mark=&quot;1&quot;&gt; #ボタンをQPushButtonで作成&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn = QPushButton(u&quot;プリント&quot;,cw)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn.clicked.connect(self.x)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn.move(50,50)&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def x(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &quot;x&quot;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;def main():&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; app = QApplication.instance()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; main = Main()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; main.show()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; sys.exit()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; app.exec_()&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;if __name__ == &quot;__main__&quot;:&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; main()&lt;br /&gt;
&lt;br /&gt;
これを実行した結果がこちらです&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/3e218c5b.jpeg&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1471695007/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
さて、Maya2016では実行可能なのがわかりました。&lt;br /&gt;
では同じコードをMaya2017で実行してみます&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/f9ff71e8.jpeg&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1471695147/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;

&lt;div&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;# Error: line 1: ImportError: file &amp;lt;maya console&amp;gt; line 2: No module named shiboken #&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;エラーが出ました&lt;br /&gt;
実はmaya2017からはshibokenはsiboken2に変更されており、実行するにはshiboken2に変更しなければなりません。&lt;br /&gt;
&lt;br /&gt;
import shibokenをimport shiboken2に&lt;br /&gt;
それに伴い&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #99cc00;&quot;&gt;parent&lt;/span&gt;&amp;nbsp;= shiboken.wrapInstance(long(&lt;span style=&quot;color: #0000ff;&quot;&gt;ptr&lt;/span&gt;), QWidget)&lt;br /&gt;
&lt;br /&gt;
の部分を&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #99cc00;&quot;&gt;parent&lt;/span&gt;&amp;nbsp;= shiboken2.wrapInstance(long(&lt;span style=&quot;color: #0000ff;&quot;&gt;ptr&lt;/span&gt;), QWidget)&lt;br /&gt;
&lt;br /&gt;
に変更します&lt;br /&gt;
そしてPySideはPySide2に変更されていますので&lt;br /&gt;

&lt;div&gt;from PySide.QtGui import*&lt;/div&gt;
&lt;div&gt;from PySide.QtCore import*&lt;br /&gt;
&lt;br /&gt;
を&lt;br /&gt;
from PySide2.QtGui import*&lt;/div&gt;
&lt;div&gt;from PySide2.QtCore import*&lt;br /&gt;
に変更してみます&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;実行してみると&lt;br /&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/44ee99aa.jpeg&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1471709712/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;span style=&quot;color: #ff0000;&quot;&gt;# Error: line 1: NameError: file &amp;lt;maya console&amp;gt; line 8: name 'QWidget' is not defined #&lt;/span&gt;&lt;br /&gt;
エラーが出ました&lt;br /&gt;
&lt;br /&gt;
PySide2では&lt;br /&gt;
&lt;span style=&quot;font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'ヒラギノ丸ゴ Pro W3', 'Hiragino Maru Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', sans-serif; font-size: 13px; line-height: 18.2px;&quot;&gt;QtGuiのほとんどの機能はQtWidgetsに移動しているため&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
from PySide2.QtGui import*を&lt;br /&gt;
from PySide2.&lt;span style=&quot;font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'ヒラギノ丸ゴ Pro W3', 'Hiragino Maru Gothic Pro', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', sans-serif; font-size: 13px; line-height: 18.2px;&quot;&gt;QtWidgets&amp;nbsp;&lt;/span&gt;import*に変更し実行してみます&lt;br /&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/e06745b0.jpeg&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1471709851/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
実行できました&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PySide2でのコード&lt;br /&gt;
&lt;br /&gt;

&lt;div&gt;import sys&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;color: #f5091c;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;import&lt;/span&gt; shiboken2&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;color: #f5091c;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;from&lt;/span&gt; PySide2.QtWidgets &lt;span style=&quot;color: #000000;&quot;&gt;import*&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;color: #f5091c;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;from&lt;/span&gt; PySide2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;span color=&quot;#f5091c&quot; style=&quot;color: #f5091c;&quot;&gt;.QtCore import*&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;from maya import OpenMayaUI&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;ptr = OpenMayaUI.MQtUtil.mainWindow()&lt;/div&gt;
&lt;div&gt;parent = &lt;span style=&quot;color: #f5091c;&quot;&gt;shiboken2&lt;/span&gt;.wrapInstance(long(ptr), QWidget)&lt;/div&gt;
&lt;div&gt;cw = QWidget()&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;class Main(QMainWindow):&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def __init__(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(Main, self).__init__(parent)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.initUI()&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def initUI(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setCentralWidget(cw)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setGeometry(500, 400, 250, 200)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.setWindowTitle(&quot;Test&quot;)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn = QPushButton(u&quot;プリント&quot;,cw)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn.clicked.connect(self.x)&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; btn.move(50,50)&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; def x(self):&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &quot;x&quot;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;def main():&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; app = QApplication.instance()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; main = Main()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; main.show()&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; sys.exit()&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;if __name__ == &quot;__main__&quot;:&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; main()&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
今のところそこまで複雑なことをしていませんのでそこまで記述を変えずに変更できていますが&lt;br /&gt;
今後作っていく過程で色々あるかもしれません・・・&lt;br /&gt;
とりあえずPySide2の日本語情報がたくさん出てくることを祈っています！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://adf.shinobi.jp/r/e73f2d729f153630295e5526c9a84aff&quot;&gt;&lt;img src=&quot;http://v2st.shinobi.jp/admax/friends/banner/sp/friends_sp_46860.png&quot; /&gt;&lt;/a&gt; &lt;!-- admax --&gt;
&lt;script src=&quot;http://adm.shinobi.jp/s/ae17fba95c050494a1456c8748cb6beb&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;!-- admax --&gt;&lt;/div&gt;
&lt;/div&gt;</description> 
      <link>https://chobimayahebi.syoyu.net/pyside2/%E3%80%90python%E3%80%91mel%E3%81%8B%E3%82%89python%E3%81%AB%E5%A4%89%E6%8F%9B%E3%81%99%E3%82%8B</link> 
    </item>
    <item>
      <title>【Python】シーン名からレイヤーを自動で作る②</title>
      <description>&lt;!-- admax --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://adm.shinobi.jp/s/c0987941dd06cd90836400358b78f604&quot;&gt;&lt;/script&gt;
&lt;!-- admax --&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: 'ヒラギノ角ゴ Pro W3', Osaka, 'ＭＳ Ｐゴシック', arial, sans-serif; line-height: 20px;&quot;&gt;前回、シーン名を取り出すことができました。&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: 'ヒラギノ角ゴ Pro W3', Osaka, 'ＭＳ Ｐゴシック', arial, sans-serif; line-height: 20px;&quot;&gt;必要な要素の&lt;/span&gt;&lt;br style=&quot;color: #333333; font-family: 'ヒラギノ角ゴ Pro W3', Osaka, 'ＭＳ Ｐゴシック', arial, sans-serif; line-height: 20px;&quot; /&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot; style=&quot;color: #333333; font-family: 'ヒラギノ角ゴ Pro W3', Osaka, 'ＭＳ Ｐゴシック', arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;2,レイヤを作る&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot; style=&quot;color: #333333; font-family: 'ヒラギノ角ゴ Pro W3', Osaka, 'ＭＳ Ｐゴシック', arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;を今回していきます&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot; style=&quot;color: #333333; font-family: 'ヒラギノ角ゴ Pro W3', Osaka, 'ＭＳ Ｐゴシック', arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;レイヤーを作るにはどうしたらいいのかわからないので一度レイヤーを作ってみます&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot; style=&quot;color: #333333; font-family: 'ヒラギノ角ゴ Pro W3', Osaka, 'ＭＳ Ｐゴシック', arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;するとscriptEditに&lt;br /&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/f55900d6.jpeg&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1452945515/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;

&lt;div&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot; style=&quot;color: #333333; font-family: 'ヒラギノ角ゴ Pro W3', Osaka, 'ＭＳ Ｐゴシック', arial, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;createDisplayLayer -name &quot;layer1&quot; -number 1 -nr;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;これでレイヤーを作ることができるようです&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;このコードをmelからPythonに変え、実行してみます&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;pm.createDisplayLayer(nr=1, name=&quot;layer1&quot;, number=1)&lt;/span&gt;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/a0f4a82c.jpeg&quot; title=&quot;&quot; style=&quot;color: #333333; font-family: 'ヒラギノ角ゴ Pro W3', Osaka, 'ＭＳ Ｐゴシック', arial, sans-serif;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1452945582/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
うまくlayerをつくることができました&lt;br /&gt;
できたlayerはlayer1でなく、layer2となっていますが名前が重複しているので気にしなくて問題ありません&lt;br /&gt;
&lt;br /&gt;
これで2つ目の要素、レイヤーを作るができました&lt;br /&gt;
&lt;br /&gt;
前回作った要素と今回作った要素を加え&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;a = pm.cmds.file(q=1,sceneName=1)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;filename = pm.mel.basenameEx(a)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;pm.mel.createDisplayLayer(nr=1, name=filename, number=1)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/9f03d3ed.jpeg&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1452945770/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
うまくファイル名のついたLayerを作ることができました&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
シーン名のついた&lt;/span&gt;&lt;/span&gt;LayerだけでなくGroupも作れると便利なのでそれも付けたし、ラジオボタンをつかってLayerかGroupで実行するscriptを作ります&lt;/div&gt;
&lt;div&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;import maya.cmds&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;import pymel.core as pm&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;def layerCreate():&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; a = pm.cmds.file(q=1,sceneName=1)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; filename = pm.mel.basenameEx(a)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; pm.mel.createDisplayLayer(nr=1, name=filename, number=1)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;def GroupCreate():&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; a = pm.cmds.file(q=1,sceneName=1)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; filename = pm.mel.basenameEx(a)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; cmds.group(n=filename)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;def make():&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; selected = maya.cmds.radioCollection(radioCollection1, q=True, select=True)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; if selected == 'radioButton1':&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layerCreate()&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; elif selected == 'radioButton2':&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GroupCreate()&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;windowName = maya.cmds.window(title='SceneName',wh=(300,150))&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;maya.cmds.columnLayout()&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;radioCollection1 = maya.cmds.radioCollection()&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;maya.cmds.radioButton('radioButton1', label='Layer', select=True)&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;maya.cmds.radioButton('radioButton2', label='Group')&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;maya.cmds.button(label='Create',command='make()')&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;maya.cmds.button(label='EXIT',command=('maya.cmds.deleteUI(&quot;' + windowName + '&quot;)'))&amp;nbsp;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;maya.cmds.showWindow()&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/sda.JPG&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1452946017/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;span color=&quot;#333333&quot; face=&quot;ヒラギノ角ゴ Pro W3, Osaka, ＭＳ Ｐゴシック, arial, sans-serif&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LayerかGroupを選択し、Createを実行するとシーン名のついた状態で作成できるはずです&lt;br /&gt;
&lt;br /&gt;
前回&lt;br /&gt;
&lt;a href=&quot;http://chobimayahebi.syoyu.net/python/%E3%80%90python%E3%80%91%E3%82%B7%E3%83%BC%E3%83%B3%E5%90%8D%E3%81%8B%E3%82%89%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC%E3%82%92%E8%87%AA%E5%8B%95%E3%81%A7%E4%BD%9C%E3%82%8B%E2%91%A0&quot;&gt;【python】シーン名からレイヤーを自動で作る①&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://adf.shinobi.jp/r/e73f2d729f153630295e5526c9a84aff&quot;&gt;&lt;img src=&quot;http://v2st.shinobi.jp/admax/friends/banner/sp/friends_sp_46860.png&quot; /&gt;&lt;/a&gt; &lt;!-- admax --&gt;
&lt;script src=&quot;http://adm.shinobi.jp/s/ae17fba95c050494a1456c8748cb6beb&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;!-- admax --&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description> 
      <link>https://chobimayahebi.syoyu.net/python/%E3%80%90python%E3%80%91%E3%82%B7%E3%83%BC%E3%83%B3%E5%90%8D%E3%81%8B%E3%82%89%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC%E3%82%92%E8%87%AA%E5%8B%95%E3%81%A7%E4%BD%9C%E3%82%8B%E2%91%A1</link> 
    </item>
    <item>
      <title>【Python】シーン名からレイヤーを自動で作る①</title>
      <description>&lt;!-- admax --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://adm.shinobi.jp/s/c0987941dd06cd90836400358b78f604&quot;&gt;&lt;/script&gt;
&lt;!-- admax --&gt; &lt;br /&gt;
&lt;br /&gt;
業務などでシーン名を付けたレイヤーを作るときなどにワンボタンで設定できるsprictがほしい！！&lt;br /&gt;
なんて思ったので作ってみました&lt;br /&gt;
&lt;br /&gt;
必要な要素は&lt;br /&gt;
1,シーン名を取り出す&lt;br /&gt;
2,レイヤを作る&lt;br /&gt;
というところではないでしょうか？&lt;br /&gt;
&lt;br /&gt;
シーン名を取り出すにはどうしたらいいのでしょう？&lt;br /&gt;
mayaヘルプにあるPythonコマンドを見てみましょう&lt;br /&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/ad88c402.jpeg&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1452693632/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
sceneName(sn)&lt;br /&gt;
現在のシーンの名前を返すと書いてありますね&lt;br /&gt;
実際に書いてみます&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;div&gt;print pm.cmds.file(q=1,sceneName=1)&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/02.JPG&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1452692601/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;
ディレクトリパスとファイル名を出すことができました&lt;br /&gt;
&lt;br /&gt;
今回はファイル名使用したいのでディレクトリ パスを除いてファイル名だけにした名前だけを取り出したいです&lt;br /&gt;
先ほど調べていたPythonコマンドの上にshortName(shn)というものがあるのでそれを記述して実行してみます&lt;br /&gt;
&lt;br /&gt;
print　pm.cmds.file(q=1,sceneName=1,shortName=1)&lt;br /&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/03.JPG&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1452692823/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
test.mbうまくいきました！・・・・が！！&lt;br /&gt;
拡張子が邪魔になるので消したいです&lt;br /&gt;
ですので何かないかさらに詳しく調べてみると&lt;br /&gt;

&lt;div&gt;&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/266bdb7e.jpeg&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1452693644/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
basenameExなるものがMELにあるようです&lt;br /&gt;
これは使える&lt;br /&gt;
ということでpm.cmds.file(q=1,sceneName=1)に&lt;br /&gt;
basenameExをpythonで使用できるようにpm.mel.を手前に記述します&lt;br /&gt;
&lt;br /&gt;

&lt;div&gt;a = pm.cmds.file(q=1,sceneName=1)&lt;/div&gt;
&lt;div&gt;print pm.mel.basenameEx(a)&lt;/div&gt;
&lt;br /&gt;
&lt;a target=&quot;_blank&quot; href=&quot;http://file.chobimayahebi.syoyu.net/05.JPG&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://file.chobimayahebi.syoyu.net/Img/1452693011/&quot; alt=&quot;&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
うまいことシーン名のみを取り除くことができました&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ディレクトリパス、拡張子を除いたシーン名を取り出すことができたので&lt;br /&gt;
これで一つ目の要素&lt;br /&gt;
シーン名を取り出すことができました&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;

&lt;div&gt;&lt;/div&gt;
続き&lt;br /&gt;
&lt;a href=&quot;http://chobimayahebi.syoyu.net/python/%E3%80%90python%E3%80%91%E3%82%B7%E3%83%BC%E3%83%B3%E5%90%8D%E3%81%8B%E3%82%89%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC%E3%82%92%E8%87%AA%E5%8B%95%E3%81%A7%E4%BD%9C%E3%82%8B%E2%91%A1&quot;&gt;【python】シーン名からレイヤーを自動で作る②&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
参考：&lt;a href=&quot;http://help.autodesk.com/view/MAYAUL/2016/JPN/&quot;&gt;http://help.autodesk.com/view/MAYAUL/2016/JPN/&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: 'MS PGothic'; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a href=&quot;http://adf.shinobi.jp/r/e73f2d729f153630295e5526c9a84aff&quot;&gt;&lt;img src=&quot;http://v2st.shinobi.jp/admax/friends/banner/sp/friends_sp_46860.png&quot; /&gt;&lt;/a&gt; &lt;!-- admax --&gt;
&lt;script src=&quot;http://adm.shinobi.jp/s/ae17fba95c050494a1456c8748cb6beb&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;!-- admax --&gt;</description> 
      <link>https://chobimayahebi.syoyu.net/python/%E3%80%90python%E3%80%91%E3%82%B7%E3%83%BC%E3%83%B3%E5%90%8D%E3%81%8B%E3%82%89%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC%E3%82%92%E8%87%AA%E5%8B%95%E3%81%A7%E4%BD%9C%E3%82%8B%E2%91%A0</link> 
    </item>

  </channel>
</rss>