To be fair though, I didn't want to use the CreateProject() method as it will recreate folders if not present which is the bad side to this.
-------------------------------------------- Eric Thivierge http://www.ethivierge.com On Wed, Feb 20, 2013 at 5:12 PM, Raffaele Fragapane < [email protected]> wrote: > That you did, and you can tell Eric off for not trying what you posted > actually. > He's used to being beaten with a hokey stick, flat for minor mistakes, a > good swing at the knees by the edge for graver ones. > > > On Thu, Feb 21, 2013 at 9:06 AM, Alok <[email protected]> wrote: > >> And I beat Raff and Stephan by a few minute ;) >> >> >> -------- Original Message -------- Subject: Re: Setting active project >> in Python Date: Wed, 20 Feb 2013 17:04:31 -0500 From: Alok >> <[email protected]> <[email protected]> To: >> [email protected] >> >> >> That is only for 2013, Eric is looking for 2012 >> >> On 20/02/2013 5:00 PM, Steven Caron wrote: >> >> you even get a 3rd version of this property! yaaa. >> >> >> http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/index.html?url=si_om/XSIApplication.ActiveProject3.html,topicNumber=si_om_XSIApplication_ActiveProject3_html >> >> >> On Wed, Feb 20, 2013 at 1:59 PM, Stephen Blair >> <[email protected]>wrote: >> >>> http://xsisupport.com/2010/11/24/setting-the-active-project/ >>> >>> >>> >>> On 20/02/2013 4:52 PM, Eric Thivierge wrote: >>> >>> Well that's the thing, I want to make an already existing project the >>> active project. >>> >>> -------------------------------------------- >>> Eric Thivierge >>> http://www.ethivierge.com >>> >>> >>> On Wed, Feb 20, 2013 at 4:49 PM, Alok <[email protected]> wrote: >>> >>>> Just make sure that the path exists beforehand >>>> >>>> >>>> >>>> -------- Original Message -------- Subject: Re: Setting active >>>> project in Python Date: Wed, 20 Feb 2013 16:46:14 -0500 From: Alok >>>> <[email protected]> <[email protected]> To: >>>> [email protected] >>>> >>>> This should work : >>>> Application.ActiveProject2 = Application.CreateProject( >>>> "Path\\To\\My\\Project\\") >>>> >>>> On 20/02/2013 4:31 PM, Eric Thivierge wrote: >>>> >>>> If I remember correctly, there is no way to get this to work in Python. >>>> >>>> Application.ActiveProject2 = "Path\\To\\My\\Project\\" >>>> >>>> Is this still true? >>>> >>>> Getting this error ins 2012.5: >>>> >>>> # ERROR : Traceback (most recent call last): >>>> # File "<Script Block >", line 11, in <module> >>>> # xsi.ActiveProject2 = >>>> "C:\\Users\\Eric\\Documents\\projects\\ET_Tools" >>>> # File "C:\Program Files\Autodesk\Softimage >>>> 2012.SAP\Application\python\Lib\site-packages\win32comext\axscript\client\pyscript.py", >>>> line 153, in __setattr__ >>>> # raise AttributeError, attr >>>> # AttributeError: activeproject2 >>>> # - [line 11] >>>> >>>> -------------------------------------------- >>>> Eric Thivierge >>>> http://www.ethivierge.com >>>> >>>> No virus found in this message. >>>> Checked by AVG - www.avg.com >>>> Version: 2012.0.2238 / Virus Database: 2639/5618 - Release Date: >>>> 02/20/13 >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 2012.0.2238 / Virus Database: 2639/5618 - Release Date: 02/20/13 >> >> >> >> >> >> > > > -- > Our users will know fear and cower before our software! Ship it! Ship it > and let them flee like the dogs they are! >
<<image/gif>>
<<image/gif>>

