# Change Stack Mode with Python

**URL:** <https://community.shotgridsoftware.com/t/change-stack-mode-with-python/17032>\
**Category:** RV\
**Tags:** python-api\
**Created:** [March 20, 2023, 1:51pm UTC](https://community.shotgridsoftware.com/t/change-stack-mode-with-python/17032 "2023-03-20T13:51:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Cyantist](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@Cyantist](https://community.shotgridsoftware.com/u/Cyantist)\
**Post date:** [March 20, 2023, 2:41pm UTC](https://community.shotgridsoftware.com/t/change-stack-mode-with-python/17032/3 "2023-03-20T14:41:19Z")

</div>

Hi,

Thanks for the reply and feedback, I wasn’t aware that I could use setStringProperty to interact with rv this way. Since I launched my stack creation with python, I ended up by directly doing this:

> [rv.commands.setStringProperty(‘{stack}.composite.type’.format(stack=stack), [‘replace’], True) for stack in rv.commands.nodesOfType(‘RVStack’)]

Best regards,

Dimitri

---

_[View the full topic](https://community.shotgridsoftware.com/t/change-stack-mode-with-python/17032)._
