Tagged 'General Scripting'

Small script, works in 3ds 2012 to 2020 but error in 2024

Hi,

this script sample uses custom dot net controls from lonerobot. Whenever mouse is up on the thumbnails the script shows error. Method not found. You have to load attached dll to make it work. Can anybody help me to bypass it, pls. Its shows a method not found errorbox when mouse hovering.

(

rollout HitchHikerRollout "smallbrowser" width:240 height:270
(
dotNetControl 'HitchHiker' "Lonerobot.ui.controls.hitchhiker" pos:[0,0] width:240 height:270
on HitchHikerRollout open do
(

HitchHiker.filetype = (dotNetclass "LoneRobot.UI.Controls.HitchHiker+filetypes").jpg

3ds Max to CSV file

"Hi, is there a way to export a CSV file in 3ds Max using a script? The CSV should have two columns: '3D Object Name' and 'Material Name', listing only the file names of the selected 3D objects along with their corresponding material names." Thank you in Advance

CSV example screenshot.

FTP Download and scope...

Hi Guys, It's been a long time since i needed your help, but i'm stuck with a scope issue for my license script.

I'll Try to explain:
- I've got a mse file, with a few critical functions and a variable into.
- The script download the file into a specific folder,then i call "FileIn Thefile" and the next line is supposed to execute a function found into this file.
-If i launch max, and evaluate the script, the function is not found, but if i evaluate it a second time, the function is found and the script continue... A classic scope issue.

Here is the code:

 

Is it possible to switch on/off Macro recorder from a script?

I would like to know if it is possible to switch on/off Macro recorder from a script.
Thank you.

Removes 2 verticles splines from the multuiple EditableSpline objects

here is have script which do the job to remove 2-vertices splines from the Editable Spline objects, however I'm failed to make it work on multiple EditableSpline objects selected please help
<code>
fn deleteSplinesWithTwoVerts obj =

(

    if classof obj == Editable_Spline or isKindOf obj SplineShape then 

    (

        subObjectLevel = 1 -- switch to spline sub-object level

        

Object name to Material name

Hi, I need help creating a script. I want the script to create a Standard Legacy Scanline Material for the objects selected in the scene. The material names should match the object names, including objects that have multiple material IDs/names.

How to delete all Helpers with no Children?

Could anyone please help me delete all Point Helper objects in the scene that have no linked objects (Children)? Your assistance would be greatly appreciated. Thank you!

close, delete

close - delete

sorry for multiple posts ... my internet was lagging

close - delete

close - delete

sorry for multiple posts ... my internet was lagging

MaxScript for Unwrap UVW

Hello everyone,

I am trying to automate my UV Unwrapping - but the script is not working properly.

Background:

I have several Objects with the exact same mesh - but after manipulating these models (scaling) I want to automate the pelt-mapping of the uvs.

Since all object have a copy of the same mesh, I simply tried to apply the "edit seams" of my pelt mapping and perform a "quick-peel", but the first step "applying edit seams" does not work.

Here is what I do:

for i in selection do (
--enter Unwrap modifier
i.modifiers[#Unwrap_UVW]

-- faces subobjectLevel

Syndicate content