Tagged 'ScriptSpot How To'

How to select Knots Using Segment of Spline? Or How to convert Segment to Knots?

Please tell me

State Sets Compositor

Hello!
I record a lot of scene states for layered rendering.
How to open the compositor window through a max script and specify the path of the PSD and run the render in the PSD?

How to: Allow other users to contact you

There is a feature on ScriptSpot called the "Personal Contact Form" that when enabled allows other registered users to write you a message using a contact form on ScriptSpot. Its a great way to allow people to contact you without making your email address public.

Help need math concept for good hedge orientation

Hi,
I'm working on script for creat e strip(like Sweep tool) with tow splines constain.
but my problem is the placement of my knots on this splines for create an uniform
mesh. I using lengthInterp for placing my knots but when i have curve in my tow spline
i've bad result can you give me the good way for have a good interpolation of my knots on splineshape.

in first the script part TowSplineToMesh.ms
and the second file show the good way for me.

Tanks.

Select last create object

Hello

How can I select last create object, For example i copy new object. Or I create object from detach.
Thanks in advance

How to: Post images

Ever wanted to post images with your content to ScriptSpot? There is a link below any "Body" textbox that says "enable rich-text" which will turn on the TinyMCE rich text editor. Once that is up, click the "insert image" button to bring up a upload tool / file manager.

Help with Resizing rollout based on Subrollout "rolledUp"

Hello Guys, im working on a personal project Im trying to create a rollout with some subrollouts the idea is to resize the mainrollout based on the "RolledUp" state of the subrullouts and move the available buttons, but i ran into some issues:

How to: Post code snippets

You can post code snippets by using a bracketed code tag either [] or <>. However, due to how the code formatting works it cannot be used in conjunction with the ScriptSpot rich-text editor.

So, to post code I'll use the [ code ] tag to start the highlighter and the [ /code ] tag to end it (spaces added so it would display tag - don't use spaces).

macroScript RenameThem category:"HowTo"
(
 rollout rename_rollout "Enter New Base Name"
 (
  edittext base_name ""
  button rename_them "RENAME SELECTED OBJECTS..."
  on rename_them pressed do
  (

error "unknown property: ''filename'' is undefined!"

I have a script that converts PhisicalMaterial to MSFS2020 FlightSim material. But it gives me error "unknown property: "filename" is undefined!" in this part:

on PM pressed do
(
if (queryBox "Convert all Physical Materials to FlightSim Material ?\nNot undoable !" title:"Materials convertion" beep:false) then
(
for mat in (getClassInstances PhysicalMaterial) do --pour tous les matos
(
new_FSmat = FlightSim()
new_FSmat.basecolorTex = mat.mapM1.filename
if mat.bumpmap != undefined then new_FSmat.NormalTex = mat.bumpmap.normal_map.filename

Geometry paint Help please

Hi everyone,

This is my first post here and hope someone can help me.

I am reading the "Autodesk Official training MaxScript essential" and tried the mouse track example in the book to place my objects on a surface.

Everything works fine but I have no control over the distance between objects being placed on the surface.

I have also seen Paint cloner by andrei kletskov which is great but I can't understand his code since I am still a beginner.

Could anyone plz tell me how I can control the distance using this code I have? Thanks in advanced.

Here is the code I have: