Tagged 'ScriptSpot How To'

How to: Post code snippets

You can post code snippets by using a bracketed code tag either [] or <>. However, due to how the code formatting works it cannot be used in conjunction with the ScriptSpot rich-text editor.

So, to post code I'll use the [ code ] tag to start the highlighter and the [ /code ] tag to end it (spaces added so it would display tag - don't use spaces).

macroScript RenameThem category:"HowTo"
(
 rollout rename_rollout "Enter New Base Name"
 (
  edittext base_name ""
  button rename_them "RENAME SELECTED OBJECTS..."
  on rename_them pressed do
  (

How to: Post images

Ever wanted to post images with your content to ScriptSpot? There is a link below any "Body" textbox that says "enable rich-text" which will turn on the TinyMCE rich text editor. Once that is up, click the "insert image" button to bring up a upload tool / file manager.

I am trying to make a SIMPLE particle flow script decreasing speed of particles

I am trying to make a simple Particle Flow script decreasing speed of particles. Why this did not work, the variable "vel" is changing? And other important question how to make particles to go on random direction not in single line.

on ChannelsUsed pCont do
(
pCont.useTime = true
pCont.useSpeed = true
)

on Init pCont do
(

)

on Proceed pCont do
(
count = pCont.NumParticles()
speed = .05
t = pCont.particleAge
for i in 1 to count do
(
pCont.particleIndex = i
vel = (speed/t)
print vel
pCont.particleSpeed = [vel,0,0]

)
)

IK animation Key frames

Hello all,

I have one question about key frames and IK animation.
What is a problem ?
Lets say i have 3 planes which are linked and made IK limb solver, like arm of 2D character. When i animate helper and put key frames on time line i got only key frames for that helper. Does anyone know can I get key frames for my planes same as IK helper or any script that can change ?

Thank you so much!

Zoran

interface design question

HI Guys
i have a question about max script, i need to know if its possible to, with max script have the max interface allow a complete redesign, basically allowing me to remove all the menus, command panels, animation controls at the very bottom of the screen and be left with essentially a totally blank canvas to which i can then build the interface i need.
Hope someone can help
Michael

keys

hi I need help for this script. create the initial and final keys in each spinner through the slider.

slider sld1 "+ - -" range:[-90, 90, 0] spinner tStart "Start Frame: " range:[0,100000,animationRange.start] type:#integer

spinner tEnd "End Frame: " range:[0, 100000,animationRange.end] type:#integer

on sld1 changed val do

with animate on
(
at time tStart $.pos.controller.x_position = val

at time tEnd $.pos.controller.x_position = val )

Make A Dialog with UI blocking

Hi guys
How I Can make a dialog that make 3ds max UI blocking
Like a ERROR or Warring that user can't click on 3ds max until click on (OK) button

One Example :
In polyunwrapper

http://www.polytools3d.com/downloads/polyunwrapper_2.5.1.zip

Click on setting button in polyunwrapper UI

THank U

material creation script.

Hi,

Forgive my lazyness (actually lack of time would be better said) for not searching all of the scriptspot scripts and posts for what I am about to ask.

I was wondering... say I get lots of RGB values in an excel sheet (in gamma 2,2)from a client who wants to visualise the colors in interior scenes.

Can it be done with a script in such a way that max generates a material library and puts the corrected gamma 2.2 color values from the table in the diffuse slots for the materials?

Maxscript acces to Wall

Hello to all. Recently i have been doing a script that needs to get acces to the AEC wall object. I need to get acces to the 'pick spline' option in keyboard entry option from the modify panel to assign a previously created spline , but i have no idea on how to get it cause it doesn't seem to have a straightforward way to get into it. I can use the 'startObjectCreation Wall' to start creting the wall, but after that, i don't know where find a method to attach the spline right into it.

Any ideas about that one?..

Thanks in advance!!!

Names into array to update multilistbox

I'm trying to evaluate if some materials have some options on or off, until there the script works and it prints the name of the materials that im evaluating, "print m.name". But I need to update a list box with that m.name to show the result in a rollout, could not find any solution to that, the solutions i found its using "collect" and works before getting the names from the meditmaterials, but i already have them, so how i can add it to the listbox item:#()

Thanks in Advanced for your help.

 

Syndicate content