ScriptSpot

Forum topic · Scripts Wanted

default point helper settings

By jsrocha · 2014-11-12

Description

Hi guys, how's going?
i was wondering if is possible to create a script to configure the default settings of point helper as this - http://prntscr.com/55o39i. The default settings are these - http://prntscr.com/55o3jn.
i´m not a coder and i tried to do something with macro recorder, but it doesn´t work. Maybe some simple code tu put in the scripts/startup folder? I really don´t know if is possible, but is very annoying to have to configure the tool every time i use.
That´s it, thanks everyone.

Jsrocha

Comments (7)

jsrocha · 2014-12-10

Hi Eek, thanks for your help.
I tried to use your script saving it as a .ms file in startup folder and it doesn´t work. I also tried to make a shortcut to a .mcr script, but it doesn´t work either (the script creates a point at 0,0 coords, but the others points are created without the wanted settings). Am i doing something wrong?
Thanks again,

Jsrocha

.

miauu · 2014-12-10

This is the right solution:
Put it in maxRoot/scripts/startup folder


--******************************************************************************************************
-- Created: 		10-12-2014      20:15
-- Last Updated:	10-12-2014
-- Version:			1.00
--
-- Author :  Kostadin Kotev / miau_u@yahoo.com / http://miauumaxscript.blogspot.com/
-- Version:  3ds max 2009 and up
--
-- Discription: When Point helper is created apply user defined settings to it
-- Usage: Put it in maxRoot/scripts/startup folder
--
--
--******************************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK

(
	global AutoPointSettings
	function AutoPointSettings =
	(
		createdNode = callbacks.notificationParam() 
		if classOf createdNode == Point do
		(
			createdNode.name = "PointHelper"
			createdNode.cross = true
			createdNode.Box = true
			createdNode.axistripod = false
			createdNode.centermarker = false
			createdNode.constantscreensize = true
			createdNode.drawontop = false
			createdNode.wirecolor = color 0 255 0
		)
	)	
	callbacks.removeScripts id:#AutoPointSettingsID
	callbacks.addScript #nodeCreated "AutoPointSettings()" id:#AutoPointSettingsID	
)

jsrocha · 2014-12-15

Hi miauu, thanks for your help.
I did everything you said, and is not working - http://prntscr.com/5h2uqi
am i doing something wrong?
thanks,

Jsrocha

.

miauu · 2014-12-15

Restart 3dsMax.
I can make a video to show you that the script works.

jsrocha · 2014-12-15

Hi miauu, you don´t have to make a video, i believe you ;-)
i restarted max and it still does not work. Probably i´m doing something wrong here.
Thanks for your help!

Jsrocha

.

miauu · 2014-12-15

Here is the video - 3dsMax 2014 64bit.

Try to add some debug lines of code. For example add

print "This is executed"

before

createdNode.name = "PointHelper"

to see if the callbacks works.

PointHelper

citizenWOLF · 2014-12-03

Here is a simple script for what you need:
Evaluate this:


( Point size:50.8 isSelected:On 
	$.name = "PointHelper"
	$.cross = on
        $.Box = on
        $.axistripod = off
        $.centermarker = off
        $.constantscreensize = on
	$.drawontop = off
	$.wirecolor = color 0 255 0
)