Tagged 'General Scripting'

Movement controls visibility

Hi all,

Problems with animated object lifetime and transformation controls

Please help! Hi 3DS people, I've spent the last 2 days trying to resolve some tricky (but probably very simple) problems with an air-traffic animation I'm working on. This is getting really urgent now so I'd be super-grateful for assistance. I attach the code and data file. Problems are:

1. objects are supposed to be created at specific times, but for some reason they are all in the animation (mostly motionless) from t=1.

Manually launch MSE file via Utilities tab > Maxscript > Utilities drop-down option

Hello ... I am fairly new to scripting.

I am currently accessing Maxscripts commands I've collected via the (Utilities tab > Maxscript > Utilities drop-down option) method.

I would also like to access various MSE scripts I've come across through this method. I know I can access some of these scripts via the toolbar or do a drag and drop unto the viewport. However, since I already have a number of scripts I am accessing through this method ... I would like to have them accessible from there as well.

How would I go about assigning the launch of an MSE script to a button action?

Bitmap Filter Error. Not enough memory

Hi,
I use MAX 2009, 4Gb memory, Win XP.

Script use in work about 150 bitmap
After start, I get
--------------------------------------------------------------
Bitmap Filter Error

Failed to allocate filter for this bitmap. Not enough memory. This bitmap may render incorrectly
--------------------------------------------------------------------

I've read topic
Rendering Preferences> Bitmap Pager.....

But can't adjast them....

Help me

Accessing viewport configuration via maxscript

Hi everyone,

I'm having a bit of a problem figuring out how to access the safe frame controls via maxscript - specifically, I want to run a script to unlock and set the user safe to some preset values.

Yes, I know how to toggle the safe frame off and on with

displaySafeFrames = true

but that's not what I want to do, I want to modify the various controls in the viewport configure safe frames panel via maxscript.

Help with Script Task List

Someone could help me with this script i try to open a exist file text a display text in my rollup. this script i trying to create for a made a tasklist for management all work to do in any proyect please help

this code that i have right now

rollout edittext "Notas de Proyecto"

(
edittext txt "Notas :" fieldWidth:280 Height: 120 labelOnTop:true

button B " Abrir " pos:[190,150]

on B pressed do
(
file = getOpenFileName types:"Text File (*.txt)|*.txt|All Files (*.*)|*.*|"
if file != undefined then (
openFile file

- 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

select all the children?

how do I select an object AND all it's children (objects linked to it) in the hierarchy?

Change value of custom modifiers

Hello, I try set values of a custom modifers.

Moving the slider, the listener show that:
$.modifiers[#Hip_controls].Hip_controls.Squash/stretch multiplier = 0.7079

But a copy/paste of the same:
$.modifiers[#Hip_controls].Hip_controls.Squash/stretch multiplier = 0.7079
in the command line give me this error:

-- No ""="" function for (%"/"() (prop squash (prop Hip_controls ((prop modifiers* (%"getDollarSel"()))[#Hip_controls]))) (Global:Stretch Global:multiplier))

Other custom modifiers works:
$.modifiers[#Hip_controls].Hip_controls.Chest position influence = 84.27

geting the name of a selected object

I know this is such a stupid question.. but ive looked and looked and just can't find out how to get the name of the object selected

previously ive worked on code which itterates through all of the objects in a scene and grabs their names, it does like so:

someObj.name

but when i try

$.name
or
$.baseObject.name

but I just can't find the way to do it.. Oh god how I love the sugestions box that you get with a proper IDE.. Maxscript would be so much more newb friendly if it had one

Syndicate content