Tagged 'Scripts Wanted'

Saving Visible or Selected layer names to clipboard or file

Hi scriptspot

Was looking for help figuring out this script. Im usually a macro recorder but have lately been attempting to figure out how to make my own with very mixed success.

Anyway here is what I am looking to create

So I have a list of layers and I need the names of them. I only need the layer names for the visible layers but I could always select them if that makes it easier. These dont need to be sorted alphabetically but that also could be useful.

Hoping to format it like example below with quotes around layer names:

A Copitor to temporarily hide/unhide an object without using the scene explorer

If you want to hide an object, it may be difficult later to find it and unhide it if you don't know the name or want to stay on the same location in the viewport.

With copitor you can save an object, delete it, then bring it back. It's slow though to do this just to hide and unhide an object.

It would be nice a Copitor for this purpuse of hiding and unhiding objects.

Move Transform Offset like in rhino

hi Scriptgods

Humble bow for your services

well can we move rotate and scale offset in viewport itself by clicking the xyz arrows and directly feed new coordinates in the viewport itself

like in rhino

i have attached pics for the better understanding of my point

thanks

viki

Max Sequential Numbering.

Hi all,

I can't find a solution to stop max renaming object copies, so I was trying to record a macro where I would clone an object and delete the 4 last characters. Although the macro recorder doesn't copy the renaming operation.
Does anyone know how to stop Max sequentially numbering the objects, or help with a script to clone instances, references, or unique objects without changing the name of the new object?
Thanks in advance.

David

Material names to object names with "_SS" suffix

Guys,

could sombeone help me with quick little UI-less tool:
i have around 100 objects with different materials on them. Each material has proper name but object names are generic. I would like to select all objects and get all object names identical like material names, with "_SS" suffix.
So for example, if i have object that has material named "ground dry", after this script, corresponding object name would be "ground dry_SS". I need it in Max 2015 and objects could be parametric (box, sphere, etc), editable meshes or editable polys. No modifiers on them.

Thank you for your help !

script to use existing map and put it under another map

Hi guys

I am hopeless at code - i was wondering if someone could help out.

I use coronarender, and i often use existing BUMP maps and then put it in a CORONROUNDEDGES map so that i dont need to chamfer it with a modifier or manually. Corona handles the rounded edges if you get my drift.

I want to automate this as i do it a lot - so for this example if i have in the BUMP map an existing map, i want to run the scrupt so that it puts the existing map into the coronaroundedges additional bump map - is there a way to do this in script? Happy to pay anyone who could help me out please?

Clone objects and add a name extention

Hey guys.. looking for a script that will clone All selected objects, and add a name extension to the original object's names.
For example Box_01 and Box_02 cloned to Box_01_New-text-here and Box_02_New-text-here, than create a new layer and be able to name that for the group of selected objects that were cloned.

Display Message on Viewport (toggle)

Hello, I have a small macro and would like to have some text displayed on the viewport when I activate it, I've tried the code from this page:

https://forums.cgsociety.org/t/draw-a-text-in-corner-of-the-viewport/163...

but I get an error Exception message: "registerRedrawViewsCallback() expected function, got: undefined."

My macro is the following:

macroScript LockSnapScale
category:"# sampei"
buttonText: "Lock,Snap,Scale"
toolTip:"Lock,Snap,Scale"

(
actionMan.executeAction 0 "59231" -- Selection: Selection Lock Toggle

Wirecolor Switcher

Hey everyone, it would be cool if a script could save the current wirecolor of the objects and by the state of an checkbutton, it would change the wirecolor of all objects that have the objID=1 to "red", obj=2 to "yellow" and obj=0 to "black".
if you now release the checkbutton the original wirecolor of the objects will come back.

Simple lock- / unlock camera

Hi

I really miss two simple buttons, one that lock the current view and one that unlocks the view.

I have found this to do the job:
setTransformLockFlags $ #all
setTransformLockFlags $ #none
but I have to selecet the camera and target manuel to lock the view, before running the script.

I guess that the script should select the active camera and it's target and lock them.

I know how to add a script to a toolbar, but not how to write it properly :-/

Can anyone help?

Thanks

Syndicate content