Importing siutils sisel, siuitk and sidict

Discussions concerning programming of SOFTIMAGE©
forsgren
Posts: 13
Joined: 12 Jul 2012, 16:30

Importing siutils sisel, siuitk and sidict

Post by forsgren » 11 Dec 2012, 07:45

Hi all! Im trying to run a Python script from http://xsisupport.com/2011/11/02/checki ... -no-tasks/, problem is Im getting a Import error on sisel, siuitk and sidict, Anyone knows why they wont import?

EricTRocks
Moderator
Posts: 754
Joined: 25 Nov 2009, 00:41

Re: Importing siutils sisel, siuitk and sidict

Post by EricTRocks » 11 Dec 2012, 08:04

What version of Softimage are you running? They changed the imports in 2012 I believe.

http://xsisupport.com/2012/06/20/yet-an ... shortcuts/
Eric Thivierge
Lead Kraken Developer, Fabric Engine
http://fabric-engine.github.io/Kraken

User avatar
xsisupport
Posts: 713
Joined: 09 Jun 2009, 09:02
Location: Montreal Canada

Re: Importing siutils sisel, siuitk and sidict

Post by xsisupport » 11 Dec 2012, 10:55

EricTRocks wrote:What version of Softimage are you running? They changed the imports in 2012 I believe.

http://xsisupport.com/2012/06/20/yet-an ... shortcuts/
They change in every version, don't they? :) I really should stop using them in my blog posts.
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

EricTRocks
Moderator
Posts: 754
Joined: 25 Nov 2009, 00:41

Re: Importing siutils sisel, siuitk and sidict

Post by EricTRocks » 11 Dec 2012, 11:02

yeah... since they first introduced them I was hesitant to use them since many people weren't on the latest version yet that had them. Then they went and changed them. Now I say, nah, not worth the hassle if they change it again.
Eric Thivierge
Lead Kraken Developer, Fabric Engine
http://fabric-engine.github.io/Kraken

User avatar
xsisupport
Posts: 713
Joined: 09 Jun 2009, 09:02
Location: Montreal Canada

Re: Importing siutils sisel, siuitk and sidict

Post by xsisupport » 11 Dec 2012, 12:08

forsgren wrote:Hi all! Im trying to run a Python script from http://xsisupport.com/2011/11/02/checki ... -no-tasks/, problem is Im getting a Import error on sisel, siuitk and sidict, Anyone knows why they wont import?
Hi

Replace the import statements with this, and it should run ok:

Code: Select all

si = Application
siut = XSIUtils
log = si.LogMessage
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage