On 22/10/2015 at 08:06, xxxxxxxx wrote:
Hi Guys,
Code line stops function from continuing on?
def The_Funtion(self, unit) :
c4d.CallCommand(100004820, 100004820) # Copy
#---------------| New Doc |-----------------#
c4d.CallCommand(12094, 12094) # New
#----| GenerateProjectSettings |----#
doc = c4d.documents.GetActiveDocument()
unitScale = c4d.UnitScaleData()
unitScale.SetUnitScale(1.0, unit)
bc = c4d.BaseContainer()
bc[c4d.DOCUMENT_DOCUNIT] = unitScale
bc[c4d.DOCUMENT_MINTIME] = c4d.BaseTime(self.GetLong(UI_FRAME_FROM_FBX), 30)
bc[c4d.DOCUMENT_MAXTIME] = c4d.BaseTime(self.GetLong(UI_FRAME_TO_FBX), 30)
#---|Problem|----------------------------------------------------------------------------------------------------------#
#--| When this 2 lines Excute, it stops the Function from going to Paste and It do what it suppose to do but don't continue | ----------#
doc.GetLong(UI_FRAME_TO_FBX, bc[c4d.DOCUMENT_MINTIME].GetMinTime(doc.GetFps()))
doc.GetLong(UI_FRAME_TO_FBX, bc[c4d.DOCUMENT_MAXTIME].GetMaxTime(doc.GetFps()))
#----------------------------------------------------------------------------------------------------------------------#
doc.SetDocumentData(c4d.DOCUMENTSETTINGS_DOCUMENT, bc)
#--------------- | Paste |-----------------#
c4d.CallCommand(100004821, 100004821) # Paste
#---------------------------------------------------------------------------------------------------------#
Help Plz or Tips,
Ashton