Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

When writing a .ass file with a text editor

6 ANTWORTEN 6
Antworten
Nachricht 1 von 7
Anonymous
646 Aufrufe, 6 Antworten

When writing a .ass file with a text editor

Is it possible to apply a rotation to an object using a "rotate" command or can transformations only be applied using the "matrix" command? Is there a document that lists all the .ass commands?

6 ANTWORTEN 6
Nachricht 2 von 7
Stephen.Blair
als Antwort auf: Anonymous

There's no specification or docs for the ASS file format. You should use the Arnold API to create nodes and set parameters, and then call AiASSWrite.

Usually the plugins apply transformations directly to the mesh points, so the transformed vertex coords are exported.

There are no ass commands.



// Stephen Blair
// Arnold Renderer Support
Nachricht 3 von 7
Anonymous
als Antwort auf: Anonymous

Sorry Stephen I did not explain myself properly. I am experimenting with the simpleScene.ass script given here,

https://docs.arnoldrenderer.com/display/AFMUG/Creating+a+shader#CreatingaShader-1.1.1InstallingaC++C...

I am trying to use set_transform { } as follows.

sphere {

name pSphereShape1

center 0 0 0

radius 3

matrix 1 0 0 0 0 0 1 0 0 -1 0 0 0 0 0 1

shader "mkU2Color"

}

set_transform {

inputs "pSphereShape1"

enable true

scale 2.0 2.0 1.5

mode replace

}

kick is not complaining but the sphere is not scaled. I'm trying to determine to what extend I can write a .ass file directly with a text editor.

By "Arnold API" do you mean using the python classes found in the SDK/python/arnold directory? In which case is there any sample python code to get me started?

malcolm

Nachricht 4 von 7
Stephen.Blair
als Antwort auf: Anonymous

You can use either Python or C++

The Python bindings are for the Arnold C++ API

set_transform.inputs is for linking other operators.

set_transform.selection is the expression that selects nodes like pSphereShape1

pSphereShape1 is an implicit sphere that just has a radius and a center, so I kinda expect scaling it to do nothing. Try with a polymesh, see the attached ass file.

set-transform.zip

In general, I would look at how a plugin like sitoa does it, and then translate to Python

a few simple examples here: https://arnoldsupport.com/?s=python&submit=Search

And kick -info is useful



// Stephen Blair
// Arnold Renderer Support
Nachricht 5 von 7
Anonymous
als Antwort auf: Anonymous

Many thanks Stephen. The scaling works but only if I put

operator "aiSetTransform1"

in the options part of the .ass file.

Malcolm

Nachricht 6 von 7
Anonymous
als Antwort auf: Anonymous

Is it possible to use python for a procedural in Maya or are procedurals always written in C++ ?

Malcolm

Nachricht 7 von 7
Stephen.Blair
als Antwort auf: Anonymous

@Malcolm Kesson C++ only



// Stephen Blair
// Arnold Renderer Support

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report