Thanks again.@i_mazlov
I haven't studied C++ yet, but I'm glad to know that it's achievable with C++.
Posts made by freeter_e
-
RE: How to SetKeyframeSelection for Subfield
-
RE: How to SetKeyframeSelection for Subfield
Hello @i_mazlov
Thanks for the reply, and the thoughtful extended reading.I used the code you provided, but it doesn't seem to change the results.
-
How to SetKeyframeSelection for Subfield
Hello,
I want to know how to SetKeyframeSelection for subfield
here is my code
import c4d def main(): fields = op[c4d.FIELDS] first_layer = fields.GetLayersRoot().GetFirst() first_layer_UniqueID = first_layer.GetUniqueID() print (f"first_layer_name: {first_layer.GetName()}, UniqueID: {first_layer_UniqueID}" ) subfield = first_layer[c4d.FIELDLAYER_PROXIMITY_FIELDS] subfield_first_layer = subfield.GetLayersRoot().GetFirst() subfield_first_layer_UniqueID = subfield_first_layer.GetUniqueID() print (f"subfield_first_layer_name: {subfield_first_layer.GetName()}, UniqueID: {subfield_first_layer_UniqueID}" ) parameter_id = 440000260 #layer opacity op.SetKeyframeSelection([c4d.FIELDS , subfield_first_layer_UniqueID , parameter_id],True) #<---- I don't know how to write it for subfield #op.SetKeyframeSelection([c4d.FIELDLAYER_PROXIMITY_FIELDS , subfield_first_layer_UniqueID , parameter_id],True) if __name__ == '__main__': main() c4d.EventAdd()
-
RE: How to change the value here using python
@ferdinand
Thanks so much for such a detailed response.
Learned a lot.
My problem is solved.
Thank you very much. -
RE: How to change the value here using python
doc[c4d.PBDSCENE_SUBSTEPS] = 45
Execute the script and the result feels like it changes the value here
-
RE: How to change the value here using python
@ferdinand said in How to change the value here using python:
doc[c4d.PBDSCENE_SUBSTEPS] = 45
@ferdinand
It's not work.
substeps is still 20 -
How to change the value here using python
I don't know where to get this object() ( I mean this simulation scene object)
-
RE: Some functions can't be logged by script log, how do I implement?
@m_adam
OK.
Thank you very much.Cheers
-
RE: Some functions can't be logged by script log, how do I implement?
@m_adam
Thank you very much.
For learning, this is a good example.But this can only be implemented specific (it needs to be written in a script), I want a more free interaction, more "random" selection, depending on the current mouse selection (highlighted).
action "right click --> animation --> add keyframe selection" become a shortcut
But in the future try to open a topic for each question (in this case one for the KeyFrameSelection and another one for the Asset Browser).
Alright, received
Cheers
-
Some functions can't be logged by script log, how do I implement?
Hi
There are a couple of functions (as shown in the picture) that are used quite frequently, so I'd like to write a script in order to set up a shortcut to those functions.
But I don't know how to start.
What keywords should I search for in the SDK?
Thank you