PDA

View Full Version : Export obj file from modeler in c++ plugin



vijay
11-07-2013, 09:26 PM
Hi,
I need help.
In my c++ plugin I want to export obj file to predefined path. Could you please tell me(code) how I can export obj file in my plugin to a predefined path.
--VIjay

nickdigital
11-08-2013, 08:30 AM
Does it have to be c++. Doing this via lscript would be possible.

vijay
11-09-2013, 09:46 PM
Thanks for your reply.
Is it possible to trigger this Lscript using C++ code?.
Could you share Lscript to export OBJ file with given filepath.

nickdigital
11-11-2013, 03:06 PM
Could you share Lscript to export OBJ file with given filepath.

The line of lscript that you want is in post#8 of this thread.
http://forums.newtek.com/showthread.php?122155-Exporting-OBJ-sequences-for-use-with-Trapcode-Form-2&p=1223563&viewfull=1#post1223563

vijay
11-11-2013, 10:46 PM
I think code you provided is for layout application. I need to do this in Modeler application. Could you please provide script to export obj for modeler application. I tried below code but not working. I am using newer version of LW 11.5.
DynaValue argv;
md.local = local;
md.cmderror = CSERR_NONE;
md.opsel = OPSEL_GLOBAL;

argv.type = DY_STRING;
argv.str.buf = "D:\\arrow.obj";
argv.str.bufLen = 0;

LOOKUP("ExportOBJ");
EXECUTE( 1, &argv );