Isotropix Forums

Get path to and name of current project

Clarisse Scripting related topics

Get path to and name of current project

Unread postby Arvid » Tue Nov 05, 2013 3:36 pm

Hi!

How do I get the current path to and the name of the current project file through Python in Clarisse?

Edit: Perhaps there's a way to read the $PNAME and $PDIR variables?
Arvid
 
Posts: 191
Joined: Thu Jan 31, 2013 3:44 pm

Re: Get path to and name of current project

Unread postby support_team » Tue Nov 05, 2013 9:52 pm

Hi,

There could be an easier way to do this but here is how you can to it for now:
Code: Select all
print ix.application.get_factory().get_vars().get("PNAME").get_string()
Isotropix
Support Team
User avatar
support_team
 
Posts: 1024
Joined: Thu Jan 31, 2013 11:10 am

Re: Get path to and name of current project

Unread postby Arvid » Wed Nov 06, 2013 10:35 am

Perfect! It was the last puzzle piece to get a working Royal Render submission script. I'll post it in another thread :mrgreen:
Arvid
 
Posts: 191
Joined: Thu Jan 31, 2013 3:44 pm


Return to Scripting