Jump to content

Vitaly Anikienko

Limited Member
  • Posts

    16
  • Joined

  • Last visited

Everything posted by Vitaly Anikienko

  1. This is simplified alternative version of how it is working. I am using this approach to get list of data from selected one-by-one objects. This is the "Link" I am using to pick objects. And it has recognisable look. Need to click on Link only once, to do not clicking on it each time when I need to select next object. I even don`t know correct naming of that "Link" in C4d API. There are few, and no info about selecting. Sorry, in Ukraine .ru zone not working. And don`t want to read anything in russian anymore. Thanks for posting poems anyway.
  2. Thanks for respond`s on question with a screenshot. There is no need in additional information and description how it should work. The question is how to activate selection of exact Link with Python, to link object. Thanks for cooperation and impact.
  3. I can not share the whole idea. "HOW TO RUN WITH PYTHON "SELECTING MODE" OF USERDATA`S - LINK?" "Can somebody help me with activating this button with script? " I think this sentences can understand anyone. You just don`t know an answer. - What are you trying to achieve? - List of data from picked objects successively . successively - immediately one after another So once you made a click on exact Link button, python run a loop, so there would be no need in clicking on Link button each time to select next object. Esc to stop the loop. It works with deleting link, after data took from linked object. Clicking every time on link button to select next object is not very handy. I have described issue, would be grateful for any keyword, how that button named in API.
  4. Can somebody help me with activating this button with script? When I am picking object with Link, Script Log tells only: c4d.ID_USERDATA,26 c4d.CallButton(object(), c4d.ID_USERDATA,26) - not works due to obvious reasons - it is not a general button.
  5. Well, I was trying to avoid using it, but actually it is works good. Here is a sample size = op.GetRad() sizes = [size.x, size.y, size.z] txt[c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_Y] = size.y * 2
  6. I need to read Y Size, because it would be shortest code in this way. I know that I need to use c4d.utils.GetBBox(pObj, mg), but have no examples how to use it.
  7. I made a solution for old versions of C4d where is no capsule Inside Python Generator write following: import c4d def main(): txt = c4d.BaseList2D(c4d.Osplinetext) extrude = c4d.BaseList2D(c4d.Oextrude) txt.InsertUnder(extrude) txt[c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_Y] = 50 txt[c4d.PRIM_TEXT_TEXT] = "First Line\nSecond Lin" txt[c4d.PRIM_TEXT_ALIGN] = 1 return extrude
  8. Yep! Thanks KALUGIN! c4d.utils.MatrixToHPB what I was looking for!
  9. I tried control position through placement into Null, but it is not handy. Effector Plain not good for copies of Motext with multi-lines, and different amount in this lines. So is there any way maybe to have a secondary, fake pivot?
  10. @BENTRAJE can you please show how to do the same in python? Want to try to write creating copy over, selected object
  11. Hm, I just don`t get how you did it. Thanks, now understood. Tanks!
  12. @BENTRAJE Thanks! I am trying to find a way how to read rotation from object picked by Link. Is it possible? Maybe with python is better, because R19 can not contain some Xpresso Nodes, and R19 is mandatory to me.
  13. So my idea to pick object with Link to read it rotation data. I have no Idea how to read data from instance tag in Xpresso.
×
×
  • Create New...