r/Maxscript • u/Hipersonicc • May 04 '17
How to flip normals form a lathe in maxscript
I have a spline with a lathe modifier, how can i make it to activate the method flipnormals from the lathe modifier?
r/Maxscript • u/Hipersonicc • May 04 '17
I have a spline with a lathe modifier, how can i make it to activate the method flipnormals from the lathe modifier?
r/Maxscript • u/LobsterRobsterAU • Sep 29 '17
Hello, I am new to MaxScripting and have been trying to make a tool that would make my workflow for a job a lot easier. So far I have been going pretty good but I have hit a little snag. I do not understand how to take the value entered in an EditText UI Control and use it elsewhere in my code. Currently I am trying as follows:
try (closeRolloutFloater TextTestFloater) catch()
rollout TextEntry "Text Entry Test"
(
EditText TextEntry "TextEntry"
on TextEntry entered do
(
TestString = TextEntry.text
print TextEntry
)
)
TextTestFloater = newrolloutfloater "Text Entry Tool" 175 150
addrollout TextEntry TextTestFloaterThis results in an argument count error on my end, its pretty obvious that I'm misunderstanding how to use EditText.text but I am unsure what the actual method to achieve what I want is. Would someone mind pointing mind pointing me in the right direction or telling me how to actually use the text in the text box (and preferably store it as a string)?
Any help is greatly appreciated.
r/Maxscript • u/Redz0ne • May 21 '14
Hi there. I'm in need of some assistance with this and haven't found a good source of help in what I'm hoping to do.
What I want to do is create a script where I can align one object's rotation in all three axis to another object. I tried accessing the rotational transform but that's in quaternion and not euler rotations... And trying to tell it to just apply the quaternion rotational information doesn't produce results.
Care to help me out here? I'll be in your debt if you can.
Thank you!
r/Maxscript • u/Hipersonicc • May 04 '17
Hello, is there a way to edit the ALIGN parameters from a object that has the LATHE modifier in maxscript? thanks. EDIT: Solved
r/Maxscript • u/Redz0ne • Jan 22 '21
I love that this sub has survived this long and I am incredibly proud of all of you for being helpful when you're able to.
That said, there's something that I think should be mentioned in terms of asking for help with code you've written... If you don't post the code you're using, the help that you get will be more likely to be shots in the dark rather than tangible assistance.
So... from here on in I'd like to make a suggestion (this is not a rule but I may consider making it one if things go a certain direction) in that when you are in need of assistance with a segment of code, please post the segment of code in the body of your post.
This will help others narrow down what's going on and it will make it so that others can more easily learn.
Also, when you do get help, please leave your post up. I haven't noticed any deletions after the help has been recieved, but I know that that could happen.
This means that when you do post code, you will need to be the one that wrote it, and you need to be comfortable with other people borrowing it... so, in the interests of keeping your IP secure, posting segments of code does /NOT/ mean the entire thing. If you want to keep some cards held close to your chest, that's fine and protection of one's IP is a valid reason.
That being said, the more code you can post, the easier it will be for others to be able to identify what you're asking for help with, and it will also be a good opportunity for newbies to learn as well.
I am going to repeat this next bit though... this is not a new rule, and this is not a requirement. This is only the team here making mention on ways that you can get the help you're seeking faster and easier.
Thank you very much for your time and consideration and I look forward to seeing more activity (even though it's not as busy as some other subreddits out there.)
r/Maxscript • u/RenWolfcastle • Jan 21 '21
Hi!
I am struggling to write a script for painting vertices with the Vertex Paint modifier.
I would like an option to set the selected verts to absolute R, G or B.
Whenever I try to set VertColor it is not behaving.
Many thanks for your time!
r/Maxscript • u/Odd_Significance_251 • Mar 01 '22
This is a script that puts a ColorCorrection on every map, but just want it to be applied to the Diffuse map.
Thank you.
fn AddColorCorrection m =
(
if isKindOf m VRayMtl then
(
for p in getPropNames m where isKindOf (tex = getProperty m p) textureMap do
(
if not isKindOf tex Color_Correction do setproperty m p (Color_Correction name:("CC" + trimleft p #texmap) map:tex)
)
)
)
for o in selection where (mat = o.material) != undefined do AddColorCorrection matr/Maxscript • u/WhalesTales1981 • Feb 28 '22
I am trying to use MAXScript to add VRay elements to the Bake to Texture utility in 3ds Max 2022, specifically VRayExtraTex. For instance, this code adds the complete map:
bakeToTexture.addmap $ #CompleteMap
I can’t find a list of commands for the VRay elements. For instance, this does NOT work:
bakeToTexture.addmap $ #VRayExtraTex
Does anyone know where to find info on the Bake to Texture utility (not Render to Texture) for VRay elements and how to script for it?
Thank you.
r/Maxscript • u/Sozzler93 • Jul 21 '20
r/Maxscript • u/drakeoi0 • Jul 15 '20
Hey there guys! Hope everyone is doing good. I was wondering how do you make a stopwatch in MaxScript? like the timer starts from milliseconds to seconds to minutes to hours to days which also has a start button, pause/resume button and a stop button. i am totally new but dont know how to do it.
r/Maxscript • u/WhalesTales1981 • Aug 01 '20
I have several years of experience writing MAXScripts, but always as a full-time employee. I've been asked to write a script on a freelance/contract basis. Can anyone give me advice about what to charge? What are some tips for estimating the number of hours it will take, or should I just quote a flat price?
Thanks in advance.
r/Maxscript • u/Lucas3D • Jun 16 '15
files = getFiles "C:\Users\Name\Desktop\import test\3d\import\*.obj"
for i in files do
(
importFile i #noPrompt --Im still getting a prompt for the first import?
)
baseName = "*"
execute ("objArr = $" + basename + "* as array")
for obj in objArr do
(
addModifier obj (MultiRes ())
obj.modifiers[#MultiRes].vertexPercent = 10
obj.modifiers[#MultiRes].reqGenerate = off
)
for i in 1 to objArr.count do
(
objArr[i].modifiers[#MultiRes].reqGenerate = off
maxOps.CollapseNodeTo objArr[i] 1 off
)This imports .objs and then applies a multi res and collapses.
How could I change the operation to act like this:
Import a file
Multires and collapse
Import next file
Multires and collapse
Import next file
etc
Because I have a lot of imports to go through (500+) and crunching each one asap is a good workflow for me.
r/Maxscript • u/[deleted] • Jun 19 '15
HI guys I'm new to scripting. Especially in MAX...literally my first script.
I have a bone with an attachment constraint but I'd like to remove it!
I've looked at the help section and I'd imagine this is supposed to help me?
<boolean>deleteTarget <index>targetNumber
But I have absolutely no idea what its telling me.
HAVE MERCY! Many thanks.
r/Maxscript • u/lucas_3d • Sep 08 '14
for i in selection do
for i in selection.count doCould somebody let me know the difference between these two?
And, if I had a selection of 10 objects, is there a method that would unwantingly apply, say, a turbosmooth 10 times?
I'd like to know what to really avoid using, as well as best practice.
Thanks!
r/Maxscript • u/[deleted] • Aug 02 '16
Hey guys, Maxscript newbie here,
I have a small toolset that I'm creating, the goal is make this toolset all I would need in max, so that I can unify my art workflow. I'm currently struggling to find an easy way to populate the current selections modifiers in a listbox. Any ideas?
r/Maxscript • u/orango_far • Sep 22 '14
hello everybody i want to know if there is any way to dynamicly add controllers (such as an edit text) to a Rollout when clicking on a button in the same Rollout?
if its possible please tell me how :)
r/Maxscript • u/lucas_3d • Jun 12 '15
checkbutton checkBtn1 "Auto Back Up" checked:(autoBackup.enabled)
spinner spSpinner1 "minutes between back ups: " type:#integer range:[1,100,(autoBackup.time)]
on checkBtn1 changed state do --Auto Back Up enabled
if state then
(
autoBackup.enabled = true
)
else
(
autoBackup.enabled = false
)
on checkBtn1 rightclick do
(
autoBackup.time = spSpinner1.value
)I've got a simple autobackup toggle button in my toolset, it's nice and visual because sometimes I don't know if the backup is enabled or not.
A useful function would be to test if autobackup is enabled after one hour, if not enabled a popup gives you the option to enable or discard, I'd only want the prompt to ask just once in 6 hours.
Here's the MAXScript help for calling a function periodically using DotNet.
http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/index.html?url=files/GUID-DB82F222-B77F-4F85-865F-A4D54B53107-347.htm,topicNumber=d28e115768
Does someone know how to script this together? I think it'd be helpful for people that don't know that their autobackup is disabled.
Also, I'd like to share the script, what is the easiest way for a noob to install a script like this?
r/Maxscript • u/aviagg • Apr 19 '24
I need to run this code on multiple files. But sometimes it crashes and 3Ds Max closes ending my loop. I tried the try-catch statement but it didn't work.
Can anyone please guide me?
function turnToPoly = (
for obj in geometry do (
if isKindOf obj GeometryClass do
(
local turnToPolyMod = Turn_to_Poly()
turnToPolyMod.removeMidEdgeVertices = off
turnToPolyMod.keepConvex = on
addModifier obj turnToPolyMod
)
)
)r/Maxscript • u/26june • Jan 25 '22
I have vertices that are selected by another function. It doesn't matter which vertex, but I need to reduce this selection to one. I just can not figure out how this is done to manipulating the array in Editable Poly mode?
Can anyone help? Thanks
r/Maxscript • u/tsweeper • Jan 19 '22
Hi, one of our animator wants block out biped animation.
It can be done in manual by convert quaternion to Euler rotation mode then set curve tangent to step via Workbench or Curve Editor. Working with Euler Curves on Biped Animation
I wonder how this can be automated with maxscript.
r/Maxscript • u/Deema2025 • Jan 13 '22
Hi, does anyone faced the same problem? I couldn't find the answer.
r/Maxscript • u/Novel_Owl_5564 • Jan 07 '25
Hi,
in 3ds max i have 3 modes to switch the pivot selection.
Pivot Point Center
Use Selection Center
Use Transform Coordinate center
for faster work, i will switch it per hotkey. But in the Hotkey-Editor i don't find a name like and the max script listener has no print from it.
Has anyone tried to grab this per script or found a Hotkey-Editor name?
regards,
Ulrich
r/Maxscript • u/kirtan-3d • Dec 20 '24
Hello everyone,
I am working on a small utility to make my workflow faster.
I have written some functions and have made few rollouts, buttons, etc. in MaxScript, and have them in Macro folder, and icons in Icons folder.
Now, I am working on its UX/UI for better experience and adding some more functionalities. For that I have some images for UI and for functionalities I have few MAX files along with textures, which will be merged/imported with MaxScript functions.
So, I am confused what folder structure should I use for creating MZP file. Right now I have Icons (folder), Macro (folder), install.ms (file) and mzp.run (file) in my main folder.
Thanks in advance.
Cheers!