Tagged 'General Scripting' http://www.scriptspot.com/taxonomy/term/16/0/feed en Floating Smoothing Group Menu For Mesh Objects http://www.scriptspot.com/forums/3ds-max/general-scripting/floating-smoothing-group-menu-for-mesh-objects <p>Hello,</p> <p>Is it even possible to have a floating smoothing group menu that works for Editable Mesh Objects? I know poly is generally the king of smoothing, but I was hoping someone had discovered a way to get a nice floating Smoothing groups menu that works on Editable Mesh Objects.</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/floating-smoothing-group-menu-for-mesh-objects#comments General Scripting Mon, 25 Mar 2024 15:51:41 +0000 Matt_K_Man 24544 at http://www.scriptspot.com Vertex Color Swapper http://www.scriptspot.com/forums/3ds-max/general-scripting/vertex-color-swapper <p>Hi, Does anyone know of a script that will swap vertex colors?<br /> I used one years ago, but can't seem to find it.</p> <p>I would need to do for example:<br /> swap what is currently blue to green, green to red, or dropdown combinations to pick from...blue to red etc.</p> <p>I need to swap all current colors..currently i have meshes with Black being base color, Red, Green, Blue.</p> <p>thx</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/vertex-color-swapper#comments General Scripting Fri, 22 Mar 2024 15:16:59 +0000 airbrush 24533 at http://www.scriptspot.com How to make a script “batch friendly” http://www.scriptspot.com/forums/3ds-max/general-scripting/how-to-make-a-script-batch-friendly <p>Hello fellow members of scriptspot. I use BatchIT by Paul Neale for batch processing max files, I enjoy using it, and highly recommend it. I have a question, as it appears to be an entirely different beast to prepare or format scripts to be used in a batch process. My question, for the most part is this: How would one go about making a script that will search for a given object and then if not found continue the search for the next object, so on and so forth, and then finally delete any of the found objects.</p> <p><a href="http://www.scriptspot.com/forums/3ds-max/general-scripting/how-to-make-a-script-batch-friendly" target="_blank">read more</a></p> http://www.scriptspot.com/forums/3ds-max/general-scripting/how-to-make-a-script-batch-friendly#comments General Scripting Thu, 14 Mar 2024 07:27:08 +0000 Matt_K_Man 24532 at http://www.scriptspot.com MatchEvaluator http://www.scriptspot.com/forums/3ds-max/general-scripting/matchevaluator <p>Hi,</p> <p>Is there a way in MAXScript to use a MatchEvaluator which can be a parameter of the dotnet method Replace (from a dotnetobject/dotnetclass "System.Text.RegularExpressions.Regex")?</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/matchevaluator#comments General Scripting Mon, 19 Feb 2024 15:45:49 +0000 Rodman 24516 at http://www.scriptspot.com Remove QuadMenu items with the MaxScript http://www.scriptspot.com/forums/3ds-max/general-scripting/remove-quadmenu-items-with-the-maxscript <p>There are two Corona items in the QuadMenu permanently - once removed it coming back on next 3ds Max start. </p> <p>actionMan.executeAction 572340868 "7" -- Chaos Corona: Open Corona Converter<br /> actionMan.executeAction 572340868 "6" -- Chaos Corona: Open Corona Proxy Exporter</p> <p>Is there any way to have .ms in the scripts/statrup folder to remove both items from the QuadMenu on 3ds Max start?</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/remove-quadmenu-items-with-the-maxscript#comments General Scripting Sun, 04 Feb 2024 09:57:42 +0000 harumscarum 24506 at http://www.scriptspot.com character cycle foreward http://www.scriptspot.com/forums/3ds-max/general-scripting/character-cycle-foreward <p>Hi. I am not scripter just writing some lines for easing walk and run cycles forward.</p> <p> why to use: 3ds max save load animation sucks at load relative animation for linked object! how to use it: first run the script vcn4.ms from maxscript. then follow the following!: </p> <p>Let's say you've done a cycle of walking or running. (not in place trademill style! moving forward)<br /> in the script window you can see 6 steps<br /> 1- pick controls: pick corresponding controller =&gt; click button =&gt; click control</p> <p><a href="http://www.scriptspot.com/forums/3ds-max/general-scripting/character-cycle-foreward" target="_blank">read more</a></p> http://www.scriptspot.com/forums/3ds-max/general-scripting/character-cycle-foreward#comments General Scripting Mon, 31 Jul 2023 08:20:02 +0000 HamedAnimo 24414 at http://www.scriptspot.com TV screen object http://www.scriptspot.com/forums/3ds-max/general-scripting/tv-screen-object <p>Hello.<br /> I need a script that would create a new object, the screen based on the size of the diagonal and the thickness of the frame and depth of the object, the ratio of 16x9 or 16:10. or 4:3.<br /> For example, I enter a diagonal of 55" and a frame of 1cm and a depth of 4cm.<br /> And the script creates a rectangle 1218mm x 685mm, adds 1cm thickness to it and adds 4cm volume.<br /> How can this be done?</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/tv-screen-object#comments General Scripting Mon, 27 Nov 2023 08:23:39 +0000 locb 24468 at http://www.scriptspot.com Make unique object group from multiple Array http://www.scriptspot.com/forums/3ds-max/general-scripting/make-unique-object-group-from-multiple-array <p>Hi All<br /> How to create a unique group of objects from multiple arrays?<br /> This is an example of a known array of layers</p> <div class="geshifilter"> <pre class="maxscript geshifilter-maxscript" style="font-family:monospace;"> layer1 = #<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Sphere001&quot;</span>,<span style="color: #ff0000;">&quot;Sphere002&quot;</span>,<span style="color: #ff0000;">&quot;Sphere003&quot;</span><span style="color: #66cc66;">&#41;</span> layer2 = #<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Box001&quot;</span>,<span style="color: #ff0000;">&quot;Box002&quot;</span>,<span style="color: #ff0000;">&quot;Box003&quot;</span><span style="color: #66cc66;">&#41;</span> layer3 = #<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Tube001&quot;</span>,<span style="color: #ff0000;">&quot;Tube002&quot;</span>,<span style="color: #ff0000;">&quot;Tube003&quot;</span><span style="color: #66cc66;">&#41;</span></pre></div> <p>then I used the loop method like this with the results I wanted</p> <div class="geshifilter"> <pre class="maxscript geshifilter-maxscript" style="font-family:monospace;">ObjectGroup= #<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">for</span> i=1 to layer1.count <span style="color: #b1b100;">do</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #b1b100;">for</span> x=1 to layer2.count <span style="color: #b1b100;">do</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #b1b100;">for</span> y=1 to layer3.count <span style="color: #b1b100;">do</span> <span style="color: #66cc66;">&#40;</span> groups = #<span style="color: #66cc66;">&#40;</span>layer1<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>, layer2<span style="color: #66cc66;">&#91;</span>x<span style="color: #66cc66;">&#93;</span>, layer3<span style="color: #66cc66;">&#91;</span>y<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> ObjectGroup += #<span style="color: #66cc66;">&#40;</span>groups<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span></pre></div> <p><a href="http://www.scriptspot.com/forums/3ds-max/general-scripting/make-unique-object-group-from-multiple-array" target="_blank">read more</a></p> http://www.scriptspot.com/forums/3ds-max/general-scripting/make-unique-object-group-from-multiple-array#comments General Scripting Tue, 12 Dec 2023 09:32:13 +0000 draging 24476 at http://www.scriptspot.com Unable to convert: BitMap to type TextureMap http://www.scriptspot.com/forums/3ds-max/general-scripting/unable-to-convert-bitmap-to-type-texturemap-0 <p>Hi all.<br /> How to convert BitMap to type: TextureMap ?</p> <p>--------------------------------------------------------------------<br /> displaceBitmapStr = getBitmapOpenFileName caption:"Select displace image file" filename:locDir types:"All|*.*|"</p> <p> renderWidth = displaceBitmap.width<br /> renderHeight = displaceBitmap.height</p> <p> displaceBitMap = bitmap renderWidth renderHeight filename:displaceBitmapStr</p> <p> displaceTextureMap = bitmaptexture.displaceBitMap<br /> --------------------------------------------------------------------</p> <p><a href="http://www.scriptspot.com/forums/3ds-max/general-scripting/unable-to-convert-bitmap-to-type-texturemap-0" target="_blank">read more</a></p> http://www.scriptspot.com/forums/3ds-max/general-scripting/unable-to-convert-bitmap-to-type-texturemap-0#comments General Scripting Sat, 02 Dec 2023 21:02:18 +0000 Any 24471 at http://www.scriptspot.com Camera rename http://www.scriptspot.com/forums/3ds-max/general-scripting/camera-rename <p>Hi all.</p> <p>I haven’t used Maxscript in my work for a long time, I forgot a lot...<br /> There is a camera in the scene. It is known that the camera class is Freecamera. I want to rename it using a script.</p> <p>But that doesn't happen</p> <p>\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\<br /> for v in geometry do (<br /> if (classof v == Freecamera) then<br /> (<br /> select v<br /> $.name = "Camera"<br /> )<br /> )<br /> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p> http://www.scriptspot.com/forums/3ds-max/general-scripting/camera-rename#comments General Scripting Wed, 22 Nov 2023 11:53:53 +0000 Any 24464 at http://www.scriptspot.com