<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Python Modules like XSI Plugins</title>
	<atom:link href="http://www.xsi-blog.com/archives/179/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xsi-blog.com/archives/179</link>
	<description>People and thoughts behind XSI in production...</description>
	<pubDate>Tue, 06 Jan 2009 00:27:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Brian</title>
		<link>http://www.xsi-blog.com/archives/179#comment-17258</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 09 May 2008 19:40:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.xsi-blog.com/archives/179#comment-17258</guid>
		<description>How would one get to XSIUtils inside?  Inside one of my modules I am trying to check if a Partition is a light or object.

&lt;pre lang="javascript" line="1"&gt;
oDatabase = XSIUtils.DataRepository
if (oDatabase.getidentifier(oPart, c.siObjectCLSID) == '{7A1BB9D6-58A3-49D6-84BA-39429EDAD489}'):
    partElem.setAttribute('type', 'Lights_Partition')
    LOG("Light")
else:
    partElem.setAttribute('type', 'Object_Partition')
    LOG("Object")
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>How would one get to XSIUtils inside?  Inside one of my modules I am trying to check if a Partition is a light or object.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="javascript">oDatabase <span style="color: #339933;">=</span> XSIUtils.<span style="color: #006600;">DataRepository</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>oDatabase.<span style="color: #006600;">getidentifier</span><span style="color: #009900;">&#40;</span>oPart<span style="color: #339933;">,</span> c.<span style="color: #006600;">siObjectCLSID</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'{7A1BB9D6-58A3-49D6-84BA-39429EDAD489}'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>
    partElem.<span style="color: #006600;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'type'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'Lights_Partition'</span><span style="color: #009900;">&#41;</span>
    LOG<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Light&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #000066; font-weight: bold;">else</span><span style="color: #339933;">:</span>
    partElem.<span style="color: #006600;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'type'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'Object_Partition'</span><span style="color: #009900;">&#41;</span>
    LOG<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Object&quot;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: eric</title>
		<link>http://www.xsi-blog.com/archives/179#comment-16090</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Tue, 13 Nov 2007 19:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.xsi-blog.com/archives/179#comment-16090</guid>
		<description>Thanks for sharing your knowledge.
I'm kind of new in scripting in xsi and your help is great!</description>
		<content:encoded><![CDATA[<p>Thanks for sharing your knowledge.<br />
I&#8217;m kind of new in scripting in xsi and your help is great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Moulder</title>
		<link>http://www.xsi-blog.com/archives/179#comment-16014</link>
		<dc:creator>David Moulder</dc:creator>
		<pubDate>Mon, 15 Oct 2007 18:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.xsi-blog.com/archives/179#comment-16014</guid>
		<description>Hi Dan,

Thanks for taking the time to do this.  It's helped me import my 1st Python Module in minutes.  I had spent some time trying to do this last night but to no avail.  I'm going to read all you other scripting posts now.

Thanks again
All the best,

Dave</description>
		<content:encoded><![CDATA[<p>Hi Dan,</p>
<p>Thanks for taking the time to do this.  It&#8217;s helped me import my 1st Python Module in minutes.  I had spent some time trying to do this last night but to no avail.  I&#8217;m going to read all you other scripting posts now.</p>
<p>Thanks again<br />
All the best,</p>
<p>Dave</p>
]]></content:encoded>
	</item>
</channel>
</rss>
