Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 237 online users. » 2 Member(s) | 231 Guest(s) Baidu, Bing, Google, Yandex
|
Latest Threads |
2003 Pattern
Forum: Parts Authoring
Last Post: Javier Orquera
3 hours ago
» Replies: 1
» Views: 154
|
Part Request - 51008pb01 ...
Forum: Part Requests
Last Post: Stefano
4 hours ago
» Replies: 3
» Views: 2,645
|
reviewing obsoleted parts
Forum: Parts Tracker Discussion
Last Post: Peter Blomberg
4 hours ago
» Replies: 2
» Views: 224
|
Part Request: 90190 & 902...
Forum: Part Requests
Last Post: Julian Raymond Ruan
Today, 0:49
» Replies: 1
» Views: 2,310
|
I'm going to be getting a...
Forum: Parts Authoring
Last Post: Hageta
Yesterday, 22:37
» Replies: 8
» Views: 496
|
Third voting option?
Forum: Website Suggestions/Requests/Discussion
Last Post: Peter Blomberg
Yesterday, 21:48
» Replies: 4
» Views: 1,087
|
Primref wiki
Forum: Website Suggestions/Requests/Discussion
Last Post: Magnus Forsberg
Yesterday, 15:08
» Replies: 0
» Views: 243
|
Dots 1x1 printed alphabet...
Forum: Part Requests
Last Post: Orion Pobursky
Yesterday, 6:28
» Replies: 4
» Views: 520
|
Koala animal part 2589pb0...
Forum: Part Requests
Last Post: Ollie
Yesterday, 2:02
» Replies: 0
» Views: 304
|
Stud groups
Forum: Official File Specifications/Standards
Last Post: Magnus Forsberg
2025-09-18, 20:34
» Replies: 1
» Views: 508
|
|
|
Sticker or "Sticker on Part" preference? |
Posted by: ShireBrickz.com - 2021-09-27, 0:09 - Forum: Parts Authoring
- Replies (2)
|
 |
Hi Group,
I'm currently working on all of the stickers supplied with the new "Daily Bugle" set, model 76178 and the two sticker sheets supplied (76178stk01 and 76178stk02).
What is the preferred format to submit these decorated parts to the LDraw parts tracker? As a part with the sticker attached? or as the sticker alone?
Thanks in advance.
|
|
|
Save CPU/GPU in LDCad when Editing Large Models? |
Posted by: G.D. Grant - 2021-09-26, 21:52 - Forum: LDraw Editors and Viewers
- Replies (2)
|
 |
Is there a way to make the rendering a little cheaper in LDCad to save a bit of graphics power? I know I'm not using official computer terms, so it might get a little confusing, but I just want to know whether there's a way of making the curves less round in order to make it easier for a good-but-not-so-good computer to render the model in real-time in LDCad... A bit like the "Curve Quality" slider option in LDView?
See my computer doesn't have a GPU, so there's an adapter that allows the monitor to be dealt with by the CPU, which is an Intel Core i2 (if you never heard of it, that's because they don't even make them anymore ?.) Surprisingly, I've been using LDraw programs for quite a while now and always managed to work around this problem... But now I'm dealing with a model which has several baseplates and I'm planning on adding a few buildings as well, so it would be useful if I could avoid playing with fire ?... Already getting slow on the rendering and getting stuttery model rotation (if stuttery is a word, but I yeah.)
Thank you in advance for any help.
P.S. Maybe an alternative to my problem could be using another LDraw editor? I would be sad to have to change editors since LDCad is really my favourite so far but, if it works, I'd be OK with that too...
--
G.D. Grant
|
|
|
Lua - prompt and wait for selection? |
Posted by: David Manley - 2021-09-25, 4:23 - Forum: LDraw Editors and Viewers
- Replies (20)
|
 |
Hi Roland,
another LDCad scripting question for you.
I'm trying to write a script which will loop, prompt the user to select a particular part and then wait until the part is selected before moving to the next prompt/part selection. Looking through the sample Lua scripts, they seem to expect any part selections to be done prior to invoking the macro. But I'd like to have a script which will prompt the user as they go, so they don't have to remember the order in which to select the parts.
The Lua script I am using is invoked as a macro and looks something like this (it has been simplified to assist in understanding its purpose):
Code: -- Clear the current selection (if there is one).
local selected_item_lo = ldc.session.getCurrent():getSelection()
if (selected_item_lo ~= nil) then
selected_item_lo:remove()
end
-- Prompt for the appropriate part.
prompt_ls =
{
'Select the part/subfile which drives the rotation.'
}
linkage_phase_si = linkage_phase_si + 1
ldc.dialog.runMessage(prompt_ls[linkage_phase_si]);
-- Loop until an item is selected.
repeat
selected_item_lo = ldc.session.getCurrent():getSelection()
until (selected_item_lo:getRefCount() == 1)
ldc.dialog.runMessage('Done')
Basically, the intention of the script is to display a message dialog and, once the dialog is closed, wait until the user selects a part. However, when attempting to run this macro, the console open and displays the message
Code: "linkage_parts_select_gf" execution exceeded the maximum duration of 250ms.
linkage_parts_select_gf is the name of my macro containing the script.
Is there a "proper" way to achieve what I'm wanting to do (i.e. wait until a part is selected) using the LDCad Lua scripting?
Regards,
David
|
|
|
setEvent, 'run' and passing parameters to macro? |
Posted by: David Manley - 2021-09-25, 1:45 - Forum: LDraw Editors and Viewers
- Replies (2)
|
 |
Hi Roland,
with 1.7 scripting API in LDCad, is it possible to pass an argument to a macro when it is run? For example, if I have a macro named:
Code: linkage_parts_select_gf
which has a single argument
can a value be passed via the setEvent API e.g.
Code: macro_lo:setEvent('run', 'linkage_parts_select_gf', '1')
Regards,
David
|
|
|
|