Tagged 'General Scripting'

Pipeline Survey - Chance to steer the future of open-source pipeline tools AND win amazing rewards!

Hi everyone,

I am running a quick survey about pipelines in VFX and games. It takes around 2 minutes and comes with a chance to win some great rewards worth over $1500 from our amazing sponsors.

If you’ve ever worked with pipelines, I’d love your input.

Check out the details (and the rewards) here:
https://tik-manager.com/pipeline-survey/

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.

Is everything alright with the site and its owner?

Lately it seems to have more issues. Had error pages for every link recently, searching by tag occasionally displayed unformatted page, people claim registration and password reminder doesn't work at all.
I just hope it's not the beginning of the end.

The Editable_Spline script consumes all available RAM - any help would be greatly appreciated

I'm using this code to remove all spline segments outside a certain object; however, on complex splines, it consumes all available RAM immediately and crashes 3ds Max.
Is there any way to make it significantly faster and less memory-intensive?
Appreciated in advance

(
    fn getMeshBoundingBox2D obj =
    (
        local bbMin = [1e9,1e9,0]
        local bbMax = [-1e9,-1e9,0]
 
        local t = obj.transform
        local vCount = getNumVerts obj
        for i = 1 to vCount do (
            local p = getVert obj i * t
            bbMin.x = amin bbMin.x p.x

Dialog Positions

Hey guys,

I am trying to write a script for a rollout/createDialog, that docks to the rendering dialog box.
So that poeple can select presets and other tools before hitting render.

My idea was to create a callback for when the render dialog is opened and then run the rollout script, which would find the position of the render dialog and position itself next to it.

I found this, but it seems to only work for MS dialogs.

GetDialogPos

Does anyone know how to do this?

Thanks

How to use C# to get the parameters of the Tiles procedural texture?

How to use C# to get the parameters of the Tiles procedural texture?

case "Tiles":
 
     Debug.Print($"======{texType}======");
 
     Debug.Print($"{tex.ClassName(false)} has {tex.NumParamBlocks} params");
 
 

print message:

======Tiles======
Tiles has 0 params

Detaching faces and deleting doubled ones if exist

I'm looking for a way to programmatically delete certain piece of geometry based on another object or selection. It's hard for me to explain, so please, consider having a following situation.

Consider having complex object, let's say 'Object001' -> a Teapot.

Then cloning the object to -> 'Object002' and attaching the object to back to the 'Object001', so basically, the original 'Object001' will have each face doubled.

Distance along the Z axis from the selected object

Hello everyone! I don't understand scripts. Please help me make a script if it's not difficult: so that it interactively shows the distance along the Z axis from the selected object (help point) to the selected vertex (editable poly). This used to work with Working Pivot, but now it doesn't work at the subobject level.

How do switch between pivot selection per hotkey?

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

MapButton with a jpg file as image

EASY QUESTION . it's such a simple question that in a day of testing I couldn't solve it and not even chatgpt can help me. and looking at the max online guide I'm pretty sure that not even autodesk knows how to do it).
I would like to make a button with a jpg, simple. no strange stuff, script pages.

what's wrong with this line of code?

mapButton 'btn1' "MapButton" width:75 height:90 pos:[20,10] map:@"G:\\XXX\SCRIPT_interfaccia\SCRIPT_Library\Immagini_Tessere\STANDARD\KKK\file_0001.jpg"

grazie
love for everyone

Syndicate content