Tagged 'General Scripting'

**Memory error** System exception (crazy RAM usage)

Hello all,

I am getting a memory error and have been unable to fix it thus far.

When I run my script on a batch of 360 files (asking it to load in 360 .max files, perform some operations on them, calculate a number of values for each file and write these values to a number of text files) the RAM usage quickly rises to 100% and after a certain amount of files have been processed windows gives me a message saying 'close down programs to prevent data loss'. At the same time maxscript crashes and throws the error 'unknown system exception *memory error*'

- Linking relative objects -

Hi everyone,

Im very new to scripting in max script, as of today!

I am trying to solve a problem that is starting to really bug me, and would make my work flow much quicker.

Could any of you suggest or provide insight or a script that could do the following?

I have 3 groups of objects

Bus_Graphic_01 - Bus_Graphic_110
Bus_Collider_01 - Bus_Collider_110
Bus_Controller_01 - Bus_Controller_110

What I need to do is LINK the objects in the group to the objects in the other groups by their numerical suffix, i.e.

Bus_Controller_01
--> Bus_Collider_01

- Type error: Call needs function or class, got: undefined PLEASE HELP!!!!

I get this error, if even BitmapLister is global! Please HELP!!!!
Here is the script:

macroScript Bitmaps
category: "artrender"
(  	
	try(destroydialog ::BitmapLister)catch()
	bitmaps=#()
 
 
	GLOBAL BitmapLister
 
 
 
	cur_obj_selection=#()
	BitmapLister_iso_x = getinisetting "$plugcfg\\RacoonScripts.ini" "BitmapLister" "pos_x" as integer
	BitmapLister_iso_y = getinisetting "$plugcfg\\RacoonScripts.ini" "BitmapLister" "pos_y" as integer

-- Unknown property: "value" in undefined (SOLVED)

Hi,

I wrote 2 functions:

fn fnUpdateProgState iAmount =
(
pProgressBar_prog.value = iAmount
)

fn fnClearChannelInfo =
(
fnUpdateProgState(0)
channelInfo.ClearChannel $ -2
fnUpdateProgState(50)
)
When I call fnClearChannelInfo(), I get this error:
-- Unknown property: "value" in undefined

The pProgressBar_prog progressbar is inside a rollout (progressbar pProgressBar_prog color: [140,88,225])

Do I have to declare something global? Im not sure how to fix this!

--Unknown system exception

Hi all,

I've been developing my Mulsi/Sub Object MAterial Script but when I run it i get the above error........

Here's the code

rollout a "Create" width:200 height:496
(
	button btn_1 "Create" width:80 height:25
	button btn_2 "Create for VRay" width:90 height:25
)	
rollout b "About" width:200 height:200
	(
		label lbl1 "Multi/Sub-Object Presets v0.5" pos:[48,8] width:112 height:16
		label lbl2 "Created by Andy Butler" pos:[23,24] width:160 height:16

...

...

.3ds to .max?

Hello, I'm beggining with a script to convert 3ds dwg and dxf files to .max. Then I'll use this script with a batch script executer (runs a script on many files), and finally I'll render each .max file with vray batch render pro.
The thing is... I can´t find any where a function for any of these scripts to load any file other than .max.
Help, please!

.donet multi-thread issue

Hi guys,
Does anybody have idea, why the attached script is resulting in to "Unknown system exception" ?
I'm aware that select function is causing it. What would be the solution to process such maxscript without exception?

Thanks.
ZT

.net Plugin Viewport update issues.

Hello,

I had developed a plugin with C# max SDK and Visual Studio (for Max 2013), everything work fine, but I have to select some nodes in the wiewport and add them to a ListBox here also everything is ok, except the fact that when my Form (floating form) is open there are some issues with view port display...
I mean : I cant see my selection square (when you click and drag to select), also when I move or select a node the viewport don't update immediately ...

1

1

Syndicate content