I gusee that’s problem with globals. You can’t define already defined variable. Now should works: if sourcedir == undefined then ( global sourcedir…
Hi. You don’t have to collect names in array, you can directly use them in the loop. Code should look like that: for object in selection do ShellLa…
So, the file is organised into structures. If you recognize first structure you should know it’s size, and I gusess in PKG structure start pos + struc…
I wrote something: ( clearListener() function getMapVerts object channel = — return array of map IDs matched to geometry verts ( if( polyOp….
As I say above;) But I don’t know what to use instead. unwrapMod.selectPolygons #{ 1..(unwrapMod.numberPolygons()) } — select all faces It doesn’t …
I made it! This code flattening objects into single texture: local unwrapMod = unwrap_UVW name:”Automatic Flatten UVs” select objectsToMapp modPa…
That exactly I wanted to avoid. modPanel is synonym of ugly code
When you using Maxscript all is stored as “triMeshes”, which are “optimized” exactly as you need. There is array of vertices and aray of faces (which …
Take a look for “scripted geometry plugin” in maxscript help. It shows how to create new primitive object. If you won’t it be parametric, but just lo…
Can you post simple file in this format here?
Where you wish to see results of this script? Do you creating another 3d application? No smoothing? What you mean? Geom is flat shaded or shading is …
Normals returned by stock functions should be normalized. If not use normalize [point3] function. It will roll point3 to 0-1 range.