PDA

View Full Version : VrayProxy Creator not working in 1.2/11.5


JorgeArango
01-27-2010, 02:04 PM
The console says:

COFFEE ERROR!
(124) Syntax error
File: CreateVrayProxy.cof
Line: 60
Row: ~25

This plugin is OpenSource, so if anyone knows how to fix that, it would be much appreciated,

Tong
01-27-2010, 02:17 PM
Line: 60
Row: ~25
what in it?

JorgeArango
01-27-2010, 02:23 PM
This is line 60:

PrxObj#VRAYPROXY_LINK = ExpTag; // Link tag into object


This is the bloke of code where line 60 is:

//////////////
// Functions
Create_a_proxy(op, doc, parent, previous)
// Creates a VrayProxy of an object (just a single one!)
{
// 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 object
PrxObj->SetName(op->GetName()); // Set name
doc->AddUndo(UNDO_OBJECT_NEW, PrxObj); // Add Undo
doc->InsertObject(PrxObj, parent, previous); // Insert proxy object into document
PrxObj->SetMg(op->GetMg()); // Apply original object's global maxtrix
PrxObj->Message(MSG_UPDATE); // Update Proxy object

// 3. Copy all Texture Tags from Original object to VrayProxy
var TexTag = op->GetFirstTag();
var LastTag = NULL;

// Iterate tags
while (TexTag) {
// If a Texture Tag is found
if (TexTag->GetType() == Ttexture) {
// Create new tag
var NewTexTag = AllocTag(Ttexture);

// Get all settings and links from found Texture tag
NewTexTag#TEXTURETAG_MATERIAL = TexTag#TEXTURETAG_MATERIAL;
NewTexTag#TEXTURETAG_RESTRICTION = TexTag#TEXTURETAG_RESTRICTION;
NewTexTag->SetContainer(TexTag->GetContainer());

// Attach new tag to VrayProxy object
doc->AddUndo(UNDO_TAG_NEW, NewTexTag); // Add Undo
PrxObj->InsertTag(NewTexTag, LastTag); // Attach tag to Proxy object
PrxObj->Message(MSG_UPDATE); // Update Proxy object
LastTag = NewTexTag; // Remember created tag (to maintain original tag order)
}

JDP
01-27-2010, 02:50 PM
Hi.

Change Line 60 to PrxObj#VRAYPROXYGEN_LINK = ExpTag;

Change Line 26 from
const var VRAY_PROXYOBJECT_ID = 1021309;

to
const var VRAY_PROXYOBJECT_ID = 1023306;

Let me know if you have any poblems.

stefan
01-27-2010, 03:00 PM
do you mean the plugin from jack?

or the vray one.

jacks plugin for 1.1 wont work in 1.2 i guess, this he needed to update as proxies changed, but you have a proxy generator in 1.2 itself...

best greetings
stefan

JDP
01-27-2010, 03:02 PM
Hi, it works if you make those code changes.

Cheers.

JorgeArango
01-27-2010, 03:03 PM
That fixed it!

What was wrong? The plugin was working great with 1.1/11.0

What changed between 11.0 and 11.5?


A big thank you!

Tong
01-27-2010, 03:06 PM
proxy object ID seems ;-)

proxy from file and from tag was separated

http://vrayc4d.com/manuals/sites/default/files/book/vray-proxy-26/vraypoxyfile.jpg

http://vrayc4d.com/manuals/sites/default/files/book/vray-proxy-26/vrayproxygenerator.jpg

JDP
01-27-2010, 03:10 PM
The plugin ID changed for the VrmeshExporter object and also the ID for the tag link field changed, so the plugin couldn't create a VrmeshExporter object or link the VrmeshExporter tag.

Cheers.

JorgeArango
01-27-2010, 03:17 PM
I see, thank you all.

Time to check the proxy generator in 1.2.

belushy
01-27-2010, 03:51 PM
does this work for 11.5

and which file to edit with what software....

sorry

JorgeArango
01-27-2010, 04:30 PM
Yes, it's working in 11.5 the file is CreateVrayProxy.cof

edit: I did it with TextWrangler for mac.


And proxy with Mac is now working great!

JDP
01-27-2010, 04:46 PM
You can use notepad on Windows, or add a coffee expression tag to a null object and load the file in there. I'd turn off "use expressions" in the edit menu first just for safety.

c4d-Jack
02-01-2010, 12:36 PM
Hi guys,

I am currently completely loaded with customer work, so probably I won't find the time to fix the ProxyCreator plugin. But since it's OpenSource, everybody's welcome to fix bugs and add improvements.

The code and explanations (in German) can be found in the C4D Wiki:
http://wiki.c4d-jack.de/wiki/VrayProxy_Creator_(Coffee-Plugin)

Maybe somebody of you can fix it there and add some explanations. If you fix the code, please copy it into a separate section of the article, so both versions (for Vray 1.1 and Vray 1.2) are available.

Thanks & cheers,
Jack

Rich_Art
02-01-2010, 04:51 PM
I am currently completely loaded with customer work, so probably I won't find the time to fix the ProxyCreator plugin.

Hey Jack,

For us it is bad news but for you it is great news. Good to hear you have plenty of work in this economical bad weather.

Peace,
Rich_Art. :good:

3dkobi
02-05-2010, 01:43 PM
what program do I need in order to make the changes to the code ? pc intel, xp64

Peace,
Kobi

Tong
02-05-2010, 01:48 PM
attached

3dkobi
02-05-2010, 02:04 PM
I think it works, but everytime hit "render" - cinema crash with no messege...
actually, it crashes because I have proxies in my scene....you know something about that Tong ?

Peace,
Kobi

Tong
02-05-2010, 02:06 PM
some more info? file? something? i can only guess ;(

3dkobi
02-05-2010, 02:12 PM
File attached

Windows XP64 C4d 10.506

it works with 1 or 2 proxeis, with the third - it crashes...

Peace,
Kobi

3dkobi
02-05-2010, 02:14 PM
Did another check - It works for xfrog tree with 12 objects...

very strange

Peace,
Kobi

JDP
02-06-2010, 06:04 AM
Crashes for me too in C4D R11.5. It seems the object named 3 is the one causing the problem.

mort
02-07-2010, 01:44 PM
just select obj 3 ALL ploys and Triangulate them ;)
I had same problem here - the problem was not flat surface - build from a single poly
Cheers!

3dkobi
02-07-2010, 02:02 PM
Thanks, I'll try that....

Should be fixed in later versions...

Peace,
Kobi

bentreality
01-03-2011, 08:57 AM
hm... never really worked w proxies...
do we still need the proxy generator in the actual version? (1.255)
and if yes...
where can i find the newest version?

Tong
01-03-2011, 09:28 AM
no need in it.

check this video
http://www.vimeo.com/9425012