ScriptSpot

Script

gridTM Addon

By barigazy · Credited author: Branko Živković · 2014-09-23

Version
v1.2
Version requirement
2012+
Date updated
2014-09-24
Votes
4
Description


This tool will add functionality to the grid helper to mimic working pivot.
But there is more option which WP not have ...

Additional Info

Install: Simply drag&drop *.mcr in max viewport and find it in category "bgaTools" > "GridTM_Addon". This tool only work with grid helper. It creates new grid or integrate with selected grid. Also selection set "GridTM_Addon" will be created to quickly locate grid on the scene. Info: This tool provides the following options: >> Store/Load Transform of grid * Button "A" - add preset in the dropdown list * Pick some stored preset from the list to change grid transform * Button "R" - remove preset in the dropdown list >> Grid Alignement Modes * By picking some object from the scene object or grid transform will be changed according to one of two options "Align Object|Grid on Grid|Object Pivot" * Also grid can be ligned to active view or view to grid (in this case grid will be activated and Reference Coordinate System changed to #Grid) * "Place Grid On Surface" option allows you to place grid over geometry or home grid. * "Place Grid At World Center" - set grid transform at center of home grid * "Toggle Activate Grid" - activate grid on|off GridTM_Addon UI UPDATE 1.1 (requested by fajar) - added option on creation process (create grid on object in the scene using autogrid and creation at world center) - also user can create grid helper and then run this tool to add GridTM options. UPDATE 1.2 (requested by pixamoon) - added option ei. undo funcionality for "Align Grid Too View" and "Place Grid At World Center" buttons
Attachments

Tags: grid helper auto working pivot transform presets

Comments (16)

Michele71 · 2015-03-08

Hi barigazy :) I've a error in max2010 with you tool when run max:

"
>> MAXScript MacroScript Compile - C:\Users\xxx\AppData\Local\Autodesk\3dsMax\2010 - 64bit\enu\UI\usermacros\bgaTools-GridTM_Addon.mcr, offset 1491; Exception: -- Compile error: No outer local variable references permitted here: node
-- In line: if object.coun custAttributes.add node g <<
"

Line error: 39

You can fix?

barigazy · 2015-03-08

Hey Michele,
thanks for error report but I can't get this error in max2014 and 2015.
Works fine. I not have max2010 to test it. Sorry :(

re: 2010

pixamoon · 2015-03-09

hmm, It works great for me even in 2009...

thanks for the tool !

pixamoon · 2015-03-09

hmm, but maybe one suggestion...
It will be great to just to add "undo on" for buttons.
Thanks !

barigazy · 2015-03-09

You already know that this can slowdown this tool.
You can always save temp preset and delete it afterwards ;)

thanks

pixamoon · 2015-03-10

ah, thanks, I'll do that,
But is is slowing down a lot, even for one small operation ? (for eg. align grid to current view)
I'm still beginning with scripts and didn't test undo a lot.
Best,

barigazy · 2015-03-10

Ok. I updated the tool. See version 1.2

:)

pixamoon · 2015-03-10

Great, This is exactly what I was thinking about !

Thanks!

Michele71 · 2014-09-26

Nice ! Good job Man! :)

fajar · 2014-09-26

Thanks barigazy.

fajar · 2014-09-24

#2 create grid on geometry surface : is it kind of select polygon in editable polygon first n create it or by direct creation on surface ? sory bit confuse.

barigazy · 2014-09-24

No. This is same operation as autogrid

fajar · 2014-09-24

Thanks

barigazy · 2014-09-24

Another problem related to scripted plugin is that grid helper not expoze all properties. Other idea will to allow the user to choose between two creation modes:
#1 create grid at world center
#2 create grid on geometry surface

fajar · 2014-09-24

I dont know if its my system wrong or the script , look like whenever I select the gridTM , max freze for a while , nah maybe my system tho .... overall its good script, also its incredible to make it as scripted plugins, so when I create it I can use autogrid

Thanks

barigazy · 2014-09-24

Hey fajar,
I don't know what is wrong and why your max has been freezed.
I tested this on max2014 and max2015. Works fine.
This tool will probably works the same as scripted plugin. But in the next version I will add autogrid option or maybe create SP anyway :)