MarcoBrunetta
@marcobrunetta
New Member
Joined: Feb 15, 2024
Topics: 14 / Replies: 255
Reply
RE: Macroscript error turning lights on and off

Let’s see who can write the longest version now.

16 years ago
Forum
Reply
RE: Macroscript error turning lights on and off

Well, I was going for readability before, but how about: FOR l in $lights WHERE l.isSelected DO TRY l.on = NOT l.on CATCH() clearSelection()

16 years ago
Forum
Reply
RE: Macroscript error turning lights on and off

Well the $ variable is a bit weird in that it will hold the currently selected item if ONLY ONE item is selected and an array of items when many items…

16 years ago
Forum
Reply
RE: Maxscript – loop – wait for finished rendering?

print (“D:\\01_studium\\2008-2009 – diplom\\diplom\\300_-_verteidigung\\prototyp\\sources\\render\\”+(focal[b] as string)+”mm\\stadt_” + (dist[a] as s…

16 years ago
Forum
Reply
RE: Maxscript – loop – wait for finished rendering?

Cool Well, if you need any more help, you know where to find us…

16 years ago
Forum
Reply
RE: Maxscript – loop – wait for finished rendering?

Hehe I make no promises it will fix it. gc() calls the internal garbage collect, so it “should” free some memory if no longer needed. Check “Manual Ga…

16 years ago
Forum
Reply
RE: Maxscript – loop – wait for finished rendering?

Most likely it ran out of memory… try adding gc() at the end of the loop. And monitor the system memory to see if that’s really the problem.

16 years ago
Forum
Reply
RE: Maxscript – loop – wait for finished rendering?

I’m not sure if you can do it from the render function directly, but maybe using the RenderElementMgr interface?

16 years ago
Forum
Reply
RE: Maxscript – loop – wait for finished rendering?

I would think that if you call the render() function from within the loop it should continue looping after the render is done. It does not happen that…

16 years ago
Forum
Reply
RE: Floating Viewport

gw.getViewportDIB()

16 years ago
Forum
Reply
RE: Question about, calling local values between functions.

Like Legie said there are several ways to go about this. One option would be to pre-declare the variables where you are going to store the array. So …

16 years ago
Forum
Reply
RE: Optimized bounding sphere?

You could find the distance between the individual vertices and $.center and use the bigger distance as the sphere’s radius. On very high poly items i…

16 years ago
Forum
Reply
RE: modifier parameter type

You can use the items property to access the array of text strings. Then you can use the integer index to get the array you want. Is that what you mea…

16 years ago
Forum
Reply
RE: OpenFlight access

Have you tried “showProperties theNode” ?

16 years ago
Forum
Reply
RE: Automated Material Editing

Hehe, besides changing the script, you needed to re-evaluate it. Scripts need to be evaluated before they can be used (somewhat like how most programs…

16 years ago
Forum
Page 10 / 18