PolyTools3D
@polytools3d
New Member
Joined: Feb 14, 2024
Topics: 17 / Replies: 1674
Reply
RE: Object rotates after reset xform – Inverse matrix error?

If you don’t need the node to be aligned with the face normal, but extruded in the direction of the face normal you could also convert the shape to po…

5 years ago
Forum
Reply
RE: viewport.setCamera – playback

MZ: But my question still remained. Why SetCamera will stop the playback? while actionMan.executeAction 0 “40068” – Views: Camera View will not? …

5 years ago
Forum
Reply
RE: viewport.setCamera – playback

( with redraw off viewport.setcamera <camera> )

5 years ago
Forum
Reply
RE: Ordered Poly Attach. Trick is wanted

Just an idea. It seems to work with the test scene but may well fail with others. ( fn RebuildMorphTargets node = ( max modify mode morph_…

5 years ago
Forum
Reply
RE: [SOLVED] Replace 'color correct' map with bitmap on mass

Something like this may work. Fully untested! for i in (getclassinstances color_correction) where iskindof i.map bitmaptexture do replaceinstances i …

5 years ago
Forum
Reply
RE: Note Pad Feature in MaxScript

Please do a search on how to add an icon to a MacroScript. It has been answered many times here and in other forums as well as in the MXS help. The #…

5 years ago
Forum
Reply
RE: Note Pad Feature in MaxScript

I just realized that the “Comments” property index won’t always be 3, so before you start getting a lot of errors while attempting to read it here is …

5 years ago
Forum
Reply
RE: Note Pad Feature in MaxScript

You could use the fileProperties to save/read the comments and avoid working with external files if all you need is plain text. — Save text fileProp…

5 years ago
Forum
Reply
RE: MaxScript – Select Base Object

Try: modPanel.setCurrentObject $.baseObject node:$

5 years ago
Forum
Reply
RE: The Challenge >>> Limit number of non-zero items of array by specified count

Since the conflicting items are the one with a value of zero, removing them from the array allows to implement a simpler comparator. This new algorit…

5 years ago
Forum
Reply
RE: The Challenge >>> Limit number of non-zero items of array by specified count

But the array I showed previously does not work with any of the algorithms proposed here. Have you checked it? #(-1, 5, 5, 5, 5, 0, 2, -5, 0, 0, 0) …

5 years ago
Forum
Reply
RE: The Challenge >>> Limit number of non-zero items of array by specified count

Since you won’t have more than 1 cero (0.0) in the array, this one is around 50% faster (I hope) ( fn Compare v1 v2 = ( if v1[1] > v2[1] then …

5 years ago
Forum
Reply
RE: The Challenge >>> Limit number of non-zero items of array by specified count

You could replace: for k=1 to tab.count do arr[tab[k][2]] = if k > num then tab[k][1] else 0 by for k = 1 to num do arr[tab[k][2]] = 0 A little b…

5 years ago
Forum
Reply
RE: The Challenge >>> Limit number of non-zero items of array by specified count

I still see the same problem for array: #(-1, 5, 5, 5, 5, 0, 2, -5, 0, 0, 0) it returns: #(0, 5.0, 5.0, 5.0, 5.0, 0, 2.0, 0, 0, 0, 0.0) Where there …

5 years ago
Forum
Reply
RE: The Challenge >>> Limit number of non-zero items of array by specified count

Still has some issues I think: tt = #(-1, 5, 5, 5, 5, 0, 2, -5, 0, 0, 0) limit = 6 returns #(0, 5.0, 5.0, 5.0, 5.0, 0, 2.0, 0, 0, 0, 0.0)

5 years ago
Forum
Page 12 / 113