
3dwannab
- 43 public contributions
- Member since
- Latest contribution Sep 2021
Modal set to true and dotNet controls causing crash
With this code, see at the very bottom. When the modal property of the dialog is set to true it crashes max and when it's set to false it doesn't. I believe this is something to do with the .NET buttons and the event handler. But it would…
Forum topic
4 commentsTabIndex - dotNet controls and native controls
Here is the code below where I have two native buttons and two dotNet controls. When you open this dialog up pressing tab should cycle through each button but it doesn't as they're two different types. Is there a way around this? To even…
Forum topic
1 commentHow to fit a rollout to a dotnet labels contents and show tabs correctly
My end goal here is to make a custom messagebox as I want to gain control over its position. I want to get two things figured out here. 1. How do I fit the dialog to the size of the contents like the attached maxscript messagebox.png for…
Forum topic
2 commentsCheck if the Listener Window is open
I've tried with UIAccessor but couldn't find a way to check if the Listener Window was open or not. I want to check its status and if it's not open before the execution of the script then upon closing the script it will close it again. I…
Forum topic
3 commentsCreate multiple global variables from an array
I had a situation where I needed to separate out each element of an array (in my case a Multi-dimensional array) to their own globals so I created a fn to do so. It can set the globals to undefined also. I made it work with any array type…
Forum topic
2 commentsGet the yaw and pitch of target lights and non-target lights ?
I was hoping to translate the values to yaw and pitch with no value for roll for lights that are rotated and target lights also (so the light to the lights target). I'm not having much luck and my dossing in maths class is now coming back…
Forum topic
0 commentsListView control - Error when pressing escape key with any mouse event enabled
I'm trying to find out the issue with mouse events in the listview dotnet control and pressing escape. At the bottom, is the code. If you block out all the on lv <eventname> 's, then there's no error. The only way to remove the error and…
Forum topic
7 commentsdotNet listview and checkboxes
This is a snippet of code where I want to control the checkboxes by multiple selections in the listview itself and hitting the checkbox (whether it is checked or not) to select / de-select them accordingly, trouble is when I do this it…
Forum topic
0 commentsUsing setMaxFileAssetMetadata but NOT sticking
Hi all, If I run the below code on a test file to search for a particular string in an array inside the metadata and collect the rest to a new array and then use setMaxFileAssetMetadata on the maxfile with the NewmetaArray it doesn't…
Forum topic
0 commentsPress Select All in SME.
In the SME menu, is there a way to press. Select>Select All Using: actionMan.executeAction 369891408 "40063" /* SME: Select All */ is not really what Im after as it requires the SME to be open. Basically the fn I want overall is to, select…
Forum topic
19 commentsuiAccessor.getWindowText hwnd not working
Hi, I'm trying two methods to press the default buttons of the 'V-Ray warning' dialog but neither are working. If I evaluate uiAccessor.getWindowText (dialogMonitorOps.getWindowHandle()) it returns undefined I know I can use this (But,…
Forum topic
6 commentsmessagebox position control
I assume with the majority of 3d people having a 2 monitor setup, I was wondering if it's possible to hook into the message box created and move it's position?
Forum topic
4 commentsget enabled state of actionMans
Under help for ActionMans it states here under is checked: http://help.autodesk.com/view/3DSMAX/2016/ENU/?guid=__files_GUID_D33B403… that: .isChecked : boolean : Read Contains the Checked state of the ActionItem as determined by its…
Forum topic
1 commenttheHold.Begin() not working with SME
I'm trying to grab any of the functions within a button like so: on btn_purgeSme pressed do ( if not theHold.Holding() then theHold.Begin() if querybox "Removes / Purges (in all SME views):\n\n\t- Materials\n\t- All Map types\n\t-…
Forum topic
0 commentsCollect all Materials in scenematerials subnum node
Hey, I was wondering if there's a less hard coded way of collecting all the materials that are wired into the scenematerials array such as multisubmaterial, blend, CoronaRaySwitchMtl, VRayBlendMtl and so on.. Each of these have different…
Forum topic
4 commentsCallback when SME is open and closed
I've got the callback for when SME is open from MSX help and I've tried to reverse engineer it to work when it's closed. I've never used dialogmonitorops or UIAccessor before so any help would be appreciated. Code I've got so far:…
Forum topic
5 commentsenum for Corona Renderer
I'm writing a script which involves using a post render callback that opens vfb+. Thing is if I fire up the interactive rendering it pops up using corona renderer. The developer answered: hi, can you try querying vfb_type property? Values…
Forum topic
0 commentsChange editable text for System.Windows.Forms.ComboBox
Hi, Does anyone know if its possible to change the dl.SelectedIndex = -1 to non editable text and the rest of the indexes to editable ones. I want 'Press 'Enter' to rename.mse' to be disabled and the rest to be editable text. if…
Forum topic
3 commentsSuggestions / help on Show Diffuse in Viewport Script
Hi. I 90% of the time name my maps in the diffuse slots with 'texmatnamehere_diffuse.ext' I've wrote a script below which collects the scene materials and then collects the mats with only '_diffuse' in the filename and then shows them…
Forum topic
2 commentsCount materials of each loaded .mat file
This is probably very easy but what I want is to get an array of the number of materials inside a .mat file array. What I have so far is: --array of mat files mat = #("F:\\3dwannab Maps_Corona.mat", "F:\\3dwannab Set_Corona.mat",…
Forum topic
5 commentsSend arrays to exclusionListDlg() as a parameter
How do you get the exclusionListDlg() dialog populated with an array? See attached to where I'm referring. No where in MXS help does it show if this is possible. My blind attempt: exclusionListDlg().items = #(1,2,3)
Forum topic
4 commentsMaxscript Editor (Drag tabs in order, was working before)
I had this working before only I was changing a few settings in the options of the editor and now I can't drag the tabs into whatever order. I can't find that option now. Thanks.
Forum topic
0 commentsSME: Get selected nodes (but only materials and that are not applied to scene)
if MatEditor.isOpen() != false AND maxOps.mtlDlgMode == #advanced then ( viewNode = sme.GetView (sme.activeView) view = trackViewNodes[#sme][(viewNode.name)] selNodeInterface = viewNode.getSelectedNodes() --get selected node in SME…
Forum topic
3 commentsRuntime error: array index must be positive number, got: XX
This works viewNode = sme.GetView (sme.activeView) view = trackViewNodes[#sme][(viewNode.name)] if view.numsubs > 0 do ( selNode = selView.getSelectedNodes() --get selected node theMatsNMaps = for n = 1 to view.numsubs collect…
Forum topic
0 comments