loading a project ?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 09/06/2008 at 02:08, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R8
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;---------
Hi there,
i m not new to programming, but i m a newbie when it comes to COFFEE. I just want to ask if what i want to do can be done in COFFEE or do i need to go to the C++ functions.
It would just be great if it can be done in COFFE.
What i want to do is this:I need to create a script that automatically loads projects from a specific folder.
I already have a plugin that inherits from CommandData that takes care of loading the project.
I was thinking of creating,in the script, a simple class inheriting from this plugin and just calling the load function from it, but somehow the COFFEE script just doesn t recognize my plugin class.
Does anybody know why this is happening oe if such a thing can be done?
thnx a lot -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/06/2008 at 01:02, xxxxxxxx wrote:
Alright, so i found out that i can t make that and here is why : (for other people that have to do this )
- mainly i wanted to call a child of a CommandPlugin in the COFFEE script.
I have some Maya and MEL background and i thought that in cinema you could do almost the same things with coffee. :-))
But coffee only "agrees" with a few types of plugins and these basically are: GeDialog, MenuPlugin, FilterPlugin, etc that were not suitable for what i wanted to do.
After some digging into the available cinema api_ code i found that in the coffee module only GeDialog is defined. Also after deeper digging :))saw that , for instance, MenuPlugin is derived from this GeDialog class.
So because there are no files describing any CommandPlugin in the coffee module, the coffee programs will not recognize anything not derived from those classes (This is what i found, but please let me now if i m wrong,cause it would be good news for me )
It would be nice though if in the future coffee will be able to call every plugin that there is in cinema -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/06/2008 at 02:50, xxxxxxxx wrote:
So if I understand you right you wrote a C++ CommandData plugin that has a custom Load function. YOu want to call this Load function through a COFFEE script. That is currently not possible. The only thing you can do is to make call to CommandData plugins through CallCommand(PluginID).
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/06/2008 at 04:33, xxxxxxxx wrote:
Thnx Matthias,
i didn t really look that much at that Command(PluginID)
It could sort of work for what i want, not pretty but there is hope :))