Tagged 'General Scripting'

Custom Attributes node referencing

Hello

I've encounter an issue with node referencing within custom attribute, when merging a scene in another one.

From the files I've attached (max 2016), the two scene are identical except that on sceneCA.max, sphere001 has an CA that reference sphere002.

Now when I'm merging sphere001 from sceneCA.max into scene.max and replacing the original sphere001 (without merging sphere002), the referencing on the CA doesn't work anymore.

Does anyone would have any idea to avoid the reference breaking in this situation ?
Thanks

Can anyone tell me where i'm going wrong?

Hi Guys,

I have a selection of camera's in my scene. Some start with "cam_" other don't. I want to use matchpattern to select the camera's that do start with this prefix. Below is what I have been trying to use. Please could someone tell me where i'm going wrong, don't think i'm too far off, i just cant find the right syntax. Also it would be great to know how to search two matchpaterns in the same for loop if possible.

for i in cameras where matchpattern i.name pattern:"cam_*" collect i

Any help would be much appreciated!

Maxscript control vertex

Hi i'm learning script development in 3ds max, in this basic script i want to move vertex with Spinners, the script work fine at execution but if i change the value of a Spinner nothing is updated, Can someone help me with some code to fix this problem?

Thanks for the attention!

/* Create and rename a basic plane */
BaseUI = Plane realWorldMapSize:on length:10 width:10 lengthsegs:3 widthsegs:3 pos:[0,0,0] isSelected:on
BaseUI.name = "Base UI"
 
/* Convert the created plane to editable poly */
macros.run "Modifier Stack" "Convert_to_Poly"
 
/* Delete the middle face */

Bake LightingMap for mutliple objects at different resolution with one render call

I'm having a problem where textures come out stretched/shrunk vertically, when I try to bake LightingMap for multiple objects at once, when the output size is set differently on each object. I do this by selecting all the object and calling:

render rendertype:#bakeSelected

I set the output size by doing this:

map = LightingMap()
map.outputSzX = size
map.outputSzY = size

obj.INodeBakeProperties.addBakeElement map
obj.INodeBakeProperties.activeWidth = size
obj.INodeBakeProperties.activeHeight = size

where [size] changes from one object to another.

Check or Uncheck - Save Render Mesh - Body Objects

Hallo,
I am lookig for a script that knows to turn off/on the perameter SAVE RENDER MESH in RENDER APPROXIMATION dialog of Body object for multiple objects. (nurbs importet objects)

A time ago I have modified this scipt:
http://www.scriptspot.com/3ds-max/scripts/bodyobject-render-quality

and now as another person who commented this script looking to this feature. I would like to keep all other settings in render approximation dialog, just only control to save or not save the mesh.

Thank you.
Tomtnt

What script he is using? thanks

hi guys..
this guy doing nice job making ETFE.
what script he using?

https://www.youtube.com/watch?v=eASxqqlv0zA

thanks
ELY

interpCurve3D - find angle of point in world coordsys- How?

Hello
I try to find angle of point on shape, use interpCurve3D. How can help me - how to do it?

Thank You

Select from a list with missing objects

How can I make this simple line execute if random objects in the array happen to be missing from the scene?

select #($Sphere002, $Sphere001, $Sphere003, $Sphere004, Sphere005)

convert String To Command

How in code bellow convert string A to command M.texmap_diffuse ? I need in strings, because want to manipulate with them :
(
local M = meditMaterials[activeMeditSlot]
if classof M == VrayMtl do A = "M.texmap_diffuse"
A
)

alembic params exposure

Hello there!

I'm messing around with alembic in max 17 and autodesk really set me up. They sayd "Full MXS exposure - range, nth frame exposed" and whats in the reference? (http://help.autodesk.com/view/3DSMAX/2017/ENU/?guid=__files_GUID_5994F8B...) NOTHING :( Is there anybody who knows the exporter/importer parameters?

Thanks!

Syndicate content