Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

sc.doc.ActiveDoc.Objects.ModifyAttributes example?

$
0
0

@ivelin.peychev wrote:

Hi,

Can I get an example using:

sc.doc.ActiveDoc.Objects.ModifyAttributes()

Help on built-in function ModifyAttributes

| ModifyAttributes(…)
| ModifyAttributes(self: ObjectTable, objectId: Guid, newAttributes: ObjectAttributes, quiet: bool) -> bool
|
| Modifies an object’s attributes. Cannot be used to change object id.
|
| objectId: Id of object to modify.
| newAttributes: new attributes.
| quiet: if true, then warning message boxes are disabled.
| Returns: true if successful.
| ModifyAttributes(self: ObjectTable, obj: RhinoObject, newAttributes: ObjectAttributes, quiet: bool) -> bool
|
| Modifies an object’s attributes. Cannot be used to change object id.
|
| obj: object to modify.
| newAttributes: new attributes.
| quiet: if true, then warning message boxes are disabled.
| Returns: true if successful.
| ModifyAttributes(self: ObjectTable, objref: ObjRef, newAttributes: ObjectAttributes, quiet: bool) -> bool
|
| Modifies an object’s attributes. Cannot be used to change object id.
|
| objref: reference to object to modify.
| newAttributes: new attributes.
| quiet: if true, then warning message boxes are disabled.
| Returns: true if successful.
|

Where is this self: ObjectTable coming from?

Posts: 20

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles