Tagged 'General Scripting'

i want to acsees outline amount in edit spline

i want to acsees outline amount in edit spline can anyone help me ?
this is my code but is not work
(
amount= 45
WM_SETFOCUS = 0x007
VK_RETURN=0x000D
WM_CHAR=0x0102
WM_ACTIVATE = 0x6
SendKeys = dotNetClass "System.Windows.Forms.SendKeys"

fn Out_am =
(

tti=for i in windows.getChildrenHWND (windows.getDesktopHWND()) where i[5] == "Geometry" do exit with i[3]
tti_ch = windows.getChildrenHWND tti
UIAccessor.sendMessage tti_ch[64][1] WM_SETFOCUS 0 0
am=amount as string
SendKeys.SendWait am

Cables and wires

Hi,
I’m looking for a low cost or free script that would generate wires and cables the way the Pipelicious does with pipes.
An example would be to have a mass of wires and cables covering a wall or celling

[email protected]

tmp

(
Arr = #()
try (s = openFile "c:\\Vertex_ID_selector.txt") catch()
if (selection.count==1 and s != undefined) then
	(
	while not eof s do -- пока не есть eof (конец файла s) делать
		(
		a = readValue s
		append Arr a
		)
	For i=1 to Arr.count do
	Arr[i] += 1
	try(PolyOp.SetVertSelection $ Arr) catch(messagebox("Some ID is  not exist"))
	if getCommandPanelTaskMode() != #modify then (max modify mode)
	subobjectlevel = 1
	redrawViews()
	close s
	)
)

How to send press hotkey to max?

I want to send press Ctrl+Backspace via maxscript but not works, please help.

--create test object
select (convertToPoly (sphere())); subobjectlevel=2
$.EditablePoly.SetSelection #Edge #{34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64}
 
--Function for send hotkey to max
fn SendKeys_fn sysKey = 
(
	desktopChildren = windows.getChildrenHWND (windows.getDesktopHWND())
	--for i in desktopChildren do format "%\n" i
	max_hwnd=for i in desktopChildren where (i[4] == "3DSMAX") do (exit with i[1])
	WM_ACTIVATE = 0x6

Script Help - how to run script on group

Hi guys

I am not a programmer nor am i anywhere near that level. However i have been playing around with the most basic functions of listener and the scripts and i want to be able to create simple scripts for my every day use.

For instance, i created the below script which placed a UVW map of 2000mm to the selected object.

modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Map].maptype = 4
$.modifiers[#UVW_Map].length = 2000
$.modifiers[#UVW_Map].width = 2000
$.modifiers[#UVW_Map].height = 2000

Blacklist for user/script

Hi!

I don't see special forum where I can post general question about scriptspot so i post here.

I want to add to "blacklist" user and his scripts because I don't want see its updates on main page. I don't see such functionality on this site maybe will be good ask Christopher to add it?
What do you think about that?

HOW TO DISPLAY THE PROCESS OF CALCULATION

i created a script , but the caculation is long time ( maybe 5 - 10 minutes ) , how can i display the process of caculation ? thank you for your help

Suggestions / help on Show Diffuse in Viewport Script

Hi.

I 90% of the time name my maps in the diffuse slots with 'texmatnamehere_diffuse.ext'

I've wrote a script below which collects the scene materials and then collects the mats with only '_diffuse' in the filename and then shows them map/s in each associated material (it works with submats BTW).

I just would like any suggestions or help with the following please such as:

1. Is it easy to read a bitmap for colored values and then show texmap in the viewport and possibly ignore values like in normal maps and grey-scale obviously

object cloning with offset to selection

This is a bit Maxscript 101, but I cant seem to get it to work. Let's say you have 5 boxes (copies or instances) in a selection, I am looking to create a new clone object (sphere) offset in the -z direction. I have been looking online and at the maxscript help but cant get it to work as I want.

This is what I have so far. Any help would be much appreciated!

for i in selection do
(
nl = sphere radius:3
newObj = maxOps.cloneNodes nl cloneType:#instance newNodes:i #nodialog
nl.pos = i.pos
nl.pos.z = nl.pos.z - 10
)

spline fuction or hotkey

anyone knows change the spline type script?
[smooth][bezier][corner] ...more
just simple 1 click

Syndicate content