GetLayerObjectRoot()
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/04/2008 at 13:41, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R10.01
Platform: Windows ; Mac ;
Language(s) : C++ ;---------
I recently added some code to work adding some new LayerObjects to the scene... with the R10.5 SDK, this was done by Inserting new LayerObject nodes into the GeListHead pointer returned by doc->GetLayerObjectRoot().
Anyway, I just moved back to R10.01 SDK and it looks like doc->GetLayerObjectRoot() is/was a 'private' function at that time (D'oh!) and I am in fact now crashing when trying to do a list->GetFirst() on it.
I'd really like to have this functionality in an R10-based plugin (vs R10.5) if possible...
- is there some way for me to get the R10.01 version to work?
- in a way that's compatible with R10.5? (I can check versions and use different code if needed).
Thanks,
Keith -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/04/2008 at 13:48, xxxxxxxx wrote:
Hmmm... this thread seems to imply that it was maybe working starting in R10.1 (I think the SDK I have is from the R10.008 Demo version).
My R10 dvd (before upgrading to R10.5) may have the R10.1 DK on it, so I'll go check that. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/04/2008 at 14:18, xxxxxxxx wrote:
D'oh! Looks like my DVD has R10.008 on it... does anyone have the R10.1 SDK files ("resource" and "plugins\cinema4dsdk" folders) they can send me? (can't download them from Maxon like you used to be able to do).
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/04/2008 at 00:01, xxxxxxxx wrote:
Hallo Keith, contact me directly through [email protected]
I will send it then to you.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/04/2008 at 00:57, xxxxxxxx wrote:
Btw. why don't you download the 10.111 update from the MAXON website?
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/04/2008 at 01:55, xxxxxxxx wrote:
Quote: Originally posted by Matthias Bober on 18 April 2008
>
> * * *
>
> Btw. why don't you download the 10.111 update from the MAXON website?
>
> cheers,
> Matthias
>
>
> * * *
Uhm.. cause I was being dense? I didn't think to look there - I'll do that now, thanks. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/04/2008 at 10:57, xxxxxxxx wrote:
Ok, I downloaded the R10.111 update, so I'm now compiling with those files, but it's still crashing (!).
After hours of hair-pulling, I'm not sure where to look next. I created a plugin based on your simple example in that other thread, added it to the same (VC2008) project, using all the same compiler and linker options and it works (!), but if I try to do the same in my other plugin, it crashes...Bool ImportPlugin::Execute(BaseDocument *doc) { if( !doc ) return false; GeListHead *llist = doc->GetLayerObjectRoot(); if(!llist) { GePrint("no list"); return false; } GeListNode *layer = llist->GetFirst(); // <--- Crash on GetFirst() return true; }
...the only difference is that my other plugin has a couple dozen source files compiled in with it, but as you can see from the above, none of that is being called - I replaced my Execute() routine with the above.
Anyone have any ideas what could possibly be causing this? -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/04/2008 at 11:58, xxxxxxxx wrote:
D'oh! Somewhere in the process of moving folders and projects around, I left out the "/vmg /vms" compiler switches... - it's all working now (yay!)