Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > General Discussion
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

C4D++ (C++ direct in C4D) [2 Juni 2014]

 Post Reply Post Reply
Author
Message
Remotion4D View Drop Down
Member
Member
Avatar

Joined: 2010 Oct 20
Online Status: Offline
Posts: 172
Post Options Post Options   Quote Remotion4D Quote  Post ReplyReply Direct Link To This Post Topic: C4D++ (C++ direct in C4D) [2 Juni 2014]
    Posted: 2014 Jan 20 at 9:05am
The Beta Version of C++ Console (REPL) for C4D R14 is available now.
R15 should work too but C4D SDK is still from R14.
It is much stable now and most parts of R14 SDK should work now without problems.

https://bitbucket.org/remotion/c4d/downloads

Here is also new version of Code Editor GUI:
https://bitbucket.org/remotion/code-editor-gui-for-c4d/downloads

Remo_C4DPP_i1.jpg


Improved stability and C4D R14 SDK support.
Almost all parts of C4D SDK should now work
Exceptions are Thinking Particles SDK and some Libraries.

Here are some of the recent additions.
"Edit Mode", if this mode is on then command promt will not be cleared.
"Script Log..." this will log common c4d actions (command) and try to translate them to C++ code.
  
New following functions.

Run Python Script

  bool PyRun(const String& code);  

Run C++ Code using the same interpreter !

  bool CppRun(const String& code, bool scoped=true);

Now it should be possible to throw simple exceptions from the interpreter and catch them in C4D++.
For example:

  throw 11;
  throw "some string";

Right now it is not possible to catch them in interpreter it self.


Edited by Remotion4D - 2014 Jun 05 at 11:46am
Remo
developer of SuperVoxels, SuperTracer, UniFlex, GeoTools, DiTools and more
www.remotion4d.net
www.c4dpp.org
Back to Top
Remotion4D View Drop Down
Member
Member
Avatar

Joined: 2010 Oct 20
Online Status: Offline
Posts: 172
Post Options Post Options   Quote Remotion4D Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Jan 20 at 9:13am
How To Use

1: Open Consolce++
2: Enter C++ code in the bottom window and press ENTER to execute it immediately.
If code it multi-lined then use SHIFT + ENTER to go to another line.
3: Use UP or DOWN buttons to list all previous code/commands.


The code can be valid C++14 code and can use almost whole C4D R14 SDK.
Of course there are still limitations but I hope that with every new version it will less and less of them.

In the next version is should be possible to use some of STL headers.
My test show that std::unordered_map with std::string work reasonable well.

I think this can be great help to learn C++ and C4D SDK.
And of course great to test small (code size) ideas, I use it very often now.

---------------------------------------------------------------------------------------

Updated to the new version.
Visual Studio 2013 header are used now per default, this is more C++11 friendly.
Couple of other improvements and changes, for more stability and usability.

Remo


Edited by Remotion4D - 2014 Jan 20 at 9:14am
Remo
developer of SuperVoxels, SuperTracer, UniFlex, GeoTools, DiTools and more
www.remotion4d.net
www.c4dpp.org
Back to Top
Ilya View Drop Down
Member
Member
Avatar

Joined: 2009 Nov 04
Location: Russia
Online Status: Offline
Posts: 241
Post Options Post Options   Quote Ilya Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Jan 22 at 11:58am
Hello Igor
Thank you!

If somebody is afraid to setup up by this plugin(lost of something or anything about instructions in readme file). I simply made copy of c4d dir with contents and install plug-in to copy. This is my "test polygon"
Back to Top
Remotion4D View Drop Down
Member
Member
Avatar

Joined: 2010 Oct 20
Online Status: Offline
Posts: 172
Post Options Post Options   Quote Remotion4D Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Jan 23 at 5:19am
Hi Ilya,

Well this plugins does not change any C4D file.
So there should be no problem with this.
It only need to move "\c4dpp_api" folder to c4d "\resource" folder, the can be done manually.

regards,
Remo
Remo
developer of SuperVoxels, SuperTracer, UniFlex, GeoTools, DiTools and more
www.remotion4d.net
www.c4dpp.org
Back to Top
jameshcoppens View Drop Down
Member
Member


Joined: 2011 Mar 25
Location: Brooklyn
Online Status: Offline
Posts: 53
Post Options Post Options   Quote jameshcoppens Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Jan 23 at 11:48am
Whoa....I can't wait to try this out!
-Jimmy
http://www.jimmycoppens.com
Back to Top
jameshcoppens View Drop Down
Member
Member


Joined: 2011 Mar 25
Location: Brooklyn
Online Status: Offline
Posts: 53
Post Options Post Options   Quote jameshcoppens Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Jan 24 at 8:25am
Remo,
So does this actually compile C++ code?  I'm a bit curious as to how this plugin works?  Is it meant to be a quick test for C++ code before compilation? 

-Jimmy
http://www.jimmycoppens.com
Back to Top
Remotion4D View Drop Down
Member
Member
Avatar

Joined: 2010 Oct 20
Online Status: Offline
Posts: 172
Post Options Post Options   Quote Remotion4D Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Jan 24 at 10:27am
Hi Jimm,

> So does this actually compile C++ code?
Well you can call it just in time compilation.
It will compile C++ code on the fly and then execute it immediately.

> Is it meant to be a quick test for C++ code before compilation? 
Not sure what do you mean by this.
This tool is excellent way to test, improve and work on some short code.
Right now it is not really comfortable for very long code, but I hope to improve this in the future...

regards,
Remo
Remo
developer of SuperVoxels, SuperTracer, UniFlex, GeoTools, DiTools and more
www.remotion4d.net
www.c4dpp.org
Back to Top
Remotion4D View Drop Down
Member
Member
Avatar

Joined: 2010 Oct 20
Online Status: Offline
Posts: 172
Post Options Post Options   Quote Remotion4D Quote  Post ReplyReply Direct Link To This Post Posted: 2014 Jun 03 at 1:46pm
Latest updates are available now on bitbucket:
https://bitbucket.org/remotion/
Code Editor GUI and C4D++ was now updated and should work now with R15.
I had no time to update the C4D SDK so it is still mostly R14 SDK.
Remo
developer of SuperVoxels, SuperTracer, UniFlex, GeoTools, DiTools and more
www.remotion4d.net
www.c4dpp.org
Back to Top
Ilya View Drop Down
Member
Member
Avatar

Joined: 2009 Nov 04
Location: Russia
Online Status: Offline
Posts: 241
Post Options Post Options   Quote Ilya Quote  Post ReplyReply Direct Link To This Post Posted: 2015 Jul 30 at 12:29am
Hi
I want to know it possible add include(.h) directory(-ies) ?
In prefs of tool(arg[0-9]):
-I x:/include_dir

-I x:/include_dir -I x:/include_dir2 ...


such scheme - https://msdn.microsoft.com/en-us/library/73f9s62w.aspx

Thanks

p.s. - I wrote to you by email and at other forum.


Edited by Ilya - 2015 Jul 30 at 12:42am
(sorry for my English)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.117 seconds.