MAXON CINEMA 4D: Cinema 4D Forum Adobe After Effects Forum

XPresso type and layout setup

COW Forums : Maxon Cinema 4D

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Xavier Shuster
XPresso type and layout setup
on Jul 3, 2019 at 11:16:19 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!



Return to posts index

Brian Jones
Re: XPresso type and layout setup
on Jul 3, 2019 at 4:42:35 pm

can you post that scene file?


Return to posts index

Xavier Shuster
Re: XPresso type and layout setup
on Jul 3, 2019 at 5:23:46 pm

Thanks for your reply Brian. Here is the scene

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


Return to posts index


Brian Jones
Re: XPresso type and layout setup
on Jul 4, 2019 at 1:06:41 am

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

13494_boolechoices.c4d.zip


Return to posts index

Sam Treadway
Re: XPresso type and layout setup
on Jul 4, 2019 at 3:25:14 am
Last Edited By Sam Treadway on Jul 4, 2019 at 3:44:08 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.


Return to posts index

Xavier Shuster
Re: XPresso type and layout setup
on Jul 4, 2019 at 7:21:46 am

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]