Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5,171
» Latest member: Jeane
» Forum threads: 6,088
» Forum posts: 51,287
Full Statistics
|
Online Users |
There are currently 1021 online users. » 0 Member(s) | 1018 Guest(s) Baidu, Bing, Google
|
Latest Threads |
Final Sticker Back Standa...
Forum: Official File Specifications/Standards
Last Post: Orion Pobursky
4 hours ago
» Replies: 0
» Views: 33
|
LDraw.org 2025-06 Parts U...
Forum: LDraw.org Announcements
Last Post: Orion Pobursky
10 hours ago
» Replies: 5
» Views: 1,145
|
Part Request: Plastic Sci...
Forum: Part Requests
Last Post: Dmitry
Yesterday, 7:14
» Replies: 7
» Views: 1,655
|
Updates of the Bricklink ...
Forum: Parts Authoring
Last Post: Peter Blomberg
Yesterday, 4:52
» Replies: 7
» Views: 898
|
Possible duplicate faces ...
Forum: Parts Authoring
Last Post: Peter Blomberg
Yesterday, 4:39
» Replies: 1
» Views: 84
|
Are conditional lines ste...
Forum: Parts Authoring
Last Post: Peter Blomberg
2025-07-21, 20:59
» Replies: 1
» Views: 1,027
|
3D print LEGO element
Forum: Off-Topic
Last Post: Nate87
2025-07-21, 19:39
» Replies: 18
» Views: 9,469
|
Most Common Parts that re...
Forum: Part Requests
Last Post: Peter Blomberg
2025-07-20, 11:35
» Replies: 34
» Views: 14,804
|
Can we get the part 4364p...
Forum: Part Requests
Last Post: Vincent Messenet
2025-07-20, 9:40
» Replies: 3
» Views: 270
|
LDraw Additional-Tools-In...
Forum: LDraw.org Announcements
Last Post: Willy Tschager
2025-07-20, 9:30
» Replies: 0
» Views: 119
|
|
|
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
|
|
|
|