+ Reply to Thread
Results 1 to 3 of 3

Thread: How could I bind the shape attributes to rules attr in python script

  1. #1
    gou zhun
    Join Date
    Nov 2011
    Posts
    13
    Points
    0
    Answers Provided
    0


    0

    Default How could I bind the shape attributes to rules attr in python script

    HI, I want to batch export my model from cityengine without setting attr in UI,but in the py script I don't know how to bind the shape attr to rules attr.
    please help!
    thanks!

    gouzhun

  2. #2
    Matthias Buehler

    Join Date
    Oct 2011
    Posts
    1,688
    Points
    441
    Answers Provided
    142


    0
    This post is marked as the answer

    Default Re: How could I bind the shape attributes to rules attr in python script

    I'm not perfectly sure if I understood correctly, but I gues this is what you need :

    ce.setAttributeSource()


    check the Help Menu for the Python docs under :

    CityEngine Help > Python Scripting > Scripting Interface Usage > Commands by Category

    and search for that command.


    does this work ?
    _________________

    CityEngine Machinist

    * YOUTUBE CHANNEL : www.youtube.com/channel/UCNS4TLgToEDQiH9pi06ofOA
    * tutorial videos : http://forums.arcgis.com/threads/648...URCES-FAQ-HELP
    * Please use the rating buttons on the right side !

  3. #3
    gou zhun
    Join Date
    Nov 2011
    Posts
    13
    Points
    0
    Answers Provided
    0


    0

    Default Re: How could I bind the shape attributes to rules attr in python script

    Quote Originally Posted by matthiasbuehler View Post
    I'm not perfectly sure if I understood correctly, but I gues this is what you need :

    ce.setAttributeSource()


    check the Help Menu for the Python docs under :

    CityEngine Help > Python Scripting > Scripting Interface Usage > Commands by Category

    and search for that command.


    does this work ?
    Yes!
    With your suggestion,I've solved the problem smoothly,thanks for your help,matthiasbuehler!

    gouzhun

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts