Tagged 'General Scripting'

Append exclusionListDlg

Hi all,

I try to understand how to append exclusionListDlg but I did get it.

Exxample :

a = selection as array
exclusionListDlg(a)

But it doesn't work. I try to find on google but no result.

Do you have an Idea ?

Thx ;-)

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 be a great help if someone knew how to fix this to get the dialog as a modal one without it crashing.

Having the buttons here in a `FlowLayoutPanel` is required here as the main script I'm writing requires the buttons to get their invisible property turned on or off.

The 3dsMax version I'm using is 2020.

 

How 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 this dialog?
2. Is it possible to have the \t characters line up like the messagebox also?

Here's the label inside a basic rollout.

clearlistener()
 
(
  try destroyDialog rolloutName catch()
 
  rollout rolloutName "rolloutName" (
 
   dotNetControl lbl_msg "Label"  --width:(rolloutName.width-20) height:100

Check 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 can close the dialog fine with the code below but it's checking if it's open where the problem is.

UIAccessor.CloseDialog (windows.getchildhwnd 0 "MAXScript Listener")[1]

Break all spline knots

Hi Guys,

What I'm looking to do seems like it should be very straight forward but having done multiple searches over the last week I cannot seem to find an answer.

In short all I'm trying to do is break all thespline knots of a selected spline. This would be for an Editable spline modifier.

Basically create a circle spline, add an editable spline modifier, select all knots, break knots, exit subobject mode.

Any help would be most appreciated.

Thanks

Break all spline knots

Hi Guys,

What I'm looking to do seems like it should be very straight forward but having done multiple searches over the last week I cannot seem to find an answer.

In short all I'm trying to do is break all thespline knots of a selected spline. This would be for an Editable spline modifier.

Basically create a circle spline, add an editable spline modifier, select all knots, break knots, exit subobject mode.

Any help would be most appreciated.

Thanks

Break all spline knots

Hi Guys,

What I'm looking to do seems like it should be very straight forward but having done multiple searches over the last week I cannot seem to find an answer.

In short all I'm trying to do is break all thespline knots of a selected spline. This would be for an Editable spline modifier.

Basically create a circle spline, add an editable spline modifier, select all knots, break knots, exit subobject mode.

Any help would be most appreciated.

Thanks

VRay_Matte_ShadowColor in V-Ray 5.0 (NEXT)

I have a script that changes some of the V-Ray Object Properties to the ones I need. For V-Ray 3.40, it works as it should. But when I tried to use it for V-Ray NEXT, I ran into the fact that this line does not assign the desired color to the shadow. I can't find any documentation for the new V-Ray. Who can tell in what format the color should be recorded?

setUserProp $ "VRay_Matte_ShadowColor" ([128.0, 128.0, 128.0] / 255.0)

The rest of the lines that affect the values of true or false are processed as before:

For example:

Rotate a chain bones to 0 coordsys world

Please help me =(. I need a simple script to make a chain bones restore to zero rotation, no need whit Freeze Transform.

Shapemerge

Hi,

I wanted to make a little script to use Shapemerge but...
In manual it is written :
"ShapeMerge compound objects are not constructable by MAXScript."
so I use :
macros.run "Objects Compounds" "ShapeMerge"
ShapeMerge Operation_Type:1 Remove_Interior_Exterior:0 Output_Sub_Mesh_Selection:0

but how can I add shapes to THIS ShapeMerge ? I don't find.
Thanks for help :-)

Syndicate content