• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Apply transformations to nested DC components

Scheduled Pinned Locked Moved Developers' Forum
2 Posts 2 Posters 142 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    JonD
    last edited by 16 Aug 2009, 20:07

    I have a model of a dock system. The system contains 4'x8' Dynamic components that are 'patterned' using DC functions based on the 'copies'. The model contains nested components that make the dock system into an L or T shape. I am trying to write a script to find the X axis location of each section with respect to the model origin and modify a DC value 'waterdepth' based on the x axis location.

    My initial approach is to get the x axis value of a vertice of the bounding box, but I do not know how to apply the parent transformations of the nested components. Is there a better way of find the bounding box location with respect to the top level model origin? The bounding box method is working for first level components, but the lower level components return untransformed values.

    Hopefully this is clearer than mud...

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 16 Aug 2009, 20:33

      You need to keep applying ' parent.transformation' to it...

      If it's being edited the ' model.edit_tranform' helps...

      TIG

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        2/2
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement