ScriptSpot home

Dimension

Downloads

Release history (2)
  • Version 1.2Listed version

    Listing updated

    Release notes

    v.1.2 - now switch between relative/absolute mode fixed

  • Version 1.1

    Release notes

    v.1.1 - added checkbox to keep proportion

Other files (3)
3ds Max compatibility
See original listing claims
Community compatibilityNo compatibility reports yet

No reports yet for the available releases.

Community reviewsNo reviews yet.

Listing details

Version
1.2
From original requirements
4 or newer
Original version requirement
3ds max 4 and higher
Author’s update date
Legacy votes
44
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

Posted by

Anubis

Panayot Karabakalov

More by this author

Scale tool coded as modifier plugin

Dimension

Setup & notes

Installation:
Put this script into your Max stdplugs\stdscripts and restart the Max.

Disadvantage:
The Garbage Collection don't like this modifier.
Recommended to collapse the modifier stack and restart the Max.

v.1.2

Update Log:
v.1.1 - added checkbox to keep proportion
v.1.2 - now switch between relative/absolute mode fixed

Usage Notes:
Such scripted modifiers are memory consumer and I prefer to omit any callbacks additions which might polish some behaviours but will make the whole solution more dirty.

Instead of future complications, just read next usage notes about 2 known cases:

1. The size of modified object is acquired once when the Dimension is added to it. And that mean any size's changes of the base object after that are not handled. Shortly, if you need to modify the base object, just temporality remove/cut the Dimension modifier and then you are done, turn/past it back on the stack.

2. When you apply the modifier as instance to many objects of varied size, and wish to work in Absolute mode, keep in mind that the XYZ values you see are the size of the first object (to which the modifier is applied to). I hope this not look too logical confusing.

Comments (31)
janci

agree with other commenters

i agree with others who commented, as a dimension plugin it should be primarly showing absolute dimensions, and rather than changing the dimension to a fixed number, it should show the current dimensions and let the user change them as needed.
otherwise great job! thanks!

rs3d

Scale each Element

Would it be possible to implement a function to scale each Element around its Pivot? So no global scale, but subobject-based scaling...

David

Excellent script, works very fine.

mustafa mamdouh

Very GOOD Script

Hope you have some time to develop it more ..

dsp_418

Dom,

apologies, I totally forgot about this post!
Maybe there's an email notification system here on script spot, if so I've to turn it on somehow.

Anyway, don't drop the script in the viewport, copy it in the scripts/Startup folder in your 3ds Max program folder.

Dom

not working in 2014

Very usefull script, but not working in Max 2014, can you have a look ?

Reply to Dom
dsp_418

It works just fine here. What's the issue?

Reply to dsp_418
Dom

not working in 2014

Nothing happens when I select the modifier, it's not in the stack.
Maybe I have made a wrong install, I have dropped the script in the Max viewport, I see the dimension modifier in the list,
but when I select it, nothing happens and the modifier do not appear in the stack-list.

milie

Hey...

Could you add the possibility to scale to system units. I mean that the modifier read the actual object bounding box size, and then you can modify further.

Thanks

Reply to milie
Panayot Karabakalov

thanks for all suggestions

As for the system units just find this 3 strings

#float

and replace them with

#worldUnits
dsp_418

Great script!
It should built-in.
Agree with rs3d, rotation and transform would be cool.

Hani Tiby

Cool

It's a cool idea Anubis, great approach.
I believe that making the dimensions dynamic would be a very big plus, so none scripters could use it in wiring or reaction manager.

rs3d

Rotation and Transform

Would be great to have Rotation and Transform as additional
functions in the Dimension Modifier. So switching off
transformations would be really easy...

harumscarum

i see

i think this was only 2012x64 issue

Reply to harumscarum
Panayot Karabakalov

ok, good to know

Its hard to help then. You can change the default type to Absolute (to see if that help somehow) by editing this line (17):

-- original code:
type type:#integer ui:rtype default:1
-- edited code:
type type:#integer ui:rtype default:2
harumscarum

weird Absolute behavior

when switch to Absolute all rollouts sets to 0.01 and object became huge!
maybe - since modifier is called Dimensions - make Absolute mode default one? so as soon this modifier is applied we see exact object dimensions and if any corrections needed - switch to Relative to transform object

Reply to harumscarum
Panayot Karabakalov

strange...

Its works fine here.
Keep in mind i tested it in Max 2009.
Now have no idea how to helps more :/

Panayot Karabakalov

updated

very quickly tested though ;)

harumscarum

checkbox woks fine! thank you!

harumscarum

yeah! thank you very much and happy new year!

Reply to harumscarum
Panayot Karabakalov

thanks

I update a bit the script, adding checkbox.
Drop a line on how it works when you test it.
Happy new year!

Panayot Karabakalov

ok, i see

You're right about switching btw Relative/Asbolute, I s'd handle this.

As for the single checkbox, that w'd limit the usage, I think, as will constrain proportion always to X.

Ok, I'll play with this staffs after the holidays.

harumscarum

regarding constrain proportion

i see it very simple. only one checkbox because object has only one proportion.
so if we have source sphere with dimensions by X,Y,Z=10cm and X changed to 15cm with "constrain proportion" enabled - Y and Z also be 15cm.

one more issue - default dimensions is Relative and it is ok, but when switch to Asbolute - object gain incorrect dimensions of 1,1,1cm

Panayot Karabakalov

Thanks everybody

@maicogir - I'm too thought once about this but seems impossible mission. This modifier can be applied to one or multiple objects, but also can be applied to sub-object selection, for instance, you can add Mesh Select and made sub-selection, and then applying Dimension on top of the stack. And the problem is... well, lets quote the help file:

You should not try to access the object being modified from within the

map

handler as this will attempt to evaluate the scripted modifier again. This will result in an infinite loop and hang 3ds Max.

@harumscarum - Hmm, at first look this sounds as minor improvement that can be done but how you imagine the work of such checkbox? There are 3 dimesions (XYZ), maybe needs 3 checkboxes? Sounds a bit messy.

harumscarum

nice script!

thank you
could you add "keep proportions" checkbox?

Maico Girardi

Great Work

Realy nice script!
I have one tip... would be wonderful if the function "relative" reads the actual size (x,y,z)of the object, and you could change this numbers accordly.

lantlant

useful script