Jump to content

LuiNogueira

Limited Member
  • Posts

    7
  • Joined

  • Last visited

  • Days Won

    1

LuiNogueira last won the day on December 7

LuiNogueira had the most liked content!

Profile Information

  • First Name
    Lui
  • Last Name
    Nogueira
  • Location
    Sorocaba

LuiNogueira's Achievements

Newbie

Newbie (1/14)

  • Dedicated
  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

5

Reputation

  1. @Smolak import c4d def main(): objs = doc.GetActiveObjects(0) for index, obj in enumerate(objs): inst = c4d.BaseObject(c4d.Oinstance) inst.InsertAfter(obj) inst[c4d.INSTANCEOBJECT_LINK] = obj inst.SetName(obj.GetName()+"_inst") orig_pos = c4d.BaseObject.GetAbsPos(obj) orig_rot = c4d.BaseObject.GetAbsRot(obj) orig_scl = c4d.BaseObject.GetAbsScale(obj) print(orig_pos, orig_rot, orig_scl) inst.SetAbsPos(orig_pos) inst.SetAbsRot(orig_rot) inst.SetAbsScale(orig_scl) if index == 0: doc.SetActiveObject(inst, mode=c4d.SELECTION_NEW) else: doc.SetActiveObject(inst, mode=c4d.SELECTION_ADD) c4d.EventAdd() if __name__=='__main__': main()
  2. Awesome script, but it doesn't copy the object's position, rotation, and scale. Here's a version that does that: import c4d def main(): objs = doc.GetActiveObjects(0) for obj in objs: inst = c4d.BaseObject(c4d.Oinstance) inst.InsertAfter(obj) inst[c4d.INSTANCEOBJECT_LINK] = obj inst.SetName(obj.GetName()+"_inst") orig_pos = c4d.BaseObject.GetAbsPos(obj) orig_rot = c4d.BaseObject.GetAbsRot(obj) orig_scl = c4d.BaseObject.GetAbsScale(obj) print(orig_pos, orig_rot, orig_scl) inst.SetAbsPos(orig_pos) inst.SetAbsRot(orig_rot) inst.SetAbsScale(orig_scl) c4d.EventAdd() if __name__=='__main__': main()
  3. The setup is working but it's not optimized, it's creating unwanted geometry inside the stair. In the end, I needed to deliver the project so I went the old way by doing it manually. Thank you very much @Hrvoje
  4. Hello @Hrvoje, awesome tip, thank you. You solved the Select Facing issue for the first half of the node tree, but as soon I added another Select Facing, but now selecting all polygons facing the Y+ direction (with the same changes you have proposed inside the node tree) it stopped working again. Do you know what could be happening? Thank you very much for your help! stair_generator_v02.c4d
  5. Hello! I'm trying to create a stair generator with scene nodes, but as soon I use a Select Facing node inside a Loop Carried Value node the looping stop working. Does someone know what could be happening? Thanks! stair generator.c4d
×
×
  • Create New...