Tagged 'General Scripting'

setINISetting problem

hi friend
i am using setINISetting function
but that is not work , screen freeze probelm

what probleM ?

rollout image_button_test "Image Button"
(

fn setSpinnerValue =
(
setINISetting "e:/test.ini" "Directories" "Scenes"

)

button btn_default "기" pos:[74,3] width:60 height:16 toolTip:""

on btn_default pressed do
( setSpinnerValue()

)

)
createDialog image_button_test

Implement mesh in maxscript where every face has its own color

I would like to implement a mesh in maxsript where every face has its own color value, absolutely not related to any vertex colors. If I select a face the coresponding color value should be shown and it should be posible to edit it. If faces are deleted or added the coresponding color values should be also deleted or added.
First I was thinking of a scripted plugin which extends editable mesh, but as far I read extending editable mesh doesnt really work.

How can you apply the mod individually?

You can select multiple objects and apply a material to them. How ever apply a UVWmap modifier to the same selected objects the mod is applied to the group as a whole not independently.

This applies a cylindrical UVWmap to one object.

macros.run "Modifiers" "UVWmap"
$.modifiers[#UVW_Mapping].maptype = 1

How could you apply the mod to a select group individually?

How to delete one of the material in the sub-material !

How to delete one of the sub-material by maxscript like the delete button on the multi/sub-object rollout。

I used deleteitem $.material.materiallist 2,but the result is not what I want !

I need some helps! Thanks a lot !

Karen millen don't ever thought where a number of years

These kinds of quantities are usually very very discreet, only for defense, these types of 8-digit serial sum will be identified inside inside inside the outfit subsequent around the trainer size. Your lover applied New Karen Millen usually.

problem loading local variable into a custom attributes

I scripted a custom attributes that looks like:

MyAttr = attributes BoutonPropsAttr 
( 
     local LayerBags= layermanager.getLayerFromName "PropsBags"
     local LBagsState = LayerBags.on
 
 
 rollout blabla "blabla" 
  ( 
     	checkbox bags "bags"  checked:LBagsState
												                   on bags changed theState do 
												if LayerBags.on == true then LayerBags.on = false  
												else LayerBags.on = true    
 
  )
 
 )

rename object name to filename

hi,

can any body help me out to get this easy task..

select $sphere01

with this script line,, i am able to select with script,, but i want extend this script by making the selected file object with script, to make the selection name to be same as file name. if my file name is testing.max,, i want this sphere01 object in max file to be renamed by testing

can anybody help me... thanking you..

kutty

scripting a uniformly accelerating object

Hi

I need some help scripting object motion.

I have values for ....

1. total distance travelled
2. travel direction
3. start speed
4. final speed
5. total time taken

.... and I need to position an object accordingly. The acceleration is uniform.

How would I go about this? How would I keep track of the current frame and velocity, increase it over time and relay it to object position until the final frame?

Thanks
Mark

shift + drag to copy and clone objects with MEM's Max2Maya

I just want to know if anyboby have the same problem with mem's max2maya i can't clone or duplicate objects or i want to know what is the code to make a script to do possible bring clone option with the option numbers of copy
thanks :)
friendly tomás

skinops.getvertexweight - problem

Hi, i have a problem to get a weight of vertex.

skinops.getvertexweight myskin vertex selected_bone 

This function is incorrect, becouse an id of selected_bone r not the same as a bone id in a list of vertex weights

bonevertex = skinops.getvertexweightboneID myskin vertex selected_bone
skinops.getvertexweight myskin vertex bonevertex 

When i use this function, then ok it's correct - but only when bones are sorted in a list of vertex weights. If bones r unsorted, then the id of bonevertex return the wrong id of bone.

So how i can fix it?

Syndicate content