Snipplr - reformhttp://snipplr.com/users/reform
Recent snippets posted on Snipplr.comen-usFri, 25 May 2018 04:10:14 GMT(Maxscript) RPManager : Control multiple object properties with single object for faster rpmanager performancehttp://snipplr.com/view/66097/rpmanager--control-multiple-object-properties-with-single-object-for-faster-rpmanager-performance/
A big thanks to Grant from RPManager for this: (copied from rpmanager forums)
First, add a single object to a capture set. Define the properties for this object as if it is your 'capture set global settings' control, and per pass setup what you want per pass for the settings of all objects you want to control.
Then, deselect your control object, and select all the objects you want controlled and then last of all select the control object again (important you select it last), and then evaluate this in a maxscript window:
Then restore you passes and marvel that all the objects properties are set (I tried it on some spheres, with box mode and RPMMaterial, so maybe try that first in case it doesn't work in other cases. I suspect it will though)
This works for per object RPMMaterial too, if you have RPMMaterial captured, and each object has a different rpmmaterial, each will have its own mat restored.
To update the state of the captured properties, simply edit that single objects properties. ]]>Thu, 12 Jul 2012 21:46:38 GMThttp://snipplr.com/view/66097/rpmanager--control-multiple-object-properties-with-single-object-for-faster-rpmanager-performance/(Maxscript) RPManager : Control modifiers on a per-pass basishttp://snipplr.com/view/66096/rpmanager--control-modifiers-on-a-perpass-basis/
It is sometimes useful to have different modifier enabled or disabled for different passes. An alternative to using a different objects via visibility sets is to use the Before/After scripts to enable or disable the modifiers.
Modifiers can be accessed via MXS using either index (from the top), or by name - name is obviously more reliable since adding modifiers will mess up the index.
One way of getting an objects modifier by name is:
$'objectname'.modifiers[#modifiername]
(where 'objectname' is the name of the object and #modifiername is the modifier name - it pays to rename the modifier so you don't have multiples with the same name) and then
.enabled = true/false
You can of course also modify other properties.
*Note that the ' used either side of the object name is useful - it enables referencing objects with spaces in their names (not that I personally like spaces in names...) ]]>Thu, 12 Jul 2012 21:42:25 GMThttp://snipplr.com/view/66096/rpmanager--control-modifiers-on-a-perpass-basis/(Maxscript) List current render properties and output into a new maxscript windowhttp://snipplr.com/view/66083/list-current-render-properties-and-output-into-a-new-maxscript-window/
Thanks to Grant from RPManager for writing and sharing this script. ]]>Thu, 12 Jul 2012 01:08:16 GMThttp://snipplr.com/view/66083/list-current-render-properties-and-output-into-a-new-maxscript-window/(Maxscript) RPManager : preview optionshttp://snipplr.com/view/66082/rpmanager--preview-options/
Some handy scripts for vray preview renders in rpmanager ]]>Thu, 12 Jul 2012 01:06:00 GMThttp://snipplr.com/view/66082/rpmanager--preview-options/(Maxscript) delayed keys float script expression forhttp://snipplr.com/view/66081/delayed-keys-float-script-expression-for/
Create a script controller
Create a variable called LinkObj
Select variable LinkObj, click assign node, and select the object you want to drive your animation from.
Paste the code into the expression box.
Edit the number of frames you want to offset by. ]]>Wed, 11 Jul 2012 23:50:23 GMThttp://snipplr.com/view/66081/delayed-keys-float-script-expression-for/(Maxscript) Birth script to create particles on verticeshttp://snipplr.com/view/65946/birth-script-to-create-particles-on-vertices/
Place this into a plow birthscript
Remember to replace "object03" with the distributor object ]]>Wed, 04 Jul 2012 22:20:53 GMThttp://snipplr.com/view/65946/birth-script-to-create-particles-on-vertices/