Tagged 'General Scripting' http://www.scriptspot.com/taxonomy/term/16/0/feed en scripted simpleManipulator plugin displaing mesh http://www.scriptspot.com/forums/3ds-max/general-scripting/scripted-simplemanipulator-plugin-displaing-mesh <p>I have a simpleManipulator plugin which looks like this:</p> <p>plugin simpleManipulator myManipulator<br /> ...<br /> (<br /> ...</p> <p> on updateGizmos do(<br /> this.clearGizmos()<br /> m=(createInstance plane length:length width:width).mesh<br /> this.addGizmoMesh m 0 [0,1,0] (colorMan.getColor #manipulatorsSelected)<br /> )<br /> )</p> <p>It works fine but I want to replace the plane by a diferent mesh. I have arays for vertices v and faces f but just replacing </p> <p>plane length:length width:width</p> <p>by</p> <p>mesh verts:v faces:f</p> <p>doesn't work.</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/scripted-simplemanipulator-plugin-displaing-mesh#comments General Scripting Sun, 03 May 2026 15:49:40 +0000 gtafan 24780 at http://www.scriptspot.com A dynamically rebuilding Custom Attribute UI http://www.scriptspot.com/forums/3ds-max/general-scripting/a-dynamically-rebuilding-custom-attribute-ui <p>Hi,</p> <p>I am trying to build a dynamically rebuilding Custom Attribute UI in MAXScript, similar to how the standard Array modifier works.</p> <p>More specifically, I want behavior like the Distribution rollout in Array: when the top dropdown changes, the whole visible set of controls below it changes immediately, the rollout height updates, and the rollouts below move accordingly — without leaving an empty vertical area, and without looking like a visibly nested subrollout.<br /> I attached an example of the 3ds Max Array modifier UI showing the desired behavior.</p> <p><a href="http://www.scriptspot.com/forums/3ds-max/general-scripting/a-dynamically-rebuilding-custom-attribute-ui" target="_blank">read more</a></p> http://www.scriptspot.com/forums/3ds-max/general-scripting/a-dynamically-rebuilding-custom-attribute-ui#comments General Scripting Mon, 20 Apr 2026 07:37:55 +0000 Vadim Vdovenko 24767 at http://www.scriptspot.com 2 object Normals http://www.scriptspot.com/forums/3ds-max/general-scripting/2-object-normals <p>Hi Everyone </p> <p>I have a question regarding normals for 2 selected object...</p> <p>I have 2 objects selected with<br /> modPanel.addModToSelection (Edit_Normals ()) ui:on</p> <p>With all Normals selected for both objects now i want to have unify activated<br /> and Unify/Break to Avrage box checked how can i go about doing this for 2 selected objects at once</p> <p>I tried this but get an error<br /> $.modifiers[#Edit_Normals].EditNormalsMod.Unify node:$Box toAverage:on<br /> $.modifiers[#Edit_Normals].EditNormalsMod.Unify node:$Box1 toAverage:on</p> <p>thanks in advance</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/2-object-normals#comments General Scripting Wed, 28 Jan 2026 06:20:03 +0000 Mrjacks2o 24750 at http://www.scriptspot.com UVW Map - FIT http://www.scriptspot.com/forums/3ds-max/general-scripting/uvw-map-fit <p>Hi everyone.</p> <p>curious how to activate "Fit" in UVW Map</p> <p>so far I have this script next line i want it to activate "Fit"<br /> ----------------------------<br /> for obj in selection do addModifier obj (uvwMap maptype:0)<br /> $.modifiers[#UVW_Map].axis = 1<br /> -----------------------------</p> <p>thank you in advance</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/uvw-map-fit#comments General Scripting Wed, 15 Oct 2025 08:40:53 +0000 Mrjacks2o 24736 at http://www.scriptspot.com ... http://www.scriptspot.com/forums/3ds-max/general-scripting-3 <p>...</p> http://www.scriptspot.com/forums/3ds-max/general-scripting-3#comments General Scripting Tue, 10 Sep 2013 20:57:29 +0000 Hypno 10449 at http://www.scriptspot.com Detach http://www.scriptspot.com/forums/3ds-max/general-scripting/detach <p>Hi have a question<br /> how can i use a script to detach a polygon and give it a unique name?</p> <p>thank you</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/detach#comments General Scripting Thu, 04 Sep 2025 05:37:55 +0000 Mrjacks2o 24726 at http://www.scriptspot.com addmodifier$ (unwrap_UVW() http://www.scriptspot.com/forums/3ds-max/general-scripting/addmodifier-unwrap-uvw-0 <p>Hi </p> <p>having some issues with this script if someone can help me would appreciate it </p> <p>this is the example it is showing in max..<br /> .normalMap normalList spacing normalize layOutType rotateClusters alignWidth </p> <p>Layout type Back/Front<br /> spacing 0.001<br /> rotatecluster off </p> <p>i came up with this script but cant get it to work.</p> <p>$.modifiers[#Unwrap_UVW].normalMap spacing:0.001 normalize layOutType:Back/Front rotateClusters:off alignWidth:on</p> <p>thank you</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/addmodifier-unwrap-uvw-0#comments General Scripting Thu, 04 Sep 2025 05:38:32 +0000 Mrjacks2o 24727 at http://www.scriptspot.com Pipeline Survey - Chance to steer the future of open-source pipeline tools AND win amazing rewards! http://www.scriptspot.com/forums/3ds-max/general-scripting/pipeline-survey-chance-to-steer-the-future-of-open-source-pipeline-tools-and-win-amazin <p>Hi everyone,</p> <p>I am running a quick survey about pipelines in VFX and games. It takes around 2 minutes and comes with a chance to win some great rewards worth over $1500 from our amazing sponsors.</p> <p>If you’ve ever worked with pipelines, I’d love your input.</p> <p>Check out the details (and the rewards) here:<br /> <a href="https://tik-manager.com/pipeline-survey/" title="https://tik-manager.com/pipeline-survey/">https://tik-manager.com/pipeline-survey/</a></p> http://www.scriptspot.com/forums/3ds-max/general-scripting/pipeline-survey-chance-to-steer-the-future-of-open-source-pipeline-tools-and-win-amazin#comments General Scripting Sun, 13 Jul 2025 09:33:52 +0000 masquerade 24712 at http://www.scriptspot.com Is everything alright with the site and its owner? http://www.scriptspot.com/forums/3ds-max/general-scripting/is-everything-alright-with-the-site-and-its-owner <p>Lately it seems to have more issues. Had error pages for every link recently, searching by tag occasionally displayed unformatted page, people claim registration and password reminder doesn't work at all.<br /> I just hope it's not the beginning of the end.</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/is-everything-alright-with-the-site-and-its-owner#comments General Scripting Sun, 18 May 2025 04:46:34 +0000 dimwalker 24701 at http://www.scriptspot.com The Editable_Spline script consumes all available RAM - any help would be greatly appreciated http://www.scriptspot.com/forums/3ds-max/general-scripting/the-editable-spline-script-consumes-all-available-ram-any-help-would-be-greatly-appreci <p>I'm using this code to remove all spline segments outside a certain object; however, on complex splines, it consumes all available RAM immediately and crashes 3ds Max.<br /> Is there any way to make it significantly faster and less memory-intensive?<br /> Appreciated in advance</p> <div class="geshifilter"> <pre class="maxscript geshifilter-maxscript" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span> fn getMeshBoundingBox2D obj = <span style="color: #66cc66;">&#40;</span> local bbMin = <span style="color: #66cc66;">&#91;</span>1e9,1e9,0<span style="color: #66cc66;">&#93;</span> local bbMax = <span style="color: #66cc66;">&#91;</span>-1e9,-1e9,0<span style="color: #66cc66;">&#93;</span> &nbsp; local t = obj.transform local vCount = getNumVerts obj <span style="color: #b1b100;">for</span> i = 1 to vCount <span style="color: #b1b100;">do</span> <span style="color: #66cc66;">&#40;</span> local p = getVert obj i <span style="color: #66cc66;">*</span> t bbMin.x = amin bbMin.x p.x</pre></div> <p><a href="http://www.scriptspot.com/forums/3ds-max/general-scripting/the-editable-spline-script-consumes-all-available-ram-any-help-would-be-greatly-appreci" target="_blank">read more</a></p> http://www.scriptspot.com/forums/3ds-max/general-scripting/the-editable-spline-script-consumes-all-available-ram-any-help-would-be-greatly-appreci#comments General Scripting Tue, 13 May 2025 06:40:04 +0000 harumscarum 24698 at http://www.scriptspot.com