Notifications
Clear all

[Closed] Simple Window Creator

Thought I’d just share this one and get some feedback.
I think there’s a problem with the mouse tool that lets you pick openable lights – might be a coordsys issue – any help on this much appreciated.

Alex

7 Replies

Any ideas on why when selecting opening lights by clicking in the viewport, the script keeps on selecting the wrong ones?? Anyone??

hmmmmmm! anyone here?

Hi Alex – I’ll take a quick look and get back to you.

Matt

Hehe…a cunning plan eh?

Cheers Matt, I think everything works apart from clicking in the viewport to nominate openable lights. It seems to get confused by which splines to tag.
What the script does is take the centres of each interior spline and check the distances to the mouse click. There’s no error checking for dups right now…but I dont think that should be a problem as the flags are set in an array and setting them twice or more shouldnt change things.
I suspect that the bit which checks distances is at fault, but my math isnt up to trouble-shooting it.

How’s work on the material converter going??

Ah – the Material Converter – slowly is the answer, my workload keeps getting in the way. I have started on Maxwell conversion grids and I’m about half-way through the fR-Advanced -> Standard retro conversion grid but its all taking a long time. The new engine is working well though and I’ve added a few new features – nothing major, just little things like replacing missing materials, hopefully they’ll be useful to some people.

I’m looking at your script – there’s also a problem with the light creation, it works fine on one of your test rectangles but not the other – you get misplaced lights. Looking at it I think you might be making work for yourself with the addKnot methods rather than just creating new rectangles straight. But I’ll try and unpick the math to see if I can find the problem.

Just an update – still trying to get to the bottom of this one – its a bit strange. The code looks correct so there is either something fundamental wrong with the logic (don’t think there is) or there’s something odd happening with Coordsys.

Hi Matt,

Thanks for taking the time. I thought it might be the context in the mouse tool that was messing things up, as everything else seemed ok. Can you explain more on the creation of lights screwing up? Not had that problem yet, but not tested the thing exhaustively either

Alex