Yes, yes, I know… I made a mistake: it should be:
if c != active: :-) Bartek Skorupa www.bartekskorupa.com On 21 wrz 2012, at 11:49, Bartek Skorupa (priv) <[email protected]> wrote: > In order to get "proper" parenting I use a little script: > > > active = bpy.context.active_object > selected = boy.context.selected_objects > for c in selected: > if c =! active: > m = c.matrix_world > c.parent = active > c.matrix_world = m > > > This gives me the behavior that I'd like to have under Ctl-P > > > The behavior that I'd like to have under Shift-Ctl-P would be this: > > > active = bpy.context.active_object > selected = boy.context.selected_objects > for c in selected: > if c =! active: > c.parent = active > > > Cheers > Bartek Skorupa > > www.bartekskorupa.com > > On 21 wrz 2012, at 11:08, Remigiusz Fiedler <[email protected]> wrote: > >> oops, haven't read your post to the end >> >>> There is of-course the option to parent objects using Shift-Ctl-P. This >>> creates >>> proper relation between "A"'s transform properties and its visual >>> transformations, >>> but it as well moves "A" to "B"'s location and it's not always the desired >>> result. >> _______________________________________________ >> Bf-committers mailing list >> [email protected] >> http://lists.blender.org/mailman/listinfo/bf-committers > > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
