LDCad Restricting parts to whole number x,y,z script


RE: Restricting parts to whole number x,y,z script
#7
(2023-11-28, 22:26)Ironmatt Wrote: So back to my origonal question, is there a way to access submodels in scripts, or is that not possible

To apply it to submodels you'll have to recursively handle all references. Problem being you want to restrict that to the current mpd and excluding parts. You also need to keep track of a 'localToGlobal' transformation matrix.

This all is possible but a pain to code.

An easier way would be to process the current selection instead of the current model's references. That way you can use nested mode to select everything no matter the model it resides in.

Only limitation isĀ  all submodels can only be used once, if not weird things might happen as parts inside models used multiple items would have multiple solutions (last should win though)
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Restricting parts to whole number x,y,z script - by Roland Melkert - 2023-11-28, 22:42

Forum Jump:


Users browsing this thread: 3 Guest(s)