Tagged 'ScriptSpot How To'

How to: Allow other users to contact you

There is a feature on ScriptSpot called the "Personal Contact Form" that when enabled allows other registered users to write you a message using a contact form on ScriptSpot. Its a great way to allow people to contact you without making your email address public.

How to: Change website theme

There are 2 themes currently available on ScriptSpot - a light blue theme and this default dark theme. If you prefer a light one you can change the theme in your "My account" page.

Unable to Apply UVW Map on multiple Selection with simple MaxScript

Hi all,

I've recently created a maxscript to apply a 10x10x5m box UVW Map on objects.
I copied the code from the maxscript listener after applying it manually on an object. Edited some of the information to better organize it in my CUI. The code goes like this

macroScript UVW10x10x5m
category:"1Essential Scripts"
toolTip:"UVW10x10x5m"
Buttontext:"UVW10x10x5m"
 
(
	modPanel.addModToSelection (Uvwmap ()) ui:on
	$.modifiers[#UVW_Map].maptype = 4
	$.modifiers[#UVW_Map].length = 10000
	$.modifiers[#UVW_Map].width = 10000
	$.modifiers[#UVW_Map].height = 5000
)

Attaching objects by list

Hi guys, anyone kindly guide me on how to attach multiple objects to an editable poly, without making a selection in the viewport, but attaching them by list. Any help highly appreciated. thanks

ps. I've gone through previous similar posts but couldn't get a similar scenario.

exported selected to dwg or iges file in maxscript?

does anyone how to export selected to dwg or iges files in maxscript ?
because i searched through the internet and i found there is a script related to this
but it is solely export selected to 3ds file..

any help is greatly appreciated
cheers

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
  (

trouble with lights

I am placing a target light in my scene with a simple maxscript script.

I have set the light "enable" to "on" but the light won't turn on unless
I manually open the modify panel and check the "light type" "on" button.

Would like to do this with maxscript.

Any help would be appreciated.

Distribute grouped objects along edges

hi. I'm stuck at trying to distribute grouped objects along a given objects edges. At first I thought it was similar as with the case of vertices but it turned out to be quite complicated.
Hope I was clear. Anyones help highly appreciated.

Object Plugin Maxscript Slice

I am trying to write a object plugin. Is there a way how you could slice a picked object in a Maxscript Create Object plugin. It seems I can't use " .slice' function at all. I wrote already a own slice function but the performance is not that good as the slice function from 3DS Max.
Is there anyway how I could use modifiers in a create object plugin (Simple Object)
Thx anyway

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]

)
)

Syndicate content