Jump to content


Regular Member
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Noble Beginner

About MaxWhite

  • Rank

Profile Information

  • First Name
  • Last Name
  • Location

Hardware | Software Information

  • C4D
    R20 Visualize
  • OS
  • GPU
  1. Code example: import os import sys import c4d def PluginMessage(_id, data): if _id == c4d.C4DPL_COMMANDLINEARGS: print sys.argv walker() return True return False def walker(step_x=5,step_y=5): doc = c4d.documents.GetActiveDocument() print "Document: {}".format(doc) bd = doc.GetRenderBaseDraw() print "BaseDraw: {}".format(bd) safeframe = bd.GetSafeFrame() print "SafeFrame: {}".format(safeframe) arr_o = [] for y in range(safeframe['cl'],safeframe['cr'],step_y): for x in range(safefra
  2. I am writing a script that runs the C4d command line ("Commandline.exe" - nogui, etc.) and works in it.The Gui console is the console that is called with shift+F10 in c4d.
  3. I think problem is C4d is not initialized BaseDraw from Commandline because BaseDraw, PickObject, GetFrame didn't in Gui console. I tried to take BaseDraw.GetSafeFrame () and got 0,0,0,0. Also tried to run the script from Gui, I was able to get GetFrame () when I did BaseDraw.InitializeView (self, doc, cam, editorsv) (but still not the same as the console in Gui). In fact PickObject, GetFrame work well in Gui console.
  • Create New...