• Get rotation of animated object with python

    python windows
    2
    0 Votes
    2 Posts
    660 Views
    a_blockA
    Hi, don't be surprised, I have turned your thread into a question. The problem is, that the document will actually not be animated (or lets rather say, it will not be evaluated or executed) when calling SetTime(). Additionally you need to call ExecutePasses(). The BaseDocument manual in our C++ SDK documentation contains some extra information on this topic in the sections Time and Animate. Cheers, Andreas
  • Crash in class SetUsedFrameworks

    c++ macos
    5
    0 Votes
    5 Posts
    1k Views
    fwilleke80F
    Hi Ricardo, I can't do that, unfortunately. There are several reasons why I cannot update my machine to a later OSX version than El Capitan, at the moment. I did not encounter any problems so far that could be tracked down to the XCode version. Btw, I solved the problem. For some reason, after running the Project Tool again in a fuzzy "F*** it, it has has to work!" moment, things started working. I am stumped, as I don't know the reason, but anyway, the problem's gone. Cheers, Frank
  • Scaling Vector attributes

    c++
    4
    0 Votes
    4 Posts
    998 Views
    a_blockA
    Hi Roger, with respect to the Scale tool, yes, it is impossible to have individual parameters of a custom object scaled non-uniformly. Of course (but I'm sure you are aware, just mentioning for completeness here) such parameters can be scaled non-uniformly via the Attribute manager. Also you could implement handles for such, so the user can access these via the viewport. And the last option could be to implement your own scale tool. I'm sorry, I know, none of these options is very convenient, but unfortunately I have nothing better to offer. Cheers, Andreas
  • Get type name by Id

    c++
    5
    0 Votes
    5 Posts
    1k Views
    rsodreR
    @s_bach I've tried GetPlugin but even returning the BasePlugin pointer, GetName() was always empty for my custom baseObjects. Edit: GetName() works, GetTypeName() don't. But GetObjectName() is perfect for me, thanks!
  • What message or Id do I get when the user select a tab in my dialog?

    3
    0 Votes
    3 Posts
    913 Views
    P
    Thank you! In future I will set the tags.
  • Setting texture paths with plugin on startup

    r20 python
    9
    0 Votes
    9 Posts
    3k Views
    B
    Omg! I had an old version of the plugin defined in the Plugins list in prefs that set the paths to []. Blush Deluxe! Sorry for wasting your time. Works perfectly fine. Regards Bonsak
  • Drag-n-drop

    r19 c++
    3
    0 Votes
    3 Posts
    778 Views
    C4DSC
    @s_bach Yes the BasePlugin I already obtained and got its ID, as well as its name. Was just wondering what the 9 represented, in order to use the appropriate defined keyword instead of the value. Thanks for the "PLUGINTYPE::TOOL"
  • SetPixel() for 32 bit float images

    python r20 sdk
    3
    0 Votes
    3 Posts
    893 Views
    O
    Thanks so much this is exactly what I was looking for.
  • ReferenceError?

    Moved python
    6
    0 Votes
    6 Posts
    2k Views
    a_blockA
    Hi, first of all thanks to @Cairyn for nice explanations and helping in solving this. I'd just like to add a link to one of our examples, pretty much demonstrating this workflow: mengersponge.py (plus the scene file). @Jvos : I hope you don't mind, may I ask you to please open a new topic for unrelated topics/questions. I have also moved this thread into the Cinema 4D Development category, added some tags and turned the thread into a question. Cheers, Andreas
  • C4D GUI Python Callback

    python
    4
    0 Votes
    4 Posts
    1k Views
    Y
    Hi, A string with format "PLUGIN_CMD_123456" is meant to be used with MENURESOURCE_COMMAND, not RegisterCommandPlugin(). It tells Cinema the command ID and name for the menu item to be added. Note the sub-IDs returned from GetSubContainer() are specific to a command and aren't global to Cinema. Maybe CommandData isn't what you really need. Scripts from the user folder are automatically loaded and can be added to any menu using Customize Menus dialog.
  • Get userdata Button state on object in Python tag

    python r20
    7
    0 Votes
    7 Posts
    3k Views
    B
    Ah! So event_data['msg_data']['id'] is the id of the userdata. Didnt read your code comments Thanks alot! Regards Bonsak
  • Getting MoData in GVO of a ObjectData Plugin

    c++ windows macos
    13
    0 Votes
    13 Posts
    4k Views
    codysorgenfreyC
    @m_adam thanks so much for all your help on this!
  • No fbx exporter in python library?

    r20 python
    2
    0 Votes
    2 Posts
    979 Views
    Y
    Hi Rage, Unfortunately several importers and exporters do not have a constant for their ID. This is the case for FBX. The ID for the FBX exporter is 1026370. To find the ID of a specific exporter you can use the following code: import c4d saverPlugs = c4d.plugins.FilterPluginList(c4d.PLUGINTYPE_SCENESAVER, True) for plug in saverPlugs: print('{} : {}'.format(plug.GetName(), plug.GetID())) I turned the topic into a Q&A. Please remind to use this feature of the forum.
  • Set Tracers "trace link" (inExclude) field from python tag

    r20 python
    3
    0 Votes
    3 Posts
    792 Views
    B
    Awesome! Thanks. Regards Bonsak
  • Tell the HTML Viewer to ignore javascript

    c++ r20 windows
    5
    0 Votes
    5 Posts
    1k Views
    kbarK
    One last note. I just tried this on OSX and it works fine. So it is just an issue for Windows machines and whatever version of IE the widget is using.
  • ParseTupleAndKeywords in R20

    c++ r20 python
    5
    0 Votes
    5 Posts
    1k Views
    V
    @y_puech said in ParseTupleAndKeywords in R20: Hi Victor, There's a logic error in the code you posted from the first post. The condition for R20 if (str.IsEmpty()!=false) returns false if the string has content. It makes more sense to call IsPopulated() for the R20 code instead of IsEmpty(). You are right, thank you!!!
  • Move/Copy Constructors documentation

    r19 r20 c++
    2
    1 Votes
    2 Posts
    720 Views
    a_blockA
    Hi, in general your approach looks correct to us. Somehow I'm starting to regret we have a thoughtful and attentive community here. We can not hide a single change/omission in the docs without any one of you finding out about it... sigh! Yes, indeed the "Move/Copy Constructors" manual has been removed from the R20 docs, as it needed thorough review and at least partly rewriting we did not find the time for, yet. But it wasn't removed without at least partial replacement. Especially for your case the BaseArray manual contains a section on implementing classes for use with BaseArray. Thanks for the idea of a "documentation issue" tag. Cheers, Andreas
  • FileSelect for multiple files

    2
    0 Votes
    2 Posts
    702 Views
    a_blockA
    Hi, yes, you are right, this is currently not supported. I have filed an "idea" for our development. Cheers, Andreas
  • n-gones with python

    Moved python
    3
    0 Votes
    3 Posts
    933 Views
    Passion3DP
    Hi @eZioPan thank you for this example very clear
  • SetInt32 fails on ComboBox even if the change occurs

    c++ windows r20
    3
    0 Votes
    3 Posts
    858 Views
    X
    @a_block No inconvenience at all, just happy to hear it's not only me!