Page 1 of 2
Pymaxwell 4 : questions
Posted: Wed Oct 11, 2017 5:32 am
by seghier
Hello
Read and save old mxs version
in pymaxwell help >> cmaxwell >> getRenderParameter/setRenderParameter:
'MAXWELL ENGINE VERSION': (str) -> Version of Maxwell used to save scene
the script read mxs created with v3 but print the version : 4.1.1.1
and crash when i tried to save mxs to v3
Export to object
how i can load and export mxs to obj ?
---------------------------------
this is error in the help :

Re: Pymaxwell 4 : questions
Posted: Wed Oct 11, 2017 11:08 am
by Brany
'MAXWELL ENGINE VERSION' is a new parameter in maxwell 4, so maxwell 3 scenes (MXS files) has no such as version number stored. That's why you see 4.1.1.1 in old scenes, is the default value (the current SDK version used to read that MXS). I see that it can be confusing, we will try to fix this so < 4.0 scenes return values that makes sense (maybe just 3.0.0.0).
Regarding using 'MAXWELL ENGINE VERSION' in setRenderParameter, this parameter is not intended to be wrote by the SDK user, is only for internal use. 4.x SDK is not able to write 3.x scenes. x.y.z.w SDK only writes x.y.z.w scenes, e.g. 4.1.1.1 SDK only writes 4.1.1.1 MXS scenes. I will try to change the behaviour of setRenderParameter so if will fail if the SDK user tries to write 'MAXWELL ENGINE VERSION'.
Our SDK doesn't have functionality to export MXS to OBJ files. You have to find a python package to fill and write OBJs, and convert from our scene format to OBJ by yourself. Anyway, we can do that for maxwell 4.2
CmaxwellMaterial help text string fixed, thanks!
Thanks for all your feedback Seghier, it is really useful.
Re: Pymaxwell 4 : questions
Posted: Wed Oct 11, 2017 11:40 am
by seghier
thanks Brany

i wait for version 4 and i hope you add option to convert mxs to object ; it will be useful to convert from obj to other 3d formats and maybe to view lowres version of the scene.
pymaxwell can read all informations in the scene and print them ; is it possible to read all these informations and than with a script remove the new features and export to mxs v3 or maybe to obj than to mxs ? i see many users still use v3 and a tool to convert scenes will be useful or directly from studio : save as v3 and that will encourage V3 users to buy or upgrade to V4
Re: Pymaxwell 4 : questions
Posted: Wed Oct 11, 2017 3:22 pm
by Brany
Sorry, but save old version of the scene from a newer SDK requires a lot of work, we cannot spend resources to something like that.
Re: Pymaxwell 4 : questions
Posted: Wed Oct 11, 2017 3:44 pm
by seghier
thanks Brany
personally i prefer V4 but i see people want that
Re: Pymaxwell 4 : questions
Posted: Mon Oct 16, 2017 11:30 am
by seghier
Hello
when i add camera with pymaxwell how i can lock it ?
Re: Pymaxwell 4 : questions
Posted: Mon Oct 16, 2017 1:34 pm
by Brany
You can't, sorry. It is a Studio-only feature. If you think that it can be useful we can add this to our TODO list.
Re: Pymaxwell 4 : questions
Posted: Mon Oct 16, 2017 1:44 pm
by seghier
thanks Brany
yes it is very useful ; when i add many cameras i accidentally rotate or zoom one of them and need to export again
Re: Pymaxwell 4 : questions
Posted: Tue Oct 17, 2017 2:57 pm
by seghier
Hi
is the sdk include options to add console and render preview ?
Re: Pymaxwell 4 : questions
Posted: Tue Oct 17, 2017 6:37 pm
by seghier
I don't remember where i read about creating maxwell plugin or extension to use inside studio.
I see in studio there is python name under layout (right click on the window) but it show an empty menu.
If that possible how these plugins or extensions can created : with python or c++?
http://support.nextlimit.com/display/ma ... Extensions
Re: Pymaxwell 4 : questions
Posted: Wed Oct 18, 2017 10:43 am
by seghier
what i hope create is plugin can find the sun position based on hdr image ; i add request about that in whishlist forum
i can do that using a useful tool called floaty to load images above any application ; but it take time and i don't have the power to create a script to calculate sun position from spherical view to flat view or vice versa.
some new features in studio will help without need scripts or plugins; like sceen mapping of the sky in the viewport + an option to add grid to viewport and other window to show the hdr image with a grid .
is plugin like that or a script possible to create and work with studio or not ?
video :
http://sendvid.com/08tf0o59
Re: Pymaxwell 4 : questions
Posted: Wed Oct 18, 2017 12:48 pm
by Brany
Sorry, we don't have a SDK for Studio, so no plug-ins can be made externally. The "extensions" are plug-ins for the render, you can create new cameras, procedural textures, procedural geometry, new type of skys, etc, but only for rendering purposes. I am not sure why do you need to find the sun position in a HDR image, but maybe a "sky extension" can do that in case you want to place a physical sun over a HDR image.
Re: Pymaxwell 4 : questions
Posted: Wed Oct 18, 2017 1:01 pm
by seghier
thanks Brany
the sun position give the right lighting and shadows when use hdr with 'active sky' as illumination ; i see a plugin for vray in 3dsmax do that and create sun lighting.
and it is useful for exterior and interior scene
Re: Pymaxwell 4 : questions
Posted: Wed Oct 18, 2017 2:09 pm
by seghier
Brany wrote: ↑Wed Oct 18, 2017 12:48 pm
but maybe a "sky extension" can do that in case you want to place a physical sun over a HDR image.
this will be great ; i hope see it in studio soon

Re: Pymaxwell 4 : questions
Posted: Fri Oct 20, 2017 10:58 am
by Brany
If you want to try, the C++ SDK gives you the interface to build your own extensions
