Scale Sop to fit Bbox

   3212   2   1
User Avatar
Member
225 posts
Joined: 7月 2005
Offline
Hi Guys,

Is there a way to scale the Display/Render SOP of a network to fit an arbitrarily (re)sized bounding box in python?

Thanks in advance

Lyn
User Avatar
Member
7734 posts
Joined: 7月 2005
Online
There's probably no ready made function but you just need to take the bbox of your geometry and for each dimension, fit the point coordinate from the old range to the new range.
User Avatar
Member
225 posts
Joined: 7月 2005
Offline
That sounds like an idea, I'll have a go at it.

Thanks Edward
  • Quick Links