External editor help
-
On 19/10/2014 at 02:55, xxxxxxxx wrote:
Hi
I'm using Sublime Text as an external editor - just want to know is there a way that C4D can automatically reload the scripts once I've made changes - rather than have to manually reload the .py script every time? -
On 19/10/2014 at 05:50, xxxxxxxx wrote:
Hi Glenn,
if you safe your script files with sublime at the
/Users/[yourusername]/Library/Preferences/MAXON/CINEMA 4D R16_9AF11231/library/scripts
cinema will recognize if a certain script has changed.
You just have to confirm at c4d.hope this helps
Best wishes
Martin -
On 19/10/2014 at 08:06, xxxxxxxx wrote:
brilliant, thanks again Martin!
-
On 19/10/2014 at 08:43, xxxxxxxx wrote:
mmm, I put the script file in the correct place - but still nothing happens when I make a change ?
-
On 19/10/2014 at 09:01, xxxxxxxx wrote:
I should have been more precise
a possible workflow could be:
open the script manager in c4d.
make a new file with the script manager, save it to the library direction and leave c4d and the script manager open.
Open this file in sublime text.
Make your changes.
Save it in sublime text.
If you go to c4d again, you´ll be asked to confrim the changes.
now you can execute your updated script.We´re talking about scripts and not about plugins right?
Best wishes
Martin -
On 19/10/2014 at 09:11, xxxxxxxx wrote:
nope still nothing,
saving my scripts here
/Users/glenn/Library/Preferences/MAXON/CINEMA 4D R16_9AF11231/library/scriptsbeen trying on a generator object.
-
On 19/10/2014 at 09:27, xxxxxxxx wrote:
ok,
there are several ways to use python in c4d.
Have a look at this post:https://developers.maxon.net/forum/topic/8208/10700_instancing-objects-from-one-doc--solved
Sebastian explained it precisley.
You might have seen that with a generator your script will be saved as a text file .txt not a .py
file.
With a Python generator you use the expression editor and not the script manager.you can change your file to a .py file to ensure the right sintax but with the expression editor open you still have to push the load, ok and the execute button.
So far my knowledge about it.
Hope this helps
Best wishes
Martin -
On 19/10/2014 at 09:46, xxxxxxxx wrote:
ah right - it only works in the script manager, just got it working that way.
i was using the expression editor when you click on 'open python editor'.wondering how to connect a script in the script manager into the script that a python tag / generator uses..
-
On 19/10/2014 at 09:58, xxxxxxxx wrote:
You could use my remote code runner plugin to execute a script
directly from Sublime in Cinema 4d, -
On 19/10/2014 at 09:59, xxxxxxxx wrote:
Originally posted by xxxxxxxx
You could use my remote code runner plugin to execute a script
directly from Sublime in Cinema 4d,yeah I saw that before - could come in handy thanks.