FYI: "Python not a valid Language for layouts anymore"

Discussions concerning programming of SOFTIMAGE©
User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

FYI: "Python not a valid Language for layouts anymore"

Post by Hirazi Blue » 09 Aug 2010, 08:45

Yesterday Raffaele Fragapane (AKA "ThE_JacO") started a new thread on the Mailing List concerning missing functionality in Python under SI2011 (in this case concerning Python as a script language in PPG-Layouts). As far as I can gather from the follow-up posts this occurs on machines where NO Python was ever installed, before installing the Python "embedded" in SI2011.
But you'd better read the thread yourself: go there
I guess, this would mean installing Python and Pywin32 "externally" again, making the "embedded" install fairly useless, as it's main benefit was that it freed users new to Python from this "external" install.
But it's probably too soon to jump to any conclusions.
Just wanted to let you all know...
(that's why it's called a FYI...)
;)
Stay safe, sane & healthy!

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

Re: FYI: "Python not a valid Language for layouts anymore"

Post by xsisupport » 09 Aug 2010, 13:50

The problem manifests itself with on-the-fly Python properties that set the Logic property.
There's a workaround for that: set PPGLayout.Language to "XSI.SIPython".
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

User avatar
Hirazi Blue
Administrator
Posts: 5113
Joined: 04 Jun 2009, 10:15

Re: FYI: "Python not a valid Language for layouts anymore"

Post by Hirazi Blue » 09 Aug 2010, 14:21

Thanks for the info & workaround... :-bd
Stay safe, sane & healthy!

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

Re: FYI: "Python not a valid Language for layouts anymore"

Post by xsisupport » 10 Aug 2010, 22:45

xsisupport wrote:The problem manifests itself with on-the-fly Python properties that set the Logic property.
There's a workaround for that: set PPGLayout.Language to "XSI.SIPython".
There's another way to fix this that doesn't require any code changes or installing Python: you have to add a few registry entries.
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage