Tagged 'General Scripting'

SVG polygon render

Hey.

I am trying to render out a SVG file from my 3Ds max scene and I got some problems.
I am no scripter at all, and just know some pretty basic stuff - so I have used this site to find the script:

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/20...

When I use this script, I get an error I dont know how to fix.

Problem:

-- Error occurred in ColorToHex(); filename: ; position: 71; line: 4
-- Frame:
-- theComponents: undefined
-- theValue: undefined
-- col: undefined

reset texture list uvw

hi, im trying to reset the texture list on multiple uvw maps on multiple objects. my script it only affecting the first uvw in the modifier list, not any others in the list, please help.

(
for theNode in selection do
for index = theNode.modifiers.count to 1 by -1 do
(
if ((classOf theNode.modifiers[index]) == Uvwmap) do
(
$.modifiers[#Unwrap_UVW].texMapList.count = 0
gc()
$.modifiers[#Unwrap_UVW].texMapIDList.count = 0
gc()
)
)

)

scatter

hi...
i've been trying to make max work like generative components...sort of...
i extruded a box and gave a taper modifier to it...then created a sun.
and with wire parameters connected the extrude and taper ammount to the solar time.

How to resolve this in multiple ways

Hello,
i have a script which has few several buttons. by clicking those buttons it runs .ms files and pre installed macroscript.

        on btn19 pressed do
	(
	filein "scriptsfolder/Delete overlaped objects or proxies.ms"
	)
	on btn9 pressed do
	(
	macros.run "KM-3D.COM Tools" "ConvertToSBObject"
	) 

If there is no .ms or macroscript it shows the following error.

So, i need the solution in the following way,

1.How to suppress the error message (shows nothing).

max file watchfolder for render submition.

Hey everyone I am trying to write a script that "watchs" a specified folder for .max files with cameras inside and renders it out.

3dsmax keeps crashing or endless looping on this.
I plan to release this free, so anyone can use it. but I need help to debug it.

take a look and let me know where the error is.

try (destroyDialog renderWatchFolder_tool) catch()
rollout renderWatchFolder_tool "Watch DOG - 4 xewinga Master" width:300 height:160
(
local printFileCount
local renderType
local renderFolder
local rFolder
local tempMap
local filePath
local renFolder

script problem

Hi,
I would like to make directions of spline more visible.
Yellow dot is sometimes not enough.
So I made a little script which use a real script of Paul Neale.
http://paulneale.com/clone-on-spline/
I did a maxscript.
When I open max and use the script I get an error.
I drag and drop maxscript file in max, and use the script, it works.
Any idea ?

(
if ((selection != undefined )and((classOf selection[1] == SplineShape) or (classOf selection[1] == Line)) ) do
(
	max modify mode
 
 
	spleen=selection[1]
 
	XX = (spleen.max - spleen.min).x
	YY = (spleen.max - spleen.min).y

Material name

Hi, I wanted to have the selected object name of the material ( multisubobject material ) with :
selection[1].material.materiallist[12] for eg.
but I get WOOD:Standart material for eg.

I just want "WOOD". Any help ? Thanks.

pivot point and other

Hello,

This may be the wrong place to ask this question. But I am desperate. I have these 2 problems.

I am using 3ds max 2009 and I keep getting frozen shadow on the screen. I have tried everything I have found in the net but didn't work. So if there is anyone with any suggestion please let me know.

The second issue is I use to know what is the short key for the show pivot point so I can move it without going to the pivot editer. So can someone remind me. Thank you all.

 

Save selected obejcts to Xref and replace

Hi all,

I searched the forums and I'd guess there must be something alike already as it's too obvious...

Is there a way to save a selection of objects and import / replace them as single xref objects on one go?

Thanks in advance :)

how to auto-run a script when opening a max file

Hello,
I would like to auto-run a script, everytime I open a max file.

How can I do that ?

Kind regards
Alex

Syndicate content