Insert effector into cloner[solved]
-
On 09/03/2017 at 05:00, xxxxxxxx wrote:
Hi,guys.
Sorry for the simple question,how to insert an effector into the effector list of the cloner object? my code is not working,but there is no errors in the console.I don't know what I am doing wrong or does have to add some another codes .here is my code as in the screenshot below :
_<_img src="https://www.c4dcafe.com/ipb/uploads/monthly_2017_03/58c15f524cd63_inserteffector.png.b08e04f02fe95e02bfe7c043c970eda2.png" height="148" width="613" border="0" /_>_
_<_img src="https://www.c4dcafe.com/ipb/uploads/monthly_2017_03/code.png.f9a48bd11e93661e73999f8c4fab005f.png" height="251" width="585" border="0" /_>_" />Thank you very much!
-
On 10/03/2017 at 02:37, xxxxxxxx wrote:
Hi,
I have moved this thread into the Python sub-forum.
You only need to write the InExcludeData back into the object and afterwards you should call EventAdd() to have the changes properly show up.
So adding these two lines will do the trick:cloner[c4d.ID_MG_MOTIONGENERATOR_EFFECTORLIST] = efflist c4d.EventAdd()
A few requests from my side:
Please do not cross-post on several forums. This only leads to several people investing time in parallel. I understand, you want to have an answer as fast as possible. But making people work redundantly is not the best solution.
Whenever possible try to post code as text using the
BBcodes
[URL-REMOVED] instead of screenshots. That's much easier to work with.This topic got discussed before. Even though our forum search is not the best, setting it to "Display Results As Topics" and "Search Forum: PYTHON Development" is not all bad. With search term "InExcludeData" the search reveals several threads that are potentially helpful in this case:
https://developers.maxon.net/forum/topic/8210/10702_inexclude-in-python&KW=InExcludeData
https://developers.maxon.net/forum/topic/8141/10603_mesh-defofmer-cages&KW=InExcludeData
https://developers.maxon.net/forum/topic/7186/8214_effector-into-cloner&KW=InExcludeDataI hope you don't mind.
[URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.
-
On 10/03/2017 at 18:13, xxxxxxxx wrote:
Hi,Andreas.
My question was answered with your code.I'm sorry! I am a newer,I still don't know the use of BBS rules.Thank you for your advice,I will pay attention to the thing that you point out.
Best Wishes!