Title: Signature
Ah right, I see that the original method doesn't create the directories. That's worthwhile.
-Tim C.


On 2/20/2013 4:09 PM, Eric Thivierge wrote:
I got Stephen's first. I also dig the deprecated Application.ActiveProject method. They should un-deprecate it.

--------------------------------------------
Eric Thivierge
http://www.ethivierge.com


On Wed, Feb 20, 2013 at 5:06 PM, 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]>
To: [email protected]


That is only for 2013, Eric is looking for 2012

On 20/02/2013 5:00 PM, Steven Caron wrote:


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]>
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







--

 


Reply via email to