feature requests

Discussion related to the exporter plugin for Autodesk 3ds Max.

Moderators: Ratow, hedphelym, coordinators

Re: feature requests

Postby losbellos » Fri Apr 02, 2010 6:53 am

don't want to interfere with your work, but these things can be done in minutes in maxscript. I would only write the geometry export in c++ the rest is just a blink in maxscript too.

interestingly in maxscript there is no direct file dialog as well.. to open a file, first press a button then call "getOpenFileName" command. Its a bit funny. Maybe this is case in the sdk too...
losbellos
 
Posts: 783
Joined: Wed Jun 24, 2009 4:59 am

Re: feature requests

Postby hedphelym » Fri Apr 02, 2010 7:26 am

yeah, I know about Maxscript being powerfull - I use that at work for all our in house tools (about 3000 lines of code now).

Please don't stop your development in maxscript - this will be useful either way.
Partly why I picked up the c++ code was because the skeleton and many functions where already done.
And I want to learn more about c++.

You should also check out the script files for materials etc that is in the source dir for the plugin,
they can save you a lot of time :)
User avatar
hedphelym
Developer
 
Posts: 792
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: feature requests

Postby losbellos » Fri Apr 02, 2010 8:32 am

No way that I stop.
I will get the visual studio and then will see.

I rewrite everything. I don't stop until the code runs on maximum speed! ;)
losbellos
 
Posts: 783
Joined: Wed Jun 24, 2009 4:59 am

Re: feature requests

Postby hedphelym » Fri Apr 02, 2010 1:02 pm

The biggest problem I have now is that I cannot add button and make it do stuff.
This is in the "switch" statement in the LuxMaxDialog.cpp.

I use the same code as with the previous button, but switch statement always triggers at the same place
no matter what button i press in the GUI..

See comment:

Code: Select all
static INT_PTR CALLBACK LuxMaxOutputParamDlgProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
{
   Interface* ip2 = GetCOREInterface7();
   LuxMaxParamDlg *dlg = DLGetWindowLongPtr<LuxMaxParamDlg*>(hWnd);
   switch (msg)
   {
      

      case WM_INITDIALOG:
         {
         dlg = (LuxMaxParamDlg*)lParam;
         DLSetWindowLongPtr(hWnd, lParam);
         }
         break;

      case WM_LBUTTONUP:
         dlg->renderparam->RollupMouseMessage(hWnd,msg,wParam,lParam);
         
         break;

      case WM_COMMAND:
      
      
      case IDC_LXSOUTPUT_BUTTON:
         //It jumps into here even if I press another button that should be catced below.... ARGH
if (dlg->FileBrowse())
         {
            SetDlgItemText(hWnd, IDC_LXSOUTPUT, dlg->workFileName.data());
         ip2->FileOpen();
         }
         break;
         
         //This is the new button I created in GUI - it should jump here when pressed, but it gets catched above all the time instead.
      case IDC_BUTTON_ENV_BROWSE:
         {
            ip2->FileOpen();
            
         }
         break;

       default:
         {
         
         }
         break;

      case CC_SPINNER_CHANGE:   
      {
      }
      break;
   } 
   if (dlg)
      return dlg->WndProc(hWnd,msg,wParam,lParam);
   else
      return FALSE;
}

User avatar
hedphelym
Developer
 
Posts: 792
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: feature requests

Postby losbellos » Fri Apr 02, 2010 3:41 pm

In my opinion, You dont have the same data variable assignment as above. I think you are missing something in your last case, Just do something with this button. I dont understand completly.
losbellos
 
Posts: 783
Joined: Wed Jun 24, 2009 4:59 am

Re: feature requests

Postby losbellos » Fri Apr 02, 2010 3:51 pm

Visual Studio 2008 is free, is that what you use, that other one is available for 30 days trial only.
losbellos
 
Posts: 783
Joined: Wed Jun 24, 2009 4:59 am

Re: feature requests

Postby hedphelym » Fri Apr 02, 2010 3:56 pm

I use the "full" version.
(not express version).
User avatar
hedphelym
Developer
 
Posts: 792
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: feature requests

Postby losbellos » Sat Apr 03, 2010 5:16 am

which version of 3dsmax + sdk you have? And the studio is sp1?
I guess in 30 days we could put together a function which can be called from maxscript.

BTW did you know that you can compile from within maxscrip as well to create functions in c++?
Incredible stuff
losbellos
 
Posts: 783
Joined: Wed Jun 24, 2009 4:59 am

Re: feature requests

Postby hedphelym » Sat Apr 03, 2010 8:00 am

3dsmax 2010 sp1 - x64 and x32

I knew one can make functions in c++ and call then via maxscript .net, but I've never tried it.

I'm stuck at this point - because of the button issue I'm having.
I'll try and PM the guy who made it originally and see if he has time to help a bit.
As soon as the button issue is sorted then I'll move forward much faster.
User avatar
hedphelym
Developer
 
Posts: 792
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: feature requests

Postby losbellos » Sat Apr 03, 2010 8:18 am

so, then how you manage to create plugins for all versions of max? There is an option like that?
losbellos
 
Posts: 783
Joined: Wed Jun 24, 2009 4:59 am

PreviousNext

Return to LuxMax (Autodesk 3Ds Max Exporter)

Who is online

Users browsing this forum: No registered users and 0 guests