Get a 30% discount on Cascadeur Pro or Indie subscriptions until June 9th! 🎉 Use my code "Aron30" when purchasing here: link.xsolla.com/moAtYrxn. Using the affiliate link also helps support the channel, and I really appreciate your support! 🙏 What kind of scripts would be useful to you? Let me know in the comments below! I'd love to hear your ideas and see how I can help you with your projects.
This is my kind of Cascadeur video 🫠 I'm doing some client work in Cascadeur now and have been working in Houdini a lot recently ... I'm interested in exploring the node editor and Python API a lot more and stuff like retargeting motions!
Hey man, ur videos are amazing! do you know how i can write a script that retrieves the rotation values of all objects in all key frames using the api. I'm struggling a lot.. my goal is to generate a json file at the end since my animation program I'd like to import into only accepts json format. The json part i can probably do on my own but the data retreival seems kinda difficult to me. Thanks so much in advance!!
Hey, thank you! To get the rotation value you can do it based on how I get the global_position here (10:30). Instead of position you would need either local_rotation or global_rotation. You would probably need to process the values based on what you need (euler or quaternion and degrees or radian). To get all objects in your scene: model_viewer = scene.model_viewer() objects = model_viewer.get_objects() This returns a python list of all the object ID-s. You can iterate over them and get all rotations on all frames. If you want to get how long your animation is you can do it layer by layer with the layer viewer: lv = scene.layers_viewer() lv.all_layer_ids() for layer_id in layer_ids: layer = lv.layer(layer_id) last_key = layer.last_key_pos()
Get a 30% discount on Cascadeur Pro or Indie subscriptions until June 9th! 🎉 Use my code "Aron30" when purchasing here: link.xsolla.com/moAtYrxn.
Using the affiliate link also helps support the channel, and I really appreciate your support! 🙏
What kind of scripts would be useful to you? Let me know in the comments below!
I'd love to hear your ideas and see how I can help you with your projects.
This is my kind of Cascadeur video 🫠
I'm doing some client work in Cascadeur now and have been working in Houdini a lot recently ... I'm interested in exploring the node editor and Python API a lot more and stuff like retargeting motions!
Thanks Aaron!
I'm glad that at least one person is interested :D If you have anything specific you would like to know reach out to me on Discord.
Hey man, ur videos are amazing!
do you know how i can write a script that retrieves the rotation values of all objects in all key frames using the api. I'm struggling a lot.. my goal is to generate a json file at the end since my animation program I'd like to import into only accepts json format. The json part i can probably do on my own but the data retreival seems kinda difficult to me.
Thanks so much in advance!!
Hey, thank you!
To get the rotation value you can do it based on how I get the global_position here (10:30). Instead of position you would need either local_rotation or global_rotation. You would probably need to process the values based on what you need (euler or quaternion and degrees or radian).
To get all objects in your scene:
model_viewer = scene.model_viewer()
objects = model_viewer.get_objects()
This returns a python list of all the object ID-s. You can iterate over them and get all rotations on all frames.
If you want to get how long your animation is you can do it layer by layer with the layer viewer:
lv = scene.layers_viewer()
lv.all_layer_ids()
for layer_id in layer_ids:
layer = lv.layer(layer_id)
last_key = layer.last_key_pos()