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


RE: Restricting parts to whole number x,y,z script
#8
(2023-11-28, 22:42)RolandĀ Melkert Wrote: 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)

Thanks for the advice, I think I will just stay away from models with over 100 submodels for now Big Grin
Reply
« Next Oldest | Next Newest »



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

Forum Jump:


Users browsing this thread: 2 Guest(s)