This Line Give me error ---> CurrentPassName = CuPass + NameVar
I know it's because the fir var is an 'instance' and the second a 'unicode', how can I convert the instance to unicode and make a compatible concatenation ???
this is the original script Function:
def FinalRendering() :
#PassVars
CuPass = Application.ActiveProject.ActiveScene.ActivePass
SceneName = u"Liquid_Pouring"
PassName = u"Playblast_rough"
NameVar = u".Name"
CurrentPassName = CuPass + NameVar
NewPassName = SceneName + u"_" + PassName
Format = u".ImageFormatPreset"
#formato 16:9 720x480 = -28
FormatValue = -28
Application.SetValue( CurrentPassName , NewPassName , "")
'instance' and 'unicode' concatenation
-
- Posts: 31
- Joined: 16 Sep 2013, 21:29
- Skype: jm_quintela
-
- Moderator
- Posts: 754
- Joined: 25 Nov 2009, 01:41
- Contact:
Re: 'instance' and 'unicode' concatenation
Should be
CurrentPassName = CuPass.Name + NameVar
CurrentPassName = CuPass.Name + NameVar
-
- Posts: 31
- Joined: 16 Sep 2013, 21:29
- Skype: jm_quintela
Re: 'instance' and 'unicode' concatenation
Thank you very much , it work ) !
Who is online
Users browsing this forum: No registered users and 22 guests