Setting a link in a link field?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/11/2009 at 05:46, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10/11
Platform: Windows ; Mac OSX ;
Language(s) : C.O.F.F.E.E ;---------
Hi,some time ago, I published the Vray Proxy Creator, which worked quite well. But suddenly, the plugin does not register anymore and throws an error instead:
// 1. Create MeshExporter Tag var ExpTag = AllocTag(VRAY_EXPORTERTAG_ID); // Create Vray MeshExporter Tag doc->AddUndo(UNDO_TAG_NEW, ExpTag); // Add Undo op->InsertTag(ExpTag); // Attach tag to original object // 2. Create VrayProxy object var PrxObj = AllocObject(VRAY_PROXYOBJECT_ID); // Create VrayProxy object PrxObj#VRAYPROXY_LINK = ExpTag; // Link tag into objectThe message in the C4D console points out a syntax error in the last line of the above shown code. Why? It always worked, what has happened?
Thanks for any tipps!
Edit: The complete source code is shown and also available for download in the german C4D Wiki: http://wiki.c4d-jack.de/wiki/VrayProxy_Creator_(Coffee-Plugin)
Greetings,
Jack -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/11/2009 at 05:54, xxxxxxxx wrote:
I just noticed that it works again, if I replace the "VRAYPROXY_LINK" with the actual ID number.
But still, I wonder why it has worked before, and what could possibly have changed within Coffee.Cheers,
Jack