ScriptSpot

Script

Push 2

By LittleLordPotala · 2012-01-19

Version
1.4a
Version requirement
2010, 2011, 2012
Votes
6
Description

This scripted plug-in was wanted in the forum. It is like the original push modifier but with the option "Straighten Corners" of the shell modifier. You can "push in" and "push out".   -- Update V1.4a --

 

Additional Info

I finally updated to V1.1 : -Correction of the reported bug. Now if you change the topology under the "Push2": first you will have a strange result but no more crash or error message of the script, then you will just need to update manually the modifier by clicking on "Push2". I didn't find a way to automatically update without crashing Max (I have the version 2012). Update V1.2 : -Corrected the unwanted interaction with the modifiers on top of "Push2". Update V1.3 : -Convert the value into world units. -Modify the name to "Push amount" Update V1.4 : -Corrected the bug with error message when applying the modifier to a selection with multiple objects. Notice a limitation : you cannot instanciate this modifier. Update V1.4a : -Corrected a "Compile error" that was reported.
Attachments

Tags: modifier, push, Scripted plug-in, simpleMod

Comments (29)

update 2020 and 2022 are working But..

7man · 2022-09-19

Hi,
update 2020 and 2022 are working too..
But when you deselect the object after applying push2 modifier and select the object again the modifier resets and the value doesn't work. you have to delete and apply the modifier again.

3dsmax 2016

3dhippie · 2016-03-30

this script is working really well, even inside 3dsmax 2014 and 2016. I would love to have a similiar extrude modifier/function. Do you think you could write a script for that, too? You got all the math right already, so I guess it souldn't be a huge deal. If you don't have time for that, maybe you could upload push2, as a non-encrypted maxscript so I could give it a try?

Anyway thanks for this fantastic modifier.

themaxxer · 2014-11-27

how to install this? if I drag and drop and restart max it's gone...

bug

jsrocha · 2013-07-12

Hi, i use this script a lot, but sometimes when i apply the script, it appears off in the stack - see link image: http://prntscr.com/1ezs9u
do you know why it´s happening?
Thanks,

Jsrocha

Max '13

cptSwing · 2013-03-21

I'd love to try this out in Max 2013 .. but it insta-crashes, unfortunately ;)

Please, more informations...

LittleLordPotala · 2013-03-22

I tested it without problem in 3ds Max 2013 64bit PU06 English version.
Could you give more informations, please :
32 or 64 bit, product update, language, the exact operation that produces the crash...
I hope I can help you but I need you to be more precise.

Hm.

cptSwing · 2013-03-23

I tested it on some primitives and simple Editable Poly meshes just now, and it worked fine. I'll keep on using it and report back if it crashes again!

I'm using 3DS Max 2013 x64 Student Version on a Windows 7 machine by the way.

mad · 2012-02-09

its ok now, thanks!

another bug

mad · 2012-02-09

you did something wrong :) when i load the script it will show error: "compile error: no outer local variable references permitted here: theSel"

Weird, this bug...

LittleLordPotala · 2012-02-09

Sorry but I have not this compile error on Max 2012.

Try the version 1.4a (see attached file).

If other people see this bug, feel free to report it, thank you.

Attachments

bug

mad · 2012-02-08

i found a bug. if you apply push2 modifier on multiple selection it will pop up an error "unknown property: modifiers in $selection"

Updated

LittleLordPotala · 2012-02-08

Thanks for reporting this bug !
It's now corrected, I hope it'll work for you.

About the "extrude" tool in the edit_poly, I will see if something is possible.
I can not promise anything for now.

extrude

mad · 2012-02-08

it would be greaf if extrude in edit poly will work like this, can u manage that? however good job!

titane357 · 2012-01-27

Nice !!! Thank you for your update ! ;-)

This is cool, how about SHELL? =)

henriquedw · 2012-01-26

This is pretty cool, would be really nice if you could do the same for shell. I hate when the corners dont align with the rest of the polygons. what do you think?

About shell

LittleLordPotala · 2012-01-26

If you look carefully at the shell modifier, its last parameter is called "Straighten corners". I don't need to add it, it's already made !

henriquedw · 2012-01-30

Wow, I never noticed it. Thanks for that!

titane357 · 2012-01-20

Nice one ! what is exactly "scale" parameter ?

Scale parameter

LittleLordPotala · 2012-01-20

I called it "scale" instead of "push value" because it moves vertices by multiplying the calculated vectors and is finally added to the current position.
It is just the same parameter as in the original "Push" plugin with a different name.
Of course, I could rename it if you want...

titane357 · 2012-01-20

OK. In fact, it would be cool to have a "distance" instead of "scale", because in every day job it is more easy to use distances. :-)

titane357 · 2012-01-20

ooops, I mean : can you manage to calculate the real distance (display name is not the challange)

works perfectly!

harumscarum · 2012-01-20

thank you very much!
version 1.2 works fine

Second update !

LittleLordPotala · 2012-01-20

If you find other problems, feel free to post a comment.

Thank you harumscarum and lantlant for testing and reports.

lantlant · 2012-01-19

Great job! :) +vote

Thank you Lord!

harumscarum · 2012-01-19

wow! it works as single modifier! thank you very much
i can confirm - there are some issues with additional modifiers applied. in my case i need to push only edge polygons so i extrude spline without capping in order to push only edge polygons and apply CapHoles over. it works fine until i try to change scale amount in Push2 - it is affecting all polygons so i need to delete and re-apply CapHoles

thank you once again - for me it is essential modifier even how it is now ))

Updated version

LittleLordPotala · 2012-01-19

I corrected the previous bug. Harumscarum, could you try if it works for you.
I am not sure to understand what looks like your modifier stack, a screenshot would be helpful.

Best regards.

screenshot

harumscarum · 2012-01-19

here is illustration attached - problem is only when try to change scale of Push if CapHoles applied at the top of Push

Attachments

Thank you for the illustration

LittleLordPotala · 2012-01-20

It's not really a bug but just a possiblity that I didn't take in account.
This is not an extended shell or push plug-in but a simplemod where I have to write everything.

I'll try to correct it in the next version...

Best regards.