By casey
#119180
I was wondering if someone could add a line of code to the MAXWell MAX plug-in to automatically determine the proper conversion ratio for MAX's units to MAXWell's units. It's really simple - in the MAX SDK, you just make one C++ call and you get back the proper floating point scale for the scene if the user has used real-world units of any kind in MAX:
Code: Select all
GetMasterScale(UNITS_METERS);
Of course it's always good to have a user-settable constant like it is currently, but it would be nice if you could just click a button that would automatically set it to this value, since it is always correct if the user has used real-world units to begin with. And also, if it defaulted to using this value, most user's scenes would "just work" and they'd never have to think about the rescaling constant.

- Casey
By casey
#119759
Someone asked me in a private message:
Since the C++ calls can be made in the SDK, can you implement this
via Maxscript?
Answer: I'm not certain. It could be that this would do it:
Code: Select all
UnitsPerMeter = 1.0 / (units.decodeValue "1m");
But I haven't tested it. It seemed to give reasonable results for my default units setup.

- Casey

We've adopted a similar outlook and stick to CPU r[…]

render engines and Maxwell

Funny, I think, that when I check CG sites they ar[…]

Hey, I guess maxwell is not going to be updates a[…]

Help with swimming pool water

Hi Choo Chee. Thanks for posting. I have used re[…]