Hi there,
I have issues getting the SubmitToDeadline script to work in C4D R13 and DL 5.2. The strangest things happen.
When I install the script via the Monitor it copies SubmitToDeadline.pyp to the C4D plugin directory. When launching C4D there’s no plugin menu item and when I go to “Script/User scripts/Run Script…” and choose the .pyp it errors “Unknown script file”.
I took a look at the file and as it seems to be standard python I changed the extension to .py for testing purposes. When I run it again the console shows this error:
[code]||----------------------------------------
|| Enhance:C4D v1.00.032
|| © 1997 - 2009 Richard Jennings
|| http://www.shaders.co.uk
|| © 2005 - 2009 Montesano Development LLC
|| http://www.biomekk.com
||----------------------------------------
VrayForC4D Win64 1.2.6 www.vrayforc4d.com
Appending “/submission/Cinema4D” to system path to import SubmitC4DToDeadline module
Traceback (most recent call last):
File “‘scriptmanager’”, line 27, in
File “‘scriptmanager’”, line 23, in main
ImportError: No module named SubmitC4DToDeadline[/code]
As I first thought it might not get the correct repository path I wrote the full path directly into the script. Printing sys.path showed the correct target path in the repository appended to the list (in our case “\dl\deadlinerepository\submission\Cinema4D”).
Still it can’t find the module SubmitC4DToDeadline which is the python script located at that path, isn’t it?
I also took a look at that file and there is one function I want to ask you about.
In line 14 it says:
class SubmitC4DToDeadlineDialog (gui.GeDialog):
Is that correct or should it be called GetDialog?
However, as the main function shall be called I wonder if the main function correctly only registers the submission script as a plugin. I am no programmer and only learn python by doing right now so I apologize if any of the questions are really dumb (:.
Not sure how others get it to work because with the default scripts nothing happens here. I am downloading the DL6 repository right now and will see if the scripts work.
Do you have any suggestions or ideas on how the problem can be solved?
In addition, when I try to use the old .cof instead, the menu item exists but initiating the plugin freezes C4D completely!?
As mentioned I printed the sys.path once and I could see that it looks really messy as if there are all kind of wrong paths appended, too, and only the last ones are correct. Is that normal or is there a way to clean up the sys.path (shouldn’t it reset for every script?)?
Please, help me! Any response is appreciated.
Kind regards,
Dziga