Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D XPresso type and layout setup

  • XPresso type and layout setup

    Posted by Xavier Shuster on July 3, 2019 at 11:16 am

    I don’t use xpresso often and can’t figure out how to solve this. There is probably some simple solution but I don’t see it.

    I would like to create a setup where I can choose a type and layout of certain objects (example attached). And if I choose for instance type-flat and layout-4 then only this one object should be visible on the scene. Tried already with the compare node but it doesn’t work, at least I can’t make it work.

    Thanks!

    Xavier Shuster replied 6 years, 10 months ago 3 Members · 5 Replies
  • 5 Replies
  • Brian Jones

    July 3, 2019 at 4:42 pm

    can you post that scene file?

  • Xavier Shuster

    July 3, 2019 at 5:23 pm

    Thanks for your reply Brian. Here is the scene

    https://www.dropbox.com/s/ujy7bbah1pk9cqg/Scene.c4d?dl=0

  • Brian Jones

    July 4, 2019 at 1:06 am

    this feels kind of brute force-y but for what it’s worth

    13494_boolechoices.c4d.zip

  • Sam Treadway

    July 4, 2019 at 3:25 am

    Here is a simpler setup and expression that takes advantage of the power of cloners.

    13498_drawerselectorrig.c4d.zip

    Explanation:
    In the xPresso tag:
    – The ‘Type’ option triggers visibility of the Cloners which have the Layouts as children.
    – The cloners are setup with ‘Fix Clone’ turned OFF which keeps the clones in their original locations.
    – The cloner ‘Count’ parameter is set to 1 so only one of the children is displayed at a time.
    – The ‘Clones’ parameter of each cloner is set to ‘Iterate’ so that the children will be read sequentially.
    – The Drawer ‘layout’ option drives each cloner’s ‘Offset’ parameter which selects which of the children to display.

  • Xavier Shuster

    July 4, 2019 at 7:21 am

    WOW! Thanks a lot guys! Great solutions!!!!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy