deathevor
@deathevor
New Member
Joined: Feb 15, 2024
Topics: 3 / Replies: 14
Reply
RE: getFilenamePath on load problem?

Final structure of script: global Scriptname = getThisScriptFilename() global Scriptpath = (getFilenamePath Scriptname) global configfilepath = …

12 years ago
Forum
Reply
RE: getFilenamePath on load problem?

Thanks Bobo, I was updating my previous answer while you added yours. I’ve added that simplest solution is just to move function to the top of the s…

12 years ago
Forum
Reply
RE: getFilenamePath on load problem?

SOLVED!!! Sorry guy for very long discussion. But you really helped me to get to the source of the problem and prevent one more to happen. Here’s al…

12 years ago
Forum
Reply
RE: getFilenamePath on load problem?

Thanks Bobo for very informative answer. It really makes sense, that on evaluation the function still wasn’t read by engine, therefore doesn’t exist i…

12 years ago
Forum
Reply
RE: getFilenamePath on load problem?

Don’t worry about whole code – The error already exists in this peace of code: global Scriptname = getThisScriptFilename() global Scriptpath = (ge…

12 years ago
Forum
Reply
RE: getFilenamePath on load problem?

Sorry, the code is huge, so had to get to the very basic explanation of problem (which I didn’t know). Other way it would be total mess. However, sti…

12 years ago
Forum
Reply
RE: getFilenamePath on load problem?

Right got the core of the error. And it is due to function. However still don’t know how to fix it. Here are both scripts – In this file I’ve inclu…

12 years ago
Forum
Reply
RE: getFilenamePath on load problem?

If I understood you correctly Maybe I’m wrong but it looks like it hates to send path as function parameter. Will to few tests and will post them …

12 years ago
Forum
Reply
RE: getFilenamePath on load problem?

Just tried to make completely new script with just this: global Scriptname1 = getThisScriptFilename() global Scriptpath1 = (getFilenamePath Scriptna…

12 years ago
Forum
Reply
RE: getFilenamePath on load problem?

Probably I understand what you mean. It’s like in C++, first you have to allocate memory: int x = 0; and only the modify it. Ok I’ve added folowing …

12 years ago
Forum
Reply
RE: getFilenamePath on load problem?

At this stage, I’m loading it manually, later it will be just called by button. Scriptname and Scriptpath are defined as global as they will be used …

12 years ago
Forum
Topic
Forum
Replies: 21
Views: 265
Reply
RE: Delete modifier by name?

Thank you all guys, both ways are nice: deleteModifier o (o.modifiers[#BrickDisplace]) Perfect one! I knew it should work this way, but didn’t man…

12 years ago
Forum
Topic
Forum
Replies: 28
Views: 219
Reply
RE: selection[1].modifier link to Pick button?

Got it working thanks – on btnpick picked obj do global uv = obj.modifiers[ #unwrap_uvw ]; local verts = (uv.NumberVertices()); Another question:…

13 years ago
Forum
Page 1 / 2