Serejah
@serejah
New Member
Joined: Feb 14, 2024
Topics: 34 / Replies: 1221
Reply
RE: What's wrong with my code? The buttons on the toolbar keep flashing after execution. Please help me

You could replace .SetCheck call with the original command (max toggle keyboard shortcuts) and see if it makes any difference. Why do you use viewport…

4 years ago
Forum
Reply
RE: What's wrong with my code? The buttons on the toolbar keep flashing after execution. Please help me

You toggle the keyboard overrides button each time viewport gets redrawn and that’s why it flashes all the time. — works only if button exists on to…

4 years ago
Forum
Reply
RE: How do i make a short line script?

use RolloutCreator or use smth like this: src = StringStream() append src “rollout roll \”test\”\n (” for i = 1 to 10 do ( format “button btn_% \”b…

4 years ago
Forum
Reply
RE: Batch file import creates new layers

You could simply create a layer and make it current before the import from particular file for filename in filenames do ( _layer = layerManager.new…

4 years ago
Forum
Reply
RE: How to create modifier that will be select open edges?

mesh variable that you access from inside simpleMeshMod is of the trimesh class, so obviously polyop functions can’t work with it. Polyop functions ex…

4 years ago
Forum
Reply
RE: How to create modifier that will be select open edges?

ptspts: And unfortunately it looks like it doesn’t work as expected after changing the geometry. Press Get Stack Selection in edit poly mod. Dunn…

4 years ago
Forum
Reply
RE: How to create modifier that will be select open edges?

I just used the example from another thread so I didn’t generate class id. It must be unique, so perhaps using genClassID is a good idea. It doesn’t r…

4 years ago
Forum
Reply
RE: How to create modifier that will be select open edges?

ptspts: how to create simple modifier that will select open edges and update this selection after the base geometry changes? — plugin simpleMesh…

4 years ago
Forum
Reply
RE: How to fast search material ID from objects

yeah, when node has no modifiers in stack getting .mesh is instant compared to snapshotasmesh

4 years ago
Forum
Reply
RE: How to fast search material ID from objects

Yes, if used for geometry exclusively. But to get mtl IDs from shapes it is still convenient to use it. It has no big impact on performance anyway (a…

4 years ago
Forum
Reply
RE: How to fast search material ID from objects

Trimesh snapshots should be enough for the task delete objects gc() seed 42 for i = 1 to 666 do ( addModifier (Teapot pos:(random [0,0,0] [1000,10…

4 years ago
Forum
Reply
RE: Undo and polyop.CreatePolygon

It is possible to append some poly mesh to already existing one. Here’s the example But I don’t know if you can make it undoable

4 years ago
Forum
Reply
RE: Undo and polyop.CreatePolygon

you could use undo for the first polygon only with undo “create poly” on ( polyop.createPolygon $ polys[1] ) with undo off ( for i=2 to polys.coun…

4 years ago
Forum
Reply
RE: How to delay in 3dsmax script

just check how long it takes to complete and sleep the rest of the time local t1 = timeStamp() … do some work here diff = timeStamp() – t1 if …

4 years ago
Forum
Reply
RE: RayIntersect without an actual mesh

You can make or access native mesh and use its IntersectRay method. (for 2018+ versions you can use MCG’s wrappers to do the job ) tea = Teapot() ro…

4 years ago
Forum
Page 24 / 84